I’m looking to use Vault for keeping passwords secure for my Terraform deployments.
I’ve setup a single instance of Vault and all is great until the VM running Vault is restarted and the Vault is then sealed.
I’ve investigated AutoSealing and it all requires cloud based KMS solutions or expensive HSM devices.
I’m trying to find a solution for my home lab setup that could also be used for purely on premises setups that is suitable/secure for production use.
Basically my requirements are:
- High availability (I’ve found some install docs using Consul, which look promising)
- Easy integration with Terraform (there’s a module for that).
- Automatic unsealing if the servers are rebooted - this is my problem area.
There is a way of using a second Vault to store the credentials to enable the first Vault to automatically unseal, but that just moves the problem to the second Vault
I have noticed an open source SoftHSM, but no idea if that will work with Vault (does it work at all or only with the paid for Vault?)
Has anyone got a solution that is fully automated?