我如何限制某些用户的访问权限“检索秘密价值”。从秘密经理或仅向某些用户访问
我如何限制某些用户的访问权限以“检索秘密经理”或仅向某些用户访问?我该如何从boto3甚至控制台中执行此操作。
How can I restrict the access of certain users to "retrieve secret value" from the secret manager or to give access only to certain users? How could I do this from boto3 or even from the console.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AWS文档具有a (基于属性的访问控制;又称标记),描述了如何执行此操作。本教程有点长时间阅读,总而言之,您可以在用户/角色上的秘密和标签上标记标签,并将IAM策略中的标签值与条件进行比较:
您也可以执行相同使用资源政策关于秘密。
The AWS docs have a tutorial on ABAC (Attribute Based Access Control; a.k.a tagging) that describes how to do this. The tutorial is a bit of a long read though, and to sum it up, you can put a tag on the secrets and tag on your users/roles and compare the tag values in the IAM policies with the condition:
You can also do the same using resource policies on the secrets.