From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 868D61FF0B3 for ; Thu, 26 Nov 2026 17:05:52 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 0494021722; Thu, 26 Nov 2026 17:05:45 +0100 (CET) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 26 Nov 2026 17:05:39 +0100 Message-Id: Subject: Re: [PATCH proxmox/installer/docs 0/8] installer: add full-disk encryption of the system disks To: "Thomas Lamprecht" , X-Mailer: aerc 0.20.0 References: <20261117234330.801935-1-t.lamprecht@proxmox.com> In-Reply-To: <20261117234330.801935-1-t.lamprecht@proxmox.com> From: "Shannon Sterz" X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795709139537 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.527 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: VXRL5BYKRCY4V4A43PCYZEG7ANO6GTF6 X-Message-ID-Hash: VXRL5BYKRCY4V4A43PCYZEG7ANO6GTF6 X-MailFrom: s.sterz@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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