- Newest
- Most votes
- Most comments
Hi,
I understand that you have one Secret that holds multiple different values and you would like to know if it is possible to control access to only allow users to retrieve specific key/value pairs.
Unfortunately this would not be possible as you can only restrict the action “GetSecretsValue” to a specific secret and not a key/value pair. I am attaching the following documentation that goes over this here (1). In order to restrict access to specific secrets values you would need to store them in separate secrets. You can then use IAM permissions as well as resource based policies to restrict access, I am linking the documentation for that here (2)
I hope you have a great rest of your day!
References
(1) https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html
(2) https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago