Auto-unseal OpenBao on infra-01 with the kms-pkcs11 plugin #27

Open
opened 2026-07-11 18:11:01 +00:00 by thesuperRL · 0 comments
thesuperRL commented 2026-07-11 18:11:01 +00:00 (Migrated from codeberg.org)

Currently, there's nothing auto-unsealing OpenBao when the VM restarts. You have to go in and manually 3 of the 5 unseal keys.

nixpkgs just added pkgs.openbaoPlugins.kms-pkcs11, which the NixOS module can register through services.openbao.plugins.

Paired with tpm2-pkcs11, OpenBao could unseal itself using a key held in the VM's TPM.

We need a seal "pkcs11" block pointing at the token, and then we can migrate the seal with bao operator unseal -migrate using the current unseal keys.

Currently, there's nothing auto-unsealing OpenBao when the VM restarts. You have to go in and manually 3 of the 5 unseal keys. nixpkgs just added `pkgs.openbaoPlugins.kms-pkcs11`, which the NixOS module can register through `services.openbao.plugins`. Paired with `tpm2-pkcs11`, OpenBao could unseal itself using a key held in the VM's TPM. We need a `seal "pkcs11"` block pointing at the token, and then we can migrate the seal with `bao operator unseal -migrate` using the current unseal keys.
anish changed title from Auto-unseal OpenBao to Auto-unseal OpenBao on infra-01 with the kms-pkcs11 plugin 2026-10-05 17:51:24 +00:00
anish self-assigned this 2026-10-14 06:19:37 +00:00
Sign in to join this conversation.
No description provided.