2.3.0 • Published 11 months ago

@lapis-it/vault-env-config v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Vault-Env-Config logo

vault-env-config

vault-env-config CLI provides 2 commands to integrate with Vault (https://www.vaultproject.io/) using Vault API (node-vault https://www.npmjs.com/package/node-vault).

  • Read key/value environment variables from Vault and store them in .env
  • Write key/value environment variables from .env to Vault

node-vault is currently using Vault API v1 and does not support v2.

Usage

Install

npm i @lapis-it/vault-env-config

Configure VAULT_ADDR and VAULT_TOKEN

You can either include VAULT_ADDR and VAULT_TOKEN in .env or export as environment variables.

read

export VAULT_ADDR=<YOUR VOLT> \
export VAULT_TOKEN=<YOUR TOKEN> \
export DEBUG=vault-env-config; \
vec read \
-k secret/data/my-project/local \
-e ./local.env

write

export VAULT_ADDR=<YOUR VOLT> \
export VAULT_TOKEN=<YOUR TOKEN> \
export DEBUG=vault-env-config; \
vec write \
-k secret/data/my-project/local \
-e ./local.env
2.3.0

11 months ago

2.2.4

3 years ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago