Add optout option for profile-specific property loading
See original GitHub issueType: Feature
Hello,
In one project we are using both the secrets manager and parameter store integrations. This project has 4 Spring profiles. As secrets name and parameter prefix we have a clear nomenclature that does not involve the Spring profiles. However, when the application starts up, spring-cloud-aws will always try to retrieve the properties by suffixing it with each profile, which is not something that we want.
With 4 profiles and two different integrations, that makes 8 requests that could be avoided when starting up the application. We also need to disable the fail-fast
option so that the first request does not stop the start-up, but fail-fast is something that we would like to have in order to stop the start-up if the expected properties are no found.
This is basically what happens:
Loading secrets from AWS Secret Manager secret with name: /MyApp/application_dev, optional: true
Unable to load AWS secret from /MyApp/application_dev...
Loading secrets from AWS Secret Manager secret with name: /MyApp/application_awss3, optional: true
Unable to load AWS secret from /MyApp/application_awss3...
...
Loading property from AWS Secret Manager with name: /MyApp/application/, optional: true
Located property source: [BootstrapPropertySource {name='bootstrapProperties-/MyApp/application/'}]
It would be great if there was a way to disable profile-specific property loading, like a configuration property:
aws:
secretsmanager:
profile-loading: false
paramstore:
profile-loading: false
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
@Larisho we are working on it. Since Bintray has been shut down we are migrating release scripts. This will take some time. @celcius112 this issue can be closed.
@MatejNedic Let me know if you guys need/want any help. Happy to lend a hand