vault-sample
Local instance of vault server with some example interaction.
usage
git clone https://github.com/giancarlopetrini/vault-sample
cd vault-sample/docker && docker build . -t vault-server
docker run -p 8200:8200 vault-server
- copy these values from container's output on startup.
(sample outout)
Unseal Key: VxoPKlqrTzYM6nMAXUL6mf6uI7zqbjTUJqSvJjg9LaA=
Root Token: s.8DvHThWbRAvEclTBeRvjgnVI
- in
client/auth.yaml
paste token and unseal key in corresponding places - in another terminal,
cd client && go run main.go