Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Conditionally fetch default context secrets #797

Open
faisal-zulfiqar opened this issue Nov 7, 2021 · 0 comments
Open

Conditionally fetch default context secrets #797

faisal-zulfiqar opened this issue Nov 7, 2021 · 0 comments
Labels
component: secrets-manager Secrets Manager integration related issue status: waiting-for-triage An issue we've not yet triaged type: bug A general bug

Comments

@faisal-zulfiqar
Copy link

Type: Bug

Component: Secrets Manager

Describe the bug
So I'm making use of the spring-cloud-starter-aws-secrets-manager-config version 2.3.2, along with Spring Boot version 2.5.5, and I noticed that it allows importing individual secrets like:

spring.config.import: aws-secretsmanager:my-secret

However, I also notice that the fail-fast has to be set to false for it to work because it always tries to fetch:

  • {defaultPrefix}/{defaultContext}
  • {defaultPrefix}/{defaultContext}{profile-separator}{profile}
  • {defaultPrefix}/{appName}
  • {defaultPrefix}/{appName}{profile-separator}{profile}

For the profile ones it goes for N number of active profiles. Is there really no way to stop looking up these defaults? Like I have specified the secrets it should fetch using spring.config.import: aws-secretsmanager:my-secret and because of this random fetching and subsequently failing I have to set fail-fast to false which defeats the purpose of it

@github-actions github-actions bot added component: secrets-manager Secrets Manager integration related issue type: bug A general bug status: waiting-for-triage An issue we've not yet triaged labels Nov 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: secrets-manager Secrets Manager integration related issue status: waiting-for-triage An issue we've not yet triaged type: bug A general bug
Development

No branches or pull requests

1 participant