Hi,
I’m setting up Vault in our lab in a docker container. It works a treat without TLS but I cannot leave our lab credentials in the clear. I’ve created a self-signed cert on the server. I’ve altered the local.json config file I’m working from but the container will not come up. I can’t even get any logs from it.
cert common name - vault.sandpit.corpnet.co.uk
docker volume - /etc/vault:/vault
server cert locations - /etc/vault/config/certs/vault-self-signed-crt.pem, /etc/ssl/certs/vault-self-signed-crt.pem
server key locations - /etc/vault/config/certs/vault-self-signed-key.pem, /etc/ssl/certs/vault-self-signed-key.pem
The local.json file in /etc/vault/config:
{
“listener”: [{
“tcp”: {
“address”: “vault.sandpit.corpnet.co.uk:8200”,
“tls_cert_file”: “/vault/config/certs/vault-sandpit-selfsigned-crt.pem”,
“tls_key_file”: “”/vault/config/certs/vault-sandpit-selfsigned-key.pem",
}
}],
“storage”: {
“file”: {
“path”: “/vault/data”
}
},
“max_lease_ttl”: “10h”,
“default_lease_ttl”: “10h”,
“ui”: true
}
The host file on the server has it’s IP pointing to vault.sandpit.corpnet.co.uk.
So do I have an issue because I’m in a container and vault isn’t able to resolve the IP address?
Thanks Mark