我如何限制某些用户的访问权限“检索秘密价值”。从秘密经理或仅向某些用户访问

发布于 2025-02-13 11:17:49 字数 62 浏览 1 评论 0原文

我如何限制某些用户的访问权限以“检索秘密经理”或仅向某些用户访问?我该如何从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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

Oo萌小芽oO 2025-02-20 11:17:49

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:

    "Condition": {
        "StringEquals": {
            "aws:ResourceTag/MYTAGNAME": "${aws:PrincipalTag/MYTAGNAME}"
        }
    },

You can also do the same using resource policies on the secrets.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文