Providing access to secret's metadata
还没有人认领这个 Issue。
评估
调研方向
从 SecretCacheObject.getResult 和 SecretCache.getCachedSecret 开始,然后检查 DescribeSecret 元数据如何缓存在 SecretCacheItem 中。当调用方可以通过 SecretCache.describeSecret 获取缓存的 secret 元数据,而无需额外的 AWS Secrets Manager 请求时,此更改即完成;添加或更新相关的 Java 测试以验证该行为。
由索引模型根据 Issue 内容生成。
描述
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 ;-)
- 主要语言
- Java
- 星标
- 83
- 派生
- 39
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws/aws-secretsmanager-caching-java 的其他 Issue
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
aws/aws-secretsmanager-caching-java#19 · 1 条评论 ·
查看 aws/aws-secretsmanager-caching-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
redhat-developer/intellij-quarkus#1626 ·
-
Type/Bug
难度 2/5 1-3 小时 新手友好度 68/100
wso2/product-integrator-mi#5061 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
quarkiverse/quarkus-roq#1277 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
apache/logging-site#48 ·
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
apache/maven-surefire#3496 · 3 条评论 ·
维护者通常 1 天内回复