get-vault-credential

1.0.11 • Public • Published

get-vault-credential

Installation

npm install get-vault-credential # with npm
yarn add get-vault-credential # with yarn

Usage

  • Set up a record with the secret engine KV in the same format as the .env file:

    Instruction 1

  • Then use the path of the newly created record as the value for the --path option:

    Instruction 2

  • Execute command get-vault-credential with options:

    npx get-vault-credential \
        -u vault_username \ # Vault username
        -p vault_password \ # Vault password
        --origin https://vault.example.com \ # Vault server origin
        --path secret/test/data/local_env # Path of secret engine
  • After executing the command above, you will get the .env file with content similar to the content of the record on the vault server along with the version of that record:

    Instruction 3

Package Sidebar

Install

npm i get-vault-credential

Weekly Downloads

356

Version

1.0.11

License

ISC

Unpacked Size

419 kB

Total Files

9

Last publish

Collaborators

  • midas-inc