I have a docker compose setup that successfully starts consul (config here). Vault seems to start ok, except for some errors around setting the TTL (logs here).
Further on, consul seems to be hiccuping when trying to reach /v1/agent/check/fail/vault:127.0.0.1:8200:vault-sealed-check?note=Vault+Sealed
. Apparently 'vault:127.0.0.1:8200:vault-sealed-check' status is now critical
.
consul1 | 2016/11/05 20:50:04 [DEBUG] agent: Check 'vault:127.0.0.1:8200:vault-sealed-check' status is now critical
consul1 | 2016/11/05 20:50:04 [DEBUG] agent: Service 'vault:127.0.0.1:8200' in sync
consul1 | 2016/11/05 20:50:04 [DEBUG] agent: Service 'consul' in sync
consul1 | 2016/11/05 20:50:04 [DEBUG] agent: Check 'vault:127.0.0.1:8200:vault-sealed-check' in sync
consul1 | 2016/11/05 20:50:04 [DEBUG] agent: Node info in sync
consul1 | 2016/11/05 20:50:04 [DEBUG] http: Request PUT /v1/agent/check/fail/vault:127.0.0.1:8200:vault-sealed-check?note=Vault+Sealed (92.314µs) from=172.18.0.3:48742
When vault container starts (with consul backend) 1) how do we get the initial i) key and ii) root token. I'm using Hashicorp's official vault image with my custom /vault/config/vault.hcl (and consul image).
Ultimately, I want to know 2) how to unseal a vault server. And in this case, I want to unseal the vault server, that's running in the docker container. And 3) is this all I need, to start writing secrets to vault.