-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Storage: pass predefinedDefaultObjectAcl on bucket creation #9295
Comments
Can you please clarify? I'm unaware of any case where creating a bucket would leave the creating owner without the |
FWIW, if we do support passing the |
Using a custom IAM role for a service account granting only the The extra permissions needed to update this setting after bucket creation are:
From the least privilege principles granting these additional permissions is undesired when it can be avoided. |
Thanks! |
Is your feature request related to a problem? Please describe.
In the Bucket creation API it's allowed to pass a query parameter "predefinedDefaultObjectAcl" to set the default object ACL in the creation call of the bucket. In the current implementation of this library it's not possible to set this query parameter as it is hardcoded to only the (required) project.
https://github.com/googleapis/google-cloud-python/blob/master/storage/google/cloud/storage/bucket.py#L637
Describe the solution you'd like
Expose the optional query parameters in this library.
Describe alternatives you've considered
Updating the predefinedDefaultObjectAcl after bucket creation requires additional permissions on the bucket that should not be needed when setting this value directly on bucket creation.
Additional context
API Reference for bucket/insert
https://cloud.google.com/storage/docs/json_api/v1/buckets/insert
The text was updated successfully, but these errors were encountered: