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
已提问 7 个月前171 查看次数
1 回答
2
已接受的回答

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
专家
已回答 7 个月前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则