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

Fix 403 Insufficient OAuth2 scope to perform this operation. error #8

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

antonalekseev
Copy link
Contributor

It seems that gcloud (gsutil as well) doesn't honor the full application default credentials specification and needs it's own configuration files. This leads to the 403 Insufficient OAuth2 scope to perform this operation. error from init container that runs gcs-download-prepared.sh. So far I've found two possible solutions for the issue: run gcloud auth activate-service-account --key-file=/path/to/credentials.json either set CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE=/path/to/credentials.json and CLOUDSDK_CORE_PROJECT=project-name. The latter requires the project name therefore I've chosen the former for this PR.

See GoogleCloudPlatform/cloud-sdk-docker#152 for extra details on the issue.

in order to fix `403 Insufficient OAuth2 scope to perform this operation.`
@hypnoglow
Copy link
Owner

Thank you!

@hypnoglow hypnoglow merged commit 059157f into hypnoglow:master Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants