Secrets Manager integration is very opinionated and based on the reported issues I think our opinions don't match users needs.
Spring Cloud AWS Secrets Manager configuration expect secrets to follow a naming pattern:
{prefix}/{defaultContext}
{prefix}/{defaultContext}{profile-separator}{profile-1}
{prefix}/{defaultContext}{profile-separator}{profile-2}
{prefix}/{appName}
{prefix}/{appName}{profile-separator}{profile-1}
{prefix}/{appName}{profile-separator}{profile-2}
some-api-key secret) (https://github.com/spring-cloud/spring-cloud-aws/issues/515).fail-fast is set to false, users are forced to give permissions to read all expected secrets or application will fail to start. If fail-fast is set to false users may not notice that critical secrets have not been loaded (https://github.com/spring-cloud/spring-cloud-aws/issues/468).fail-fast set to true, application still starts without an error if secret is not found.See other Secret Manager related issues: https://github.com/spring-cloud/spring-cloud-aws/issues?q=is%3Aopen+is%3Aissue+label%3A%22component%3A+secrets-manager%22
This issue is mean to be a place to discuss if/how should we proceed with Secrets Manager integration
yes, seems very opinionated. For me, would be like this:
name should not exist. So, if we have a new property include-application-name with true we can add it.@maciejwalkowiak WDYT? I agree that the new module should take care of this.
this should also applied for new parameter store module, right?
Requiring the forward slash on the prefix is definitely something I'd like to see go away too.
With the ability to load secrets through Spring Boot 2.4 config data loader and Secrets Manager integration introduced in https://github.com/spring-cloud/spring-cloud-aws/pull/721, all of the issues have been resolved.
It is possible to load independent secrets like:
spring.config.import: aws-secretsmanager:my-secret;another-secret
Most helpful comment
yes, seems very opinionated. For me, would be like this:
nameshould not exist. So, if we have a new propertyinclude-application-namewith true we can add it.@maciejwalkowiak WDYT? I agree that the new module should take care of this.