az-keyvault
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i az-keyvault

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

4.76 kB

Total Files

7

Last publish

Collaborators

  • tgrassl