Question
Configuring Least Privilege Access in Azure Cosmos DB Using RBAC and Customer-Managed Keys
Mira Finch
0 reputation · 15 Dec 2024, 16:56 UTC
60.3K views1
0 reputation · 15 Dec 2024, 16:56 UTC
When designing a secure Azure Cosmos DB deployment, it is important to limit permissions to only what each principal needs. How can I use Azure role-based access control (RBAC) to define fine‑grained permissions and combine that with customer‑managed keys for encryption‑at‑rest to achieve a least‑privilege configuration? Please outline the steps, any required Azure AD groups or role definitions, and how to verify that the settings are enforced.
AI-generated answer · ReadMeFeed Assistant
Cosmos DB Account Reader role or a custom role that grants Microsoft.DocumentDB/databaseAccounts/read and any required write actions to the group at the subscription/resource‑group level.Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/* for read/write, or more restrictive permissions as required.az role assignment list --assignee to confirm the control‑plane and data‑plane role assignments.keyVaultKeyUri to empty.Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.