1.1.0 • Published 1 year ago

az-keyvault v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

az-keyvault

NPM version

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