Important
|
-
Download the Hashicorp Vault binary from https://www.vaultproject.io/downloads
-
Unzip the binary and run it in dev mode - $ ./vault server -dev
-
Safe the generated master token from the log output - Root Token: …
-
Login to vault
-
$ vault login "The master token"
-
-
cd to the scripts folder of the project and run: $ sh ./init_vault.sh
-
The script will create
-
kv v1 store and move it to secret
-
policies for default, applicationA, applicationB & config-server with read access under secret/${policy_name} and secret/${policy_name}/**
-
a secret for applicationA, applicationB & config-server under _secret/${name}
-
tokens for applicationA, applicationB & config-server with a ttl of 24h, not renewable. The output is stored in ${name}.txt.
-