googleapis / googleapis/google-cloud-java

[java-storage-nio] Checking if a bucket requires requesterPays status should not require storage.bucket.get permissions.

Đang mở
#12,556 0 bình luận 0 reaction 1 người được giao Được @JesseLovelace nhận Xem trên GitHub
api: storage priority: p2 type: feature request
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.