From: "Shannon Sterz" <s.sterz@proxmox.com>
To: "Thomas Lamprecht" <t.lamprecht@proxmox.com>,
<pve-devel@lists.proxmox.com>
Subject: Re: [PATCH proxmox/installer/docs 0/8] installer: add full-disk encryption of the system disks
Date: Thu, 26 Nov 2026 17:05:39 +0100 [thread overview]
Message-ID: <DN59RIA1IVDJ.SHE70AQZMJH4@proxmox.com> (raw)
In-Reply-To: <20261117234330.801935-1-t.lamprecht@proxmox.com>
On Wed Nov 18, 2026 at 12:42 AM CET, Thomas Lamprecht wrote:
> This series lets the installer encrypt the system disks with a
> passphrase that has to be entered at every boot, so that the data of a
> powered-off or removed server cannot be read. It covers all products,
> the graphical and the terminal installer, and answer files.
>
> ext4 and xfs installations put the LVM volume group into a LUKS2
> container, Btrfs installations get one container per disk, and ZFS
> installations use native ZFS encryption with the pool as encryption
> root. All of them boot through proxmox-boot-tool, and the stock
> initramfs asks for the passphrase. The option is only offered if the
> installer was booted in UEFI mode.
>
> ZFS uses its native encryption rather than a LUKS2 container under
> every disk, so that data is encrypted once instead of once per mirror
> or RAIDZ member, and replacing a disk works as without encryption. In
> return, dataset names, properties and space usage stay readable, and
> the key is derived with PBKDF2 instead of Argon2id. The second docs
> patch drops the experimental label from native ZFS encryption, as the
> issues it cited are fixed.
>
> ZFS installations get a single passphrase for now, as native encryption
> has one key per encryption root. A recovery passphrase or TPM2 and
> FIDO2 unlocking can come later without a reinstall: `zfs change-key`
> can switch an installed pool in place to a random key kept in a small
> LUKS2 key store, whose key slots then provide them.
>
> In the mid/long term I'd also like to add support to setup unlocking
> with a TPM or FIDO2 token directly here, and likely also allowing UKIs
> for a full measured boot [0]. But this is not supported yet, as among
> other things Debian's initramfs-tools cannot use such key slots at boot,
> so we'd need to switch to dracut and also need to sign systemd-boot.
> For now the docs describe adding a recovery passphrase and unlocking
> over SSH after the installation.
>
> [0]: https://0pointer.de/blog/brave-new-trusted-boot-world.html
>
> The installer patches need a proxmox-installer-types release with the
> proxmox patch, and the ISO needs cryptsetup and cryptsetup-initramfs
> in its package pool, plus keyutils for PDM. PDM gets its own patch on
> pdm-devel.
>
> I tested all four products in VMs: every file system, single and
> multi-disk, with and without Secure Boot, interactive and automated,
> including a non-ASCII passphrase with a German keyboard layout,
> reinstalling over an existing LUKS container and the rescue procedure
> from the docs.
>
> Sending them mostly to give them some early exposure, while this
> MVP is rather polished, there is no need to rush this.
Took cursory look at this. I know this is possibly a bit much to ask for
at this stage, but since you are referencing that blog post, as well as
long term plans for TPM integration, and this is currently coming up in
different contexts already anyway: What about integrity guarantees?
aes-xts-plain64 has the downside of not providing protections against
tampering and manipulation [1]. This is less of a problem for ZFS, as
`aes-256-gcm` and its end-to-end checksum already provide AEAD. The main
downside if we start using integrity by default is that integrity tags
will consume more data than plain XTS mode encryption. Further,
according to `man cryptsetup` using the `--integrity` option is still
experimental, though `dm-integrity` has been available for a while now.
Strong integrity guarantees are often required by certain compliance
frameworks. So IMO, we would be better off long term already thinking of
this early on, even though it likely requires significant engineering
effort. Such integrity constrains then often also extend to runtime self
tests. Here being able to separate out data that isn't supposed to
change often (e.g. code, binaries etc.) could also be protected via
`dm-verity`. Though, that will for sure go past the scope of this series
and would have far reaching implications.
[1]: https://en.wikipedia.org/wiki/Disk_encryption_theory#XTS_weaknesses
prev parent reply other threads:[~2026-11-26 16:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 23:42 [PATCH proxmox/installer/docs 0/8] installer: add full-disk encryption of the system disks Thomas Lamprecht
2026-11-17 23:42 ` [PATCH proxmox 1/1] installer-types: add full-disk encryption to the disk setup Thomas Lamprecht
2026-11-17 23:42 ` [PATCH installer 1/5] install: encrypt the system disks with LUKS2 or native ZFS encryption Thomas Lamprecht
2026-11-26 16:05 ` Shannon Sterz
2026-11-17 23:42 ` [PATCH installer 2/5] auto: support full-disk encryption in answer files Thomas Lamprecht
2026-11-17 23:42 ` [PATCH installer 3/5] chroot enter: unlock the LUKS containers of an encrypted installation Thomas Lamprecht
2026-11-17 23:42 ` [PATCH installer 4/5] ui: offer full-disk encryption in the graphical and terminal installer Thomas Lamprecht
2026-11-17 23:42 ` [PATCH installer 5/5] assistant: keep the disk passphrase out of prepared ISOs Thomas Lamprecht
2026-11-17 23:42 ` [PATCH docs 1/2] installation: describe full-disk encryption Thomas Lamprecht
2026-11-17 23:42 ` [PATCH docs 2/2] local-zfs: update the limitations of native encryption Thomas Lamprecht
2026-11-26 16:05 ` Shannon Sterz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DN59RIA1IVDJ.SHE70AQZMJH4@proxmox.com \
--to=s.sterz@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
--cc=t.lamprecht@proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.