Microsoft Azure Security Technologies (AZ-500)

Key Vault

Azure Key Vault Secrets

Azure Key Vault Secrets provide a secure way to manage sensitive data used by your applications or infrastructure. For instance, if your application running on an Azure server needs to connect to an SQL database, you can store the SQL connection string as a secret in Azure Key Vault instead of embedding it directly in your application's code. This method greatly reduces the security risks associated with hard-coded credentials.

A secret in Azure Key Vault can be any piece of confidential information, such as:

  • Database connection strings
  • API keys
  • Passwords
  • Custom strings

Unlike cryptographic keys, which are used for encryption and decryption, secrets are stored as plain text values. Nevertheless, to ensure maximum security, Azure Key Vault encrypts these secrets internally before they are stored.

The image is a diagram illustrating the flow of data from a server to an application, then to Azure Key Vaults, and finally to an SQL database, under the context of Azure Key Vault secrets management.

How Secrets Are Managed

The Key Vault APIs accept and return secret values as strings. Internally, the Key Vault manages secrets as a collection of objects, each with a maximum size of 25k bytes. Regardless of the internal encryption processes, any secret retrieved (such as a connection string) via an API request is returned as a plain text string.

This concludes our overview of secrets in Azure Key Vault.

Next, we will explore how to work with certificates within the Key Vault environment.

Watch Video

Watch video content

Previous
Azure Key Vault Cryptographic Keys