简体   繁体   中英

aws secrets caching describeSecrets error

I am trying to implement a caching for the secrets stored in aws KMS, using this blog post.

Locally when I test the code, the script runs fine. At the moment I am unsure if it fetches from KMS or use credentials from ~/.aws folder. But when I push the code to kube.netes cluster and try to test their I get the error no identity based policy allows the secretsmanager:DescribeSecret action

Can somebody please help how to resolve this error.

It is probably because your local code is using your ~/.aws credentials, which have rights to describe secrets secretsmanager:DescribeSecret .

Check if the permissions given to your kube.netes cluster have rights to describe secrets secretsmanager:DescribeSecret

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM