NOT FOR PRODUCTION USE, ONLY FOR LEARNING
The policies
folder contains the policies needed to administer the basic vault set up like a vault admin, and an example approle.
This folder contains scripts that allows you to run a development version of HashiCorp Vault locally on your machine using Docker.
The scripts are named in a numeric way which corresponds with the order of execution.
Run scripts in order:
-
cat /tmp/vault.init
to view root token -
Create a file:
touch .secret0
, and fill VAULT_DEV_ROOT_TOKEN_ID, VAULT_USERNAME and VAULT_PASSWORD with your own values:#!/bin/bash export VAULT_ADDR='https://127.0.0.1:8200' export VAULT_DEV_ROOT_TOKEN_ID='' # to fill in Initial Root Token here export VAULT_USERNAME='' # to fill in your own username export VAULT_PASSWORD='' # to fill in your own password
*** This will be your secret0, precious root secret.***
-
OPTIONAL
./5_start_ui.sh
-
Put secrets into the Vault - i.e. mongodb url, etc.
To shutdown all vault services, run:
When you fully understand what the scripts are doing, and is lazy, run all scripts at once using:
-
View output here:
tail -f nohup.out
Read more about Vault environment variables