Azure Key Vault
TokenTimer uses the Azure Key Vault REST API v7.4 to discover secrets, certificates, and cryptographic keys from your Key Vault instances.
Vault URL format: https://your-vault-name.vault.azure.net
Credential setup
Option 1 (recommended): service principal
- Azure Portal → Microsoft Entra ID → App registrations → New
- Create the app registration (note the Application/Client ID)
- Certificates & secrets → New client secret → copy the value
- In your Key Vault → Access control → assign the
Key Vault Readerrole - Get a token:
az account get-access-token --resource https://vault.azure.net - Revoke after use. The token is used once and never stored.
Option 2: Azure CLI temporary token
Run az login, then generate a token with the command above.
Permissions required
Azure RBAC (recommended):
Key Vault ReaderroleKey Vault Secrets Userrole (alternative)
Or classic access policies:
Get+Listfor secrets, certificates, and keys
What is discovered
- Secrets: name, expiration (
attributes.exp), creation/update times - Certificates: name, expiration, issuer, creation/update times
- Cryptographic keys: name, key type, expiration (if set), creation/update times
Metadata only. No secret values, certificate contents, or key materials are retrieved.
info
Azure Key Vault does not support auto-sync on self-hosted TokenTimer. Each scan is a one-time, manual action; credentials are used once and never stored.
Related pages
- Microsoft Entra ID to scan app registration secrets and certificates instead of Key Vault contents