Aller au contenu principal

Azure Key Vaults

You will need to create a Key Vault if your solution requires any secrets/passwords/keys. We will usually create one Azure Key Vault per solution/per environment. We will then give granular access to each of those Key Vaults.

Naming Convention

The following naming convention shall be respected when creating a KeyVault. Beware, there is a limitation of 24 characters in total.

kv-{appname}-{env}

Secrets naming convention:

If you easily want to be able to use the standard .Net settings convention/navigation, we recommend using the default separator "--". The default provider we are using will automatically convert that to ":"

Example, if your setting file is like this:

{
"Settings":
{
"Setting1": "Value"
}
}

You would need to declare your secrets with the following name:

Settings--Setting1

Access control (IAM)

Your Azure Key Vault shall be configured using Azure RBAC authentication by default.

Configuration access for the LOCAL Key Vault

By giving access to developers as administrators, they will be allowed to maintain the Key Vault itself, access keys and making changes to it.

Role: Key Vault Administrator

Members :

  • DEVELOPERS-appname (group is supposed to be created at a previous step).
  • KV-ADMIN

Configuration access for the TEST/STAGING/PROD Key Vault

Role: Key Vault Administrator

Members :

  • KV-ADMIN

Role: Key Vault Secrets User

Members :

  • Azure DevOps Service Connection created previously (if DbMigrator requires secrets of any kind)
  • App Service Service Principal (so that the AppService can access the secrets of the Key Vault).

Role: Key Vault Certificates User (Optional)

Members :

  • Azure DevOps Service Connection created previously (if DbMigrator requires certificates of any kind)
  • App Service Service Principal (so that the AppService can access the certificates of the Key Vault).