az-keyvault
v1.1.0
Published
Preload Azure Key Vault secrets into the environment
Downloads
34
Maintainers
Readme
az-keyvault
Load secrets from Azure Key Vault into the environment.
Getting started
Install the package
npm install az-keyvault
Preparation
To access your Key Vault you can use a service principal.
The following environment variables are required:
AZURE_CLIENT_ID="principal-app-ID"
AZURE_CLIENT_SECRET="principal-password"
AZURE_TENANT_ID="tenant-ID"
AZURE_KEY_VAULT_NAME="name-of-your-vault"
Usage
Use the --require
(-r
) command line option to preload az-keyvault
.
This will automatically fetch all secrets from the given vault and inject them into process.env
before loading your script.
node -r az-keyvault/load example.js