aws / aws/aws-secretsmanager-caching-java
Providing access to secret's metadata
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Java
- Star
- 83
- Fork
- 39
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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 ;-)
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với SecretCacheObject.getResult và SecretCache.getCachedSecret, sau đó kiểm tra cách siêu dữ liệu DescribeSecret được lưu vào bộ nhớ đệm trong SecretCacheItem. Thay đổi được hoàn tất khi các bên gọi có thể truy xuất siêu dữ liệu secret đã được lưu vào bộ nhớ đệm thông qua SecretCache.describeSecret mà không cần thực hiện thêm một yêu cầu AWS Secrets Manager; thêm hoặc cập nhật các bài kiểm thử Java liên quan để xác minh hành vi đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws, java
- Lĩnh vực
- security
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 45/100