Kong Gateway uses a key to automatically authenticate
with the Azure Key Vaults API and grant you access.
If you’re using a client secret for authentication, set the following environment variable on your data plane to connect with an Azure Key Vault:
export AZURE_CLIENT_SECRET='YOUR_CLIENT_SECRET'
If you’re using an Instance Managed Identity Token, you don’t need to set the client secret env variable.
Dedicated Cloud Gateway limitations:
- Azure Key Vault is not supported as a Vault backend on Dedicated Cloud Gateways: Since the client secret has no Vault entity equivalent, it can only be set through this environment variable (or the
credentials_prefix variant). Dedicated Cloud Gateways only accept KONG_ and OTEL_ prefixed environment variables, so AZURE_CLIENT_SECRET can’t be set.
- Azure managed identity is not supported on Dedicated Cloud Gateways.
At minimum, you’ll also need to set the following values on your data plane.
export KONG_VAULT_AZURE_VAULT_URI='https://your-vault.vault.azure.com'
export KONG_VAULT_AZURE_TENANT_ID='YOUR_TENANT_ID'
export KONG_VAULT_AZURE_CLIENT_ID='YOUR_CLIENT_ID'