Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

az-keyvault

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

az-keyvault

Preload Azure Key Vault secrets into the environment

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

azure

FAQs

Package last updated on 21 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts