1.0.11 • Published 2 years ago
get-vault-credential v1.0.11
get-vault-credential
Installation
npm install get-vault-credential # with npm
yarn add get-vault-credential # with yarnUsage
Set up a record with the secret engine KV in the same format as the
.envfile:
Then use the path of the newly created record as the value for the
--pathoption:
Execute command
get-vault-credentialwith 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 engineAfter executing the command above, you will get the
.envfile with content similar to the content of the record on the vault server along with the version of that record: