Skip to navigation

Integrate Postman Local Vault with Azure Key Vault

View as Markdown

This feature is available on Postman Enterprise plans with the Advanced Security Administration add-on. For more information, see the pricing page.

Azure Key Vault enables you to store sensitive data in a vault that’s external from Postman Vault.

After you integrate your local vault with Azure Key Vault, you can link your vault secrets with sensitive data stored in Azure Key Vault, and retrieve them when you send HTTP requests.

Postman Vault Integrations are supported with the Postman desktop app only.

About the Azure Key Vault integration

This page covers the following steps to integrate Postman Vault with Azure Key Vault:

  1. Integrate Postman Vault with Azure Key Vault by signing in with your Microsoft Azure account.
  2. Link secrets in Postman Vault to their Azure Key Vault identifiers.

Postman recommends using an Azure Key Vault firewall to allowlist your static IP addresses. Otherwise, you may not be able to retrieve secrets stored in your Azure Key Vault.

Integrate Postman Vault with Azure Key Vault

You can create the Azure integration directly from your local vault.

Your computer must be able to access your Microsoft Azure instance because you’ll need to reauthenticate with Azure. You’ll need to do this each time you open Postman, or when your access token expires in Postman.

To integrate with Azure Key Vault and authenticate with your Azure account, do the following:

  1. Open a workspace.
  2. Click Vault in the footer, and select Vault icon Local Vault.
  3. If you haven’t created an integration with an external vault, click Vault icon Set up external vault in the upper right of your local vault. Otherwise, click Vault icon Use from existing vault.
  4. Select Azure Key Vault. You’re prompted to authorize Postman to access your Microsoft Azure account.

Postman authenticates using the OAuth 2.0 authorization code flow. The access token it retrieves is valid in Postman for one day.

Alternatively, you can click Setting icon Settings in the upper right of your local vault to display the Vault Settings dialog. In the Settings tab, click Connect next to Azure Key Vault.

Link a Postman Vault secret’s value with a secret stored in Azure Key Vault. This enables you to retrieve a secret stored in Azure Key Vault directly from Postman. Once you link a secret’s value in Postman Vault, you can reference the secret to retrieve its value from Azure Key Vault when you send it with an HTTP request.

Secrets retrieved from Azure Key Vault aren’t stored in your local instance of Postman or the Postman Cloud. Each time you use a linked secret, Postman retrieves its current value directly from Azure Key Vault. Learn more about Postman Vault Integrations.

Before you link a secret, make sure it already exists in Azure Key Vault and you have its identifier. If you don’t have one yet, in Azure, create a secret, then retrieve its identifier. You’ll also need at least the Key Vault Secrets User role in Azure to retrieve secrets from your Postman team.

To link a vault secret’s value with Azure Key Vault, do the following:

  1. Open a workspace.

  2. Click Vault in the footer, and select Vault icon Local Vault.

  3. In the Key cell, enter a name for the vault secret.

  4. Hover over the Value cell and click Vault icon Link Vault.

    Link Azure value
  5. Enter the Secret Identifier in the Link secret window. The secret identifier is the URI of the secret in Azure Key Vault. Learn more about identifiers in Azure Key Vault.

    https://<vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version-id>

    The latest version of the secret will be used unless you include the version ID.

  6. Click Use.

    Linked Azure secret

  7. To view details about a secret you’ve linked from Azure Key Vault, click Setting icon Configure vault next to a secret.

    Azure secret details

Signing out of Postman clears your local vault, including any links to Azure Key Vault. Your vault key only unlocks the vault. It can’t restore secrets or links that have already been deleted. When you sign back in, you’ll need to reconnect to Azure Key Vault and re-link each vault secret using the steps above.

Next steps

After integrating your Postman Local Vault with Azure Key Vault, you can reference vault secrets and manage your integrations: