From: "Shannon Sterz" <s.sterz@proxmox.com>
To: "Thomas Lamprecht" <t.lamprecht@proxmox.com>,
<pve-devel@lists.proxmox.com>
Subject: Re: [PATCH installer 1/5] install: encrypt the system disks with LUKS2 or native ZFS encryption
Date: Thu, 26 Nov 2026 17:05:36 +0100 [thread overview]
Message-ID: <DN59RH0B58DD.1SUDSGPH1K4FP@proxmox.com> (raw)
In-Reply-To: <20261117234330.801935-3-t.lamprecht@proxmox.com>
On Wed Nov 18, 2026 at 12:42 AM CET, Thomas Lamprecht wrote:
-->8 snip 8<--
> @@ -216,7 +270,24 @@ sub zfs_create_rpool {
> my $cmd = "zpool create -f -o cachefile=none";
> $cmd .= " -o ashift=$zfs_opts->{ashift}" if defined($zfs_opts->{ashift});
>
> - syscmd("$cmd $pool_name $vdev") == 0 || die "unable to create zfs root pool\n";
> + if (my $enc = Proxmox::Install::Config::get_encryption()) {
> + # the pool is the encryption root, so all datasets inherit its key
> + with_secret_keyfile(
> + $enc->{passphrase},
> + sub {
> + my ($keyfile) = @_;
> + my $opts = "-O encryption=aes-256-gcm -O keyformat=passphrase"
> + . " -O keylocation=file://$keyfile";
Small question: Since above you try to control most of the default
settings for cryptsetup, should we here also set `pbkdf2iters`? By
default zfs seems to use 350 000 iterations (`man zfsprops`), but OWASP
recommends at least 600 000 iterations [1].
[1]: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html
-->8 snip 8<--
next 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 [this message]
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 ` [PATCH proxmox/installer/docs 0/8] installer: add full-disk encryption of the system disks Shannon Sterz
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=DN59RH0B58DD.1SUDSGPH1K4FP@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox