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.

  1. Confirm that the deployed ccf artifact mounts the ccf-openbao-seal secret into the OpenBao release.
  2. In bootstrap.env, set VAULT_UNSEAL_MODE=auto and VAULT_SEAL_MIGRATE=true.
  3. Run the vault phase, as described in Running a single installation phase.
  4. Run the vault operator unseal -migrate commands that the installer prints. The installer does not apply the keys itself.
  5. Set VAULT_SEAL_MIGRATE=false in bootstrap.env.

Each replica unseals itself from the ccf-openbao-seal secret after a restart.