Description
Azure Key Vault will store multiple types of sensitive information such as encryption keys, certificate thumbprints, and Managed Identity Credentials. Access to these 'Secrets' can be controlled through granular permissions.
Rationaleβ
The credentials given to an application have permissions to create, delete, or modify data stored within the systems they access. If these credentials are stored within the application itself, anyone with access to the application or a copy of the code has access to them. Storing within Azure Key Vault as secrets increases security by controlling access. This also allows for updates of the credentials without redeploying the entire application.
Impactβ
Integrating references to secrets within the key vault are required to be specifically integrated within the application code. This will require additional configuration to be made during the writing of an application, or refactoring of an already written one. There are also additional costs that are charged per 10000 requests to the Key Vault.
Auditβ
From Azure Portalβ
- Login to Azure Portal.
- In the expandable menu on the left go to
Key Vaults
. - View the Key Vaults listed.
From Powershellβ
To list key vaults within a subscription run the following command:
Get-AzKeyVault
To list all secrets in a key vault run the following command:
Get-AzKeyVaultSecret -VaultName '<vaultName>'
Default Valueβ
By default, no Azure Key Vaults are created.
Referencesβ
- https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-references
- https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-management#im-3-manage-application-identities-securely-and-automatically
- https://docs.microsoft.com/en-us/cli/azure/keyvault?view=azure-cli-latest
- https://docs.microsoft.com/en-us/cli/azure/keyvault?view=azure-cli-latest