0.2.0 • Published 8 years ago

mumba-config-vault v0.2.0

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
8 years ago

Mumba Vault

A Vault configuration loader for Mumba Config.

Installation

$ npm install mumba-config-vault

Example

TypeScript

import {Config} from "mumba-config";
import {GenericSecret} from "mumba-vault";
import {VaultLoader} from "mumba-config-vault";

let config = new Config();
let vault = new GenericSecret();
let vaultLoader = new VaultLoader(vault);

config.registerLoader(vaultLoader);

config.load([
		{
			name: 'vault',
			token: '442eec1e-ba12-e000-91dc-78fafbdb8015',
			path: '/v1/secret/the/path'
		}
	])
	.then(() => {
	  // Vault secrets are now loaded into the config object.
	})
	.catch(console.error);

Code quality and tests

$ npm run test

License

Apache-2.0

References


© 2016 Mumba Pty Ltd. All rights reserved.

0.2.0

8 years ago

0.1.0

8 years ago