-
Notifications
You must be signed in to change notification settings - Fork 5.8k
fix: Google Cloud Secret Store Refactoring #18140
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
base: master
Are you sure you want to change the base?
Conversation
|
Shouldn't this just work with v0.18 which included googleapis/google-cloud-go#13317? |
Yes, but the variable |
|
Ok, so the PR title should be something like "update google auth dependency"? Or you should split the PR into two where you first remove the deprecated usage and then bump the lib... |
HI @srebhan, I think it is better to split the PR. I'll take care of it. |
43acd0d to
7d8d0fc
Compare
7d8d0fc to
54ff20d
Compare
54ff20d to
292b97a
Compare
|
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
PR Summary: Google Cloud Secret Store Refactoring
Overview
This PR updates the Google Cloud secret store plugin to improve credential file handling with explicit type detection.
Changes
Code Refactoring
File:
plugins/secretstores/googlecloud/googlecloud.gocredentials.DetectDefault()tocredentials.NewCredentialsFromJSON()for more explicit credential handlingDetectOptionsCredentialsFile is deprecated, and the functionality has been removed.parseFileType()to extract thetypefield from the service account JSON, which is required to instantiate credentials correctlyTest Updates
File:
plugins/secretstores/googlecloud/googlecloud_test.goTest Data
New file:
plugins/secretstores/googlecloud/testdata/gdch-missing-ca-cert-path.jsonBenefits
Checklist