Migrating OpenBao to static key auto-unseal
Migrate an OpenBao deployment that was initialized with Shamir keys to static key auto-unseal, a one-way change.
A deployment that was initialized with Shamir keys can migrate to static key auto-unseal. The migration is one way. The former unseal keys become recovery keys.
- Confirm that the deployed ccf artifact mounts the ccf-openbao-seal secret into the OpenBao release.
- In bootstrap.env, set
VAULT_UNSEAL_MODE=autoandVAULT_SEAL_MIGRATE=true. - Run the vault phase, as described in Running a single installation phase.
- Run the
vault operator unseal -migratecommands that the installer prints. The installer does not apply the keys itself. - Set
VAULT_SEAL_MIGRATE=falsein bootstrap.env.
Each replica unseals itself from the ccf-openbao-seal secret after a restart.
