Project

Azure Key Vault Support

ASP.NET Core provides many configuration providers out of the box. One of them is Azure Key Vault Configuration Provider. Azure Key Vault is a cloud service that provides a secure store for secrets. You can securely store keys, passwords, certificates, and other secrets. For more information about Azure Key Vault, please refer to https://docs.microsoft.com/en-us/aspnet/core/security/key-vault-configuration.

ASP.NET Zero provides built-in integration for Azure Key Vault. There are two modes of Azure Key Vault which are Certificate and Managed modes. You can easily configure Azure Key Vault for ASP.NET Zero by filling the configurations displayed below in appsettings.json of your application. For other environments like Production or Staging, use the correct setting file (appsettings.Production.json or appsettings.Staging.json).

 "Configuration": {
    "AzureKeyVault": {
      "IsEnabled": "false",
      "KeyVaultName": "",
      "AzureADApplicationId": "",
      "AzureADCertThumbprint": "",
      "ClientId": "",
      "ClientSecret": ""
    }
  }
  • IsEnabled: Enables or disables using Azure Key Vault configuration.
  • KeyVaultName: Key Vault Name.
  • AzureADApplicationId: Azure AD Application ID.
  • AzureADCertThumbprint: Azure AD Certificate Thumbprint
  • ClientId: Azure Key Vault Client ID
  • ClientSecret: Azure Key Vault Client Secret.

In order to use Certificate mode, KeyVaultName, AzureADApplicationId and AzureADCertThumbprint values must be filled.

In order to use Managed mode, ClientId and ClientSecret values must be filled.

Contributors


Last updated: May 19, 2020 Edit this page on GitHub
In this document