Skip to content
On this page

Vault

Installation

bash
npm install @willsoto/node-konfig-vault
bash
yarn add @willsoto/node-konfig-vault
bash
pnpm add @willsoto/node-konfig-vault

Usage

javascript
import * as Konfig from "@willsoto/node-konfig-core";
import { VaultLoader } from "@willsoto/node-konfig-vault";

const loader = new VaultLoader({
  secrets: [
    {
      key: "secret/data/database",
    },
  ],
});

Check the documentation for node-vault for configuration options.

Options

NameRequiredDescription
secretsyesAn array of secrets to load. See Secret for more information.
vaultOptionsnoVaultOptions

Secret

NameRequiredDescription
keyyesThe path to the secret in Vault.