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
gefragt vor 7 Monaten171 Aufrufe
1 Antwort
2
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 7 Monaten
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen