Skip to content
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

kms credentials configuration property does not work as documented #1271

Closed
zhumin8 opened this issue Sep 28, 2022 · 0 comments · Fixed by #1272
Closed

kms credentials configuration property does not work as documented #1271

zhumin8 opened this issue Sep 28, 2022 · 0 comments · Fixed by #1272

Comments

@zhumin8
Copy link
Contributor

zhumin8 commented Sep 28, 2022

Configuration property spring.cloud.gcp.kms.credentials.location does not work. Reproduce by setting this property in the sample app and observe log output.
Cause: the CredentialsProvider bean with kmsProperties is never created because Bean of same type already created in core.

@zhumin8 zhumin8 added the kms label Sep 28, 2022
zhumin8 added a commit that referenced this issue Oct 5, 2022
fixes #1271.
Fix so `KmsAutoConfiguration` takes kms specific project id & credentials when present, otherwise fall back to core project id & credentials. Documentation is accurate, no change.
Added tests for all 4 scenarios.
kateryna216 added a commit to kateryna216/spring-cloud-gcp that referenced this issue Oct 20, 2022
…#1272)

fixes GoogleCloudPlatform#1271.
Fix so `KmsAutoConfiguration` takes kms specific project id & credentials when present, otherwise fall back to core project id & credentials. Documentation is accurate, no change.
Added tests for all 4 scenarios.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants