-
Run the server
$ docker-compose up -d
-
Open Vault UI in your browser and follow the instructions. Don't forget to download the keys.
On other terminal window run the following steps.
-
Export vault server address to environment variables.
$ export VAULT_ADDR=http://127.0.0.1:8200
-
Add
VAULT_TOKEN
environment variable with the value of yourroot token
.$ export VAULT_TOKEN=<your-root-token>
You should do the preparation steps prior to this step.
$ vault write secret/whatever key=value
If writing a file prepend @
to the value. Example: key=@value where value
is the filename.
You should do the preparation steps prior to this step.
$ vault read secret/whatever
You should do the preparation steps prior to this step.
$ vault delete secret/whatever
You should do the preparation steps prior to this step.
$ vault list secret
To learn more about hashicorp vault visit the official documentation.