Hi @mouglou,
I hope you are still reading this, since I just came up with a similar idea.
- Setup a three-node Vault cluster with internal storage (thus circumventing the Consul setup).
- Generate some short-lived “bootstrap” certificates for each node using Ansible.
- Create Vault intermediate CA, importing the root certificate.
- Use
consul-template
to request a new certificate for each node, write them to disk and restart/SIGHUP
vault.
I’m still not sure if this is “clever” or incredibly stupid. In the worst case, I still could use Ansible to replace all certificates of the Vault nodes.