π Azure Key Vault Role Based Access Control is not enabled π’
- Contextual name: π Role Based Access Control is not enabled π’
- ID:
/ce/ca/azure/key-vault/role-based-access-control
- Located in: π Azure Key Vault
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- Internal
dec-x-c8041456
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-c8041456 | 1 |
Logicβ
- π§ prod.logic.yaml π’
- π Azure Key Vault
- π Azure Key Vault - object.extracts.yaml
- π§ͺ test-data.json
Descriptionβ
Descriptionβ
The recommended way to access Key Vaults is to use the Azure Role-Based Access Control (RBAC) permissions model.
Azure RBAC is an authorization system built on Azure Resource Manager that provides fine-grained access management of Azure resources. It allows users to manage Key, Secret, and Certificate permissions. It provides one place to manage all permissions across all key vaults.
Rationaleβ
The new RBAC permissions model for Key Vaults enables a much finer grained access control for key vault secrets, keys, certificates, etc., than the vault access policy. This in turn will permit the use of privileged identity management over these roles, thus securing the key vaults with JIT Access management.
Impactβ
Implementation needs to be properly designed from the ground up, as this is a fundamental change to the way key vaults are accessed/managed. Changing permissions to key vaults will result in loss of service as permissions are re-applied. For the least amount of downtime, map your current groups and users to their corresponding permission needs.
... see more
Remediationβ
Remediationβ
From Azure Portalβ
Key Vaults can be configured to use
Azure role-based access control
on creation.For existing Key Vaults:
- From Azure Home open the Portal Menu in the top left corner.
- Select
Key Vaults
.- Select a Key Vault to audit.
- Select
Access configuration
.- Set the Permission model radio button to
Azure role-based access control
, taking note of the warning message.- Click
Save
.- Select
Access Control (IAM)
.- Select the
Role Assignments
tab.- Reapply permissions as needed to groups or users.
From Azure CLIβ
To enable RBAC Authorization for each Key Vault, run the following Azure CLI command:
az keyvault update --resource-group <RESOURCE GROUP NAME> --name <KEY VAULT NAME> --enable-rbac-authorization true
From PowerShellβ
To enable RBAC authorization on each Key Vault, run the following PowerShell command:
Update-AzKeyVault -ResourceGroupName <RESOURCE GROUP NAME> -VaultName <KEY VAULT NAME> -EnableRbacAuthorization $True