Fedora users can now unlock full disk encryption with a TPM2 chip instead of typing a passphrase
Full Disk Encryption on Fedora with TPM2
A hands-on walkthrough of LUKS2 full disk encryption on Fedora, from creating a volume and managing key slots to enrolling a TPM-bound key with systemd-cryptenroll. Binding to PCR 7, optionally with a PIN, lets the machine auto-unlock at boot while keeping a recovery key as a fallback. The final step edits crypttab and rebuilds the initramfs with dracut so the TPM2 module loads early enough.
Today I'm diving into the world of Secure Boot, TPM2, and all of the complications that come with wanting a high level of security without having to type a disk encryption key all the time.
- davb
To counter some of the (valid) privacy concerns around TPM unlocked FDE, one big benefit is when it comes to decommissioning physically secure machines. If you aren’t concerned about the evil maid scenario and have reason to avoid network based unlocking, TPM unlocked FDE keeps your machines remotely rebootable while still allowing you pull a disk and send it for secure shredding at server EOL. That is to say, if your scenario is “encrypted at rest on a physically secure and trusted server” (more concerned with the storage medium alone), it’s a good fit. It means you’re not reliant on the OEMs opaque secure erase functionality.
- lakeviewterrace
Extraordinary how Linux continues to be 20 years behind Microsoft and Apple when it comes to FDE. This is a hilariously stupid level of complexity for something that should have a universal solution across distros by now.
This is literally a one click process in Windows (plus a couple shell commands to enable TPM+PIN).
I'm not disparaging the author in any way — he's merely documenting the stupidity.
- kanbankaren
If you are worried about privacy, do a FDE, but don't enroll with TPM.
You have no idea what is inside the TPM chip and its vulnerabilities.
- tryauuum
I always struggle to understand the point of using disk encryption with TPM, as opposed to the disk encryption with LUKS + passphrase which you remember
With TPM you depend on it so much. What if it breaks? Should I backup the recovery key beforehand? My life has enough keys already
Moving the disk to a new laptop also becomes pain
- nzrf
I've used a Tang server to provide encryption keys. Since I don't take my laptop out of my home much, I like the idea that only a passphrase can unlock my machine outside of my home network. It works well for home servers also, and I don't need a bunch of secure boot and storage pcr configs that get mucked up during bios updates.
My model of defense is.if someone is in my house taking all my stuff, I'm probably owned though a smash and grab yields nothing. Plan accordingly for your needs I guess.