Disk encryption on NetBSD – achieving secrecy netbsd.org · 13 points · 0 comment...
HN Best 200 @best
Disk encryption on NetBSD – achieving secrecy netbsd.org · 13 points · 0 comments · HN thread
TL;DR A NetBSD developer (nia) walks through a way to encrypt most of a NetBSD system's sensitive data using the standard installer and boot process, keeping only a small unencrypted root filesystem. The approach uses cgd with Adiantum or AES, moves /home, /var and /usr onto an encrypted partition, and symlinks them back into place. The article is a how-to guide that targets the threat of a lost or stolen device rather than tampering.
- Threat model focuses on a stolen or lost device; tamper-proofing is treated as out of scope because it is very difficult to achieve.
- The base system in /bin and similar directories is assumed to be the same public binary for every user, so only user-modified and service data is treated as sensitive.
- Full disk encryption is hard because the OS must load files to boot, so the author keeps a small unencrypted root (about 4 GB) and encrypts the rest with cgd.
- The author recommends Adiantum on CPUs without hardware AES acceleration, and argon2id for deriving a 256-bit key from a passphrase.
- Setup is shown for both disklabel (sparc64) and GPT wedges (amd64), with a nested disklabel or GPT table used to verify the password.
- Final steps copy /home, /var and /usr to the encrypted filesystem, replace them with symlinks, and set critical_filesystems_local in /etc/rc.conf so they mount early.
Discussion The story has 13 points but no comments yet, so there is no discussion to summarize.
#NetBSD #diskEncryption #cgd #Adiantum #systemAdministration