aws / aws/aws-secretsmanager-caching-java
Providing access to secret's metadata
- 主要言語
- Java
- スター
- 83
- フォーク
- 39
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
I'm working on my fork to slightly modify the source code in order to provide visibility on the secret's metadata.
This information is coming through `DescribeSecret` and it's already cached in the `SecretCacheObject`.
I would like to submit a pull request to your repository and my proposal would be to change the `SecretCacheObject.getResult` method to public and implement a `SecretCache.describeSecret` method like the following:
```
/**
* Method to retrieve the description of a secret from AWS Secrets Manager.
*
* @param secretId
* The identifier for the secret being requested.
* @return The string secret
*/
public DescribeSecretResult describeSecret(final String secretId) {
SecretCacheItem secret = this.getCachedSecret(secretId);
return secret.getResult().clone();
}
```
This way, accessing the secret's metadata does not request a second trip to the AWS SecretsManager or the implementation of a secondary cache.
This is my first pull request here, please be nice ;-)
コントリビューションガイド
調査の方向性
SecretCacheObject.getResult と SecretCache.getCachedSecret から始め、次に DescribeSecret のメタデータが SecretCacheItem にどのようにキャッシュされているかを調べます。呼び出し元が追加の AWS Secrets Manager リクエストなしで SecretCache.describeSecret を通じてキャッシュされたシークレットメタデータを取得できるようになれば、変更は完了です。この動作を検証するために、関連する Java テストを追加または更新します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, java
- 領域
- security
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100