-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
secretmanager: New version upgrade of cloud.google.com/go/secretmanager to v1.14.0 is breaking while fetching the secret with below error #10844
Comments
Can you run |
running:go get cloud.google.com/go/auth@latest
SECURITY ERROR For more information, see 'go help module-auth'.
For details, see https://golang.org/ref/mod#authenticating. Do I need to clear cache in order to make it work? |
I would try to run that command again and/or clear your cache. I am not able to reproduce that error though. Maybe you had a corrupted during download. I see the following in my .sum
|
not sure, i did a fresh install, cleaned cache, restarted the system SECURITY ERROR For more information, see 'go help module-auth'.
Let me try in another machine/colleague's machine and update in next thread if I am able to go through pas this upgrade. |
Thanks @codyoss for looking into this.. Update:
After upgrading, I verified, still throws the same error for
Could this be related to the recent PR merged : https://github.com/googleapis/google-cloud-go/pull/10697/files |
That is the change I would have suspected would fix issue, yes. That is why I was wondering if pulling |
sure, I am shairing only the impacted libs rather than entire go.mod and go.sum
go.sum
|
Similar to googleapis#10696, we need to be careful of the case where we are trying to open files that may not exist. For instance trying to open something that does not exist in /dev/null/ is not a standard file does not exist err. Fixes: googleapis#10844
🤖 I have created a release *beep* *boop* --- ## [0.9.9](https://togithub.com/googleapis/google-cloud-go/compare/auth/v0.9.8...auth/v0.9.9) (2024-10-22) ### Bug Fixes * **auth:** Fallback cert lookups for missing files ([#11013](https://togithub.com/googleapis/google-cloud-go/issues/11013)) ([bd76695](https://togithub.com/googleapis/google-cloud-go/commit/bd766957ec238b7c40ddbabb369e612dc9b07313)), refs [#10844](https://togithub.com/googleapis/google-cloud-go/issues/10844) * **auth:** Replace MDS endpoint universe_domain with universe-domain ([#11000](https://togithub.com/googleapis/google-cloud-go/issues/11000)) ([6a1586f](https://togithub.com/googleapis/google-cloud-go/commit/6a1586f2ce9974684affaea84e7b629313b4d114)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Would you mind upgrading to https://github.com/googleapis/google-cloud-go/releases/tag/auth/v0.9.9. I believe this should fix the issue. |
Client
secret manager client
issue with - cloud.google.com/go/secretmanager v1.14.0, getting below error:
Error: level=error msg="GCP Secret Manager: failed to create secretManager's NewClient: open /dev/null/.config/gcloud/certificate_config.json: not a directory"
Environment
cbl mariner distroless image
$ go version - go 1.22.6
Code and Dependencies
go.mod
Expected behavior
issue with - cloud.google.com/go/secretmanager v1.14.0, getting below error:
Error: level=error msg="GCP Secret Manager: failed to create secretManager's NewClient: open /dev/null/.config/gcloud/certificate_config.json: not a directory"
client works just fine with - cloud.google.com/go/secretmanager v1.12.0
As of now had to downgrade to v1.12.0 to make it work. with below changes in direct and indirect dependencies in go.mod
Please note that below go.mod is the revert from v1.14.0 to v1.12.0 in order to make secret fetching work. - denotes removal and + denotes addition, pasted the git diff of the reverted change.
go 1.22.6
require (
- cloud.google.com/go/secretmanager v1.14.0
+ cloud.google.com/go/secretmanager v1.12.0
)
Actual behavior
with cloud.google.com/go/secretmanager v1.12.0 to cloud.google.com/go/secretmanager v1.14.0, it should not break with error -
Error: level=error msg="GCP Secret Manager: failed to create secretManager's NewClient: open /dev/null/.config/gcloud/certificate_config.json: not a directory"
Screenshots
Let me know if any other details is required, will be happy to provide.
Additional context
No additional code in the client was touched, the only diff is upgrade of cloud.google.com/go/secretmanager v1.12.0 to cloud.google.com/go/secretmanager v1.14.0, which result in this break.
The text was updated successfully, but these errors were encountered: