-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read most up-to-date secrets from AWS Secrets Manager #2347
Comments
So you are basically asking if no label is provided in the request and no default label is set via a property you don't want to supply a version in |
What I'm asking for is when label is provided as part of request such as GET /foo/test/foo-1.0.0 HTP/1.1 do not forward that label to AWS Secrets Manager
Whether it is going to be configurable or by extending the repository class. |
I am not sure why you would supply a label and not want to use it... But you should be able to provide and use your own AwsSecretsManagerEnvironmentRepository Line 444 in 2215998
|
The way return new AwsSecretsManagerEnvironmentRepository(...) This method depends on So in order to do what you're suggesting (if I want to leverage existing process) I need to
This is not ideal and I'm looking for better option. The reason why I supply label is that I want to use it when reading properties from Git repository but want to ignore it when reading secrets from Secrets Manager as
|
If you create your own bean of type If you want to make things easier, any PRs would be welcome to enhance the code. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Sorry for not replying earlier. I'm going to work on PR. Just need more time. |
Let me know what do you this of this idea #2357. |
Closing due to #2358. |
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.0
to fetch versioned properties from Git repository but at the same time tofetch the most recent versions of secrets from the AWS Secrets Manager. The
AwsSecretsManagerEnvironmentRepository
is giving me only 2 options at the moment.findOne(String application, String profileList, String label)
label
parameter).environmentProperties.getDefaultLabel()
, but only iflabel
parameter is empty.Would it be possible to overwrite/disable
label
by configuring theenvironmentProperties
properties? Eventually turninginto
Having option to extend the
AwsSecretsManagerEnvironmentRepository
class and overwrite its functionality might work as well.The text was updated successfully, but these errors were encountered: