turing-vault

0.50.0 • Public • Published

turing-vault

version license

A promise for merging secrets from vault with config.

API

To enrich turing-config with secrets from vault you simply have to require turing-vault. It will return a promise which makes it easy to react to success and error.

const TuringVault = require('turing-vault');

new TuringVault().then(() => {
  // do sth
}).catch((error) => {
  throw error;
});

Config

  • turing:vault:address - Url of vault endpoint. (default: "localhost")
  • turing:vault:token - Vault token.
  • turing:vault:secrets - A list of secrets you want to import from vault.

Secret Format

{
  path: "/a/path/to/the/secretConfig",
  key: {
    name: "theNameOfTheSecret",
    alias: "the:turing:config:path:to:the:value's:key"
  }
}

Get the secret with

config.get("secretConfig:keyForTheValue");

Contributors

  • Benedikt Stemmildt
  • Jonathan Meyer
  • Christian Finckler

License

Apache-2.0

Readme

Keywords

none

Package Sidebar

Install

npm i turing-vault

Weekly Downloads

1

Version

0.50.0

License

Apache-2.0

Last publish

Collaborators

  • benestem
  • jmeyer