Skip to content

Files

Latest commit

 

History

History

app-config-vault

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

App Config Vault Plugin

This is a package for using Hashicorp Vault values in App Config.

$vault:
  secret: 'foo'
  select: 'bar'

This is like, in the CLI:

vault kv get -format=json secret/foo | jq .data.data.bar

Meaning, it looks up the "secret/foo", and selects the value in "bar".

Usage

Install and use:

yarn add @app-config/vault

In .app-config.meta.yml file:

parsingExtensions:
  - '@app-config/vault'

Options look like this:

parsingExtensions:
  - name: '@app-config/vault'
    options:
      address: 'http://localhost:8200' // read from VAULT_ADDR if not set
      token: '...' // read from VAULT_TOKEN if not set
      namespace: '...' // optional, read from VAULT_NAMESPACE