googleapis / googleapis/google-cloud-java

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

オープン
#12,556 コメント 0 件 リアクション 0 件 担当者 1 名 @JesseLovelace が担当を希望しています GitHub で見る
api: storage priority: p2 type: feature request
主要言語
Java
スター
2.1k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
154

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。