【问题标题】:How to create a custom role in Azure, so that another user is able to only view the list of files in a blob container but not its contents(RBAC)如何在 Azure 中创建自定义角色,以便其他用户只能查看 blob 容器中的文件列表,但不能查看其内容(RBAC)
【发布时间】:2020-10-01 23:49:49
【问题描述】:

如何使用访问控制 (IAM) 在 Azure 中创建自定义角色,以便其他用户能够查看 Blob 容器中的文件列表,但不能查看其内容。此外,用户应该无法进行任何更改。

【问题讨论】:

    标签: azure role-based-access-control


    【解决方案1】:

    如何使用访问控制 (IAM) 在 Azure 中创建自定义角色,所以 另一个用户能够查看 blob 中的文件列表 容器,但不是其内容。此外,用户不应该能够 进行任何更改。

    我认为 RBAC 角色无法做到这一点。

    从此linkList BlobsGet Blob 操作都需要Microsoft.Storage/storageAccounts/blobServices/containers/read (scoped to the blob container) 权限,因此如果用户处于具有此权限的角色中,则该用户将能够执行这两个操作。

    但是,您可以使用Shared Access Signature (SAS) 实现此目的。如果您在仅具有 list 权限的 blob 容器上创建 SAS,则使用该 SAS URL 用户将只能列出 blob 容器中的 blob,而不能列出其他任何内容。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-07
      • 2021-01-16
      • 2019-03-14
      • 2022-10-05
      • 1970-01-01
      相关资源
      最近更新 更多