Retrieving secrets

0

If I have a secret in secrets manager with 5 secrets in, but I only want to retrieve 2 specific secrets at a time for my application is there a way I can do that? Also, when retrieving how would I only get it to output the value? For example. If I have secrets A = XXXX and secret B=YYYY combined under secret 1. How do I retrieve just A from secret 1 and, showing only the value of XXXX instead of A=XXXX?

DMaras
asked 7 months ago160 views
1 Answer
2
Accepted Answer

Hi,

the only way to achieve what you want is to have a distinct secret for each piece of content that you want to protect.

Decoding can only happen globally for a given secret. So, in your case, you need to store Content1 in secret A and Content2 in secret B if you want different access rights to different security principals.

Best,

Didier

profile pictureAWS
EXPERT
answered 7 months ago
profile picture
EXPERT
reviewed 24 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions