Hi,
I am continuing
this conversation. I need some assistance in integrating Vault with Nomad using a Consul backend. Here is what the existing setup looks like:
Vault server running on all (3) Consul nodes using the following command:
$ vault server -config=/vault/config -dev-root-token-id= -dev-listen-address=
0.0.0.0:8200 -config /config.hcl
Set the VAULT_ADDR environment variable on my local machine:
$ vault auth <root_token>
Confirmed that Vault is unsealed:
$ vault status
OUTPUT:
Sealed: false
Key Shares: 5
Key Threshold: 3
Unseal Progress: 0
High-Availability Enabled: true
Mode: standby
Leader: http://<leader_ip>:8200
Tested writing a secret:
$ vault write secret/hello value=world
OUTPUT:
Success! Data written to: secret/hello
Tested reading the secret that was written previously:
$ vault read secret/hello
OUTPUT:
Key Value
lease_duration 2764800
value world
To further test Vault integration with Nomad I would like to use this secret in a Nomad job so my question is: how can I use this newly created secret in a job?