#12642·talos

Interactive LUKS unlock for encrypted Talos nodes

Author: maartenvdezzCreated Jan 22, 2026Updated Sep 27, 2026
Labelstriage/needs-research

Feature Request

  • Create an interactive passphrase key provider for Talos LUKS disk encryption. If the tpm2/kms fails, you can still type in a passphrase to recover the locked node if an additional passphrase keyslot is added out-of-band (post-install). (!) This is NOT because we want to use the static encryption option (which is unsafe). We are NOT planning on putting a recovery passphrase into the Talos Config.

Description

In Issue 10755 someone asked for interactive passphrase unlock of encrypted Talos nodes. The issue was inactive and closed but for our organisation still very relevant.

We are not going to use the static encryption method, since the passphrase then lives plain text in the META partition. We are going to use TPM2, and afterwards use a privileged daemonset/job to generate a diceware passphrase for recovery and add that as an additional LUKS keyslot. That way, we will not have the key in the META partition, but we can still recovery all our datadisks if TPM2 fails (e.g., due to strict PCR policy bindings).

The functional requirement for that is that we can put in the "recovery" passphrase interactively. Of course we would be able to use the secondary keyslot to recover the data offline, but we just want to unlock it using the passphrase and then re-enroll the tpm2 keyslot.

The interactive unlock can be done using serial (which is the default in initramfs equivalent in other distros I believe) or VGA, I prefer serial. Other options might be possible as well.

As far as I can see, this method is actually secure and different to the previous requests (10755, 10871, 10869).

Our workflow

  1. Install Talos with TPM2 (and/or KMS) LUKS2 encryption.
  2. After install, deploy a privileged job/daemonset that:
  • generates a high-entropy diceware recovery passphrase,
  • adds it as an additional LUKS keyslot on encrypted volumes (STATE/EPHEMERAL/raw volumes).
  1. If TPM2/KMS unlock fails during boot:
  • Talos should allow supplying a recovery passphrase interactively (e.g. via console) or via a one-time talosctl mechanism,
  • Talos uses the provided passphrase to unlock the volume via the extra keyslot.
  • An engineers (or, optionally, an operator) re-enrolls TPM2 / updates PCR policy, and reboot returns to normal operation.