turing-vault
v0.50.0
Published
A promise for merging secrets from vault with config.
Downloads
6
Readme
turing-vault
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