When reading properties from multiple sources (like Git and Secrets Manager) one might send the following request to Spring Cloud Config Server
GET /foo/test/foo-1.0.0 HTP/1.1
where
foo - application name
test - profile
foo-1.0.0 - version/label
I would like to have option to tag Git repository as foo-1.0.0 to fetch versioned properties from Git repository but at the same time to
fetch the most recent versions of secrets from the AWS Secrets Manager. The AwsSecretsManagerEnvironmentRepository is giving me only 2 options at the moment.
- Read version off the request (provided as
findOne(String application, String profileList, String label) label parameter).
- Use the default one, that is
environmentProperties.getDefaultLabel(), but only if label parameter is empty.
Would it be possible to overwrite/disable label by configuring the environmentProperties properties? Eventually turning
GetSecretValueRequest.builder()
.secretId(path)
.versionStage(label)
.build()
into
GetSecretValueRequest.builder()
.secretId(path)
.build()
Having option to extend the AwsSecretsManagerEnvironmentRepository class and overwrite its functionality might work as well.
When reading properties from multiple sources (like Git and Secrets Manager) one might send the following request to Spring Cloud Config Server
where
foo - application name
test - profile
foo-1.0.0 - version/label
I would like to have option to tag Git repository as
foo-1.0.0to fetch versioned properties from Git repository but at the same time tofetch the most recent versions of secrets from the AWS Secrets Manager. The
AwsSecretsManagerEnvironmentRepositoryis giving me only 2 options at the moment.findOne(String application, String profileList, String label)labelparameter).environmentProperties.getDefaultLabel(), but only iflabelparameter is empty.Would it be possible to overwrite/disable
labelby configuring theenvironmentPropertiesproperties? Eventually turninginto
Having option to extend the
AwsSecretsManagerEnvironmentRepositoryclass and overwrite its functionality might work as well.