Your company has an Azure subscription named sub-apexion-prod. You plan to configure customer-managed keys (CMK) to encrypt an Azure Storage account named saapexionpatient. You deploy an Azure Key Vault named kv-apexion-keys. The Key Vault has both soft-delete and purge protection enabled and is configured to use Azure role-based access control (RBAC) for authorization. The storage account is configured with a system-assigned managed identity. You need to grant the storage account the minimum required permissions to the key vault to enable CMK encryption. Which role should you assign to the system-assigned managed identity of the storage account?
- AKey Vault Contributor
- BKey Vault Reader
- Key Vault Crypto Service UserAnswer
- DKey Vault Crypto Officer
Answer
Key Vault Crypto Service User
The correct answer is Key Vault Crypto Service User. When Key Vault is configured for Azure RBAC authorization, the system-assigned managed identity of the storage account requires data plane access to perform key encryption operations (specifically wrapping and unwrapping). The Key Vault Crypto Service User role is the built-in role designed for this purpose, providing the least privilege needed.
Step-by-Step Solution
Key Concept
To enable customer-managed keys (CMK) for a storage account using Azure RBAC for Key Vault authorization, the storage account's managed identity must be granted the Key Vault Crypto Service User role, which provides the minimum necessary data plane permissions (wrap and unwrap keys).