Skip to content

crowdbotics/heroku-vault

Repository files navigation

Vault

Quick app to run a vault server in a heroku dyno

Deploy

Setup

brew install vault vault-cli jq

export VAULT_APP=<APP NAME YOU PICKED>
export VAULT_ADDR="https://${VAULT_APP}.herokuapp.com"

vault operator init -key-shares=1 -key-threshold=1      #### stash the output of this command in a safe place!

export VAULT_TOKEN=<ROOT TOKEN FROM INIT>
vault write secret/hello value=world
vault read secret/hello

To automatically unseal set

export VAULT_UNSEAL_KEY=<unseal-key-here>

Check status

vault status

Useful Links