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

Checking if a bucket requires requesterPays status should not require storage.bucket.get permissions. #833

Open
lbergelson opened this issue Mar 1, 2022 · 0 comments
Assignees
Labels
api: storage Issues related to the googleapis/java-storage-nio API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@lbergelson
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In order to check if a a bucket is configured as requester pays the account accessing the bucket needs to have storage.buckets.get access to the bucket. This is problematic if you don't own the bucket, which makes it less useful to try to access buckets that require requester pays.

Describe the solution you'd like
It's possible to discover if a bucket is request pays by making an attempt to access it and failing rather than performing a bucket.get() query. We should do that instead. That's actually what happens currently in the case that the user DOES have storage.bucket.get access to to the bucket, so the requirement is essentially pointless.

Describe alternatives you've considered
Adding an API method to get this information without requiring anyone to have a billing request would be ideal but probably out of scope for this project. It's possible to work around this issue right now by always providing a billing project in your queries, but this is incurs additional expenses for the user which would have been covered by the bucket owners in non requester pays buckets.

@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/java-storage-nio API. label Mar 1, 2022
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Mar 2, 2022
@andrewsg andrewsg added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p2 Moderately-important priority. Fix may not be included in next release. and removed triage me I really want to be triaged. labels Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/java-storage-nio API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

4 participants