Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
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": "",
      "TenantId": "",
      "ClientId": "",
      "ClientSecret": ""
    }
  }
  • IsEnabled: Enables or disables using Azure Key Vault configuration.
  • KeyVaultName: Key Vault Name.
  • TenantId: Azure TenantId.
  • ClientId: Key vault clientId.
  • ClientSecret: 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: November 08, 2022 Edit this page on GitHub
In this document