wtree Cloud

Azure Key Vault

Read secrets from Azure Key Vault with an App Registration.

wtree Cloud authenticates with an App Registration (service principal) using the OAuth2 client credentials flow.

Before you start

In the Azure Portal, open App registrations → New registration. Name it, for example wtree-cloud, and keep the defaults. No redirect URI is needed.

Copy the Application (client) ID and Directory (tenant) ID from the overview page.

Open Certificates & secrets → New client secret and copy the Value now. It is shown once.

Grant the app access to the vault. With the RBAC model (recommended), open Access control (IAM) → Add role assignment and assign Key Vault Secrets User to the app. With access policies, grant Get and List on secrets.

Connect

Open Integrations › Secret vaults › Add provider and choose Azure Key Vault.

FieldValue
NameReference name, for example azure-kv
Vault URIFor example https://my-vault.vault.azure.net
Tenant IDDirectory (tenant) ID
Client ID / Client SecretFrom the App Registration

Click Test connection, save, and assign projects and environments.

Use it

Secrets are flat values, so references use the secret name:

DB_PASSWORD=${{vault.azure-kv.db-password}}
STRIPE_KEY=${{vault.azure-kv.stripe-key}}

Limits

Azure secret names allow only letters, digits and dashes. Use db-password, not DB_PASSWORD.

RBAC role assignments take a few minutes to propagate. If Test connection reports a permission error right after assigning the role, wait and retry.

On this page