Azure Secrets +
Azure Key Vault integration for BoxLang system settings via the azure. namespace in getSystemSetting().
The bx-azure-secrets module registers an azure system setting provider so BoxLang can resolve secrets directly from Azure Key Vault using getSystemSetting().
✨ Features
Resolve secrets with
getSystemSetting( "azure.SECRET-NAME" )3-tier configuration resolution per setting:
this.azureinApplication.bx, module settings, then Azure environment variables/default credentialsIn-memory TTL caching to reduce Key Vault API calls
Per-application
SecretClientisolation whenthis.azureis definedAutomatic client cleanup on application shutdown
Graceful fallback behavior: returns
nullon provider errors so normalgetSystemSetting()fallback continues
📦 Requirements
BoxLang 1.14+
bx-plusmoduleAzure identity with Key Vault
secrets/getpermission
🚀 Installation
Via CommandBox
Via BoxLang OS Binary
⚡ Quick Start
Install and activate
bx-plusandbx-azure-secretsConfigure credentials through
this.azure, module settings, or AzureDefaultAzureCredentialResolve secrets with
azure.namespaced keys
⚙️ Basic Configuration
Use module settings in boxlang.json when you want global defaults:
For per-app overrides and Azure CLI examples, see Configuration & Usage.
🔍 How Secret Resolution Works
For getSystemSetting( "azure.MY-SECRET" ), the provider:
Resolves effective Azure settings (3-tier lookup)
Checks in-memory cache using
vaultUrl:secretNameCalls Azure Key Vault when cache is stale/missing
Caches and returns the secret value
Returns
nullon lookup failure, allowing standard BoxLang fallback behavior
🔗 Related Documentation
Configuration & UsageModulesPlus CoreLast updated
Was this helpful?
