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

Require only necessary permissions when saving backup to GCS bucket #186

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

chtcvl
Copy link
Contributor

@chtcvl chtcvl commented Jul 2, 2022

Currently when save to GCS:

Permission denied: 403 GET https://storage.googleapis.com/storage/v1/b/bucket-name-redacted?projection=noAcl&prettyPrint=false: [email protected].
gserviceaccount.com does not have storage.buckets.get access to the Google Cloud Storage bucket., please grant `Storage Admin` to service account you used

This is caused by get_bucket() call used instead of bucket(). Latter doesn't make actual API call so its permissions are only scoped to a bucket, not to a project.

@chtcvl chtcvl force-pushed the gcs-permissions branch from b94dac2 to b1a0895 Compare July 2, 2022 16:41
@ysde
Copy link
Owner

ysde commented Aug 2, 2022

Hi @chtcvl
Thanks, don't know get_bucket and bucket have such difference.

Thank you !

@ysde ysde merged commit 623050e into ysde:master Aug 2, 2022
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