googleapis / googleapis/google-cloud-java

[java-storage] Allow to create presigned URLs using HMAC keys

オープン
#12,638 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
api: storage type: feature request
主要言語
Java
スター
2.1k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
154

説明

**Is your feature request related to a problem? Please describe.**
Currently `com.google.cloud.storage.StorageImpl` class allows to create a presigned URL using RSA algorithm. One can pass their own `ServiceAccountSigner` implementation (via `StorageOptions.setCredentials()`) but the algorithm name literal is deeply hard-coded as `GOOG4-RSA-SHA256` (also in `com.google.cloud.storage.SignatureInfo`). It's not possible to efficiently reuse current code to sign URL via HMAC keys (https://cloud.google.com/storage/docs/authentication/signatures#signing-process).

**Describe the solution you'd like**
Allow to pass an algorithm via `StorageOptions`.

**Describe alternatives you've considered**
The only solution I see is to copy/fork all the code. Reflection seems to be too fragile.

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

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

評価

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

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

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