!agkXCfUrgbadYlQXRj:kack.it

NixOS + TPMs

182 Members
49 Servers

Load older messages


SenderMessageTime
16 Jul 2021
@andi:kack.itandi-I am also almost certain that if it were feasible to do this with every other user on Linux Fedora or such would have tried that.13:55:55
@grahamc:nixos.org@grahamc:nixos.orgit would probably need to be an opinionated thing13:56:29
@grahamc:nixos.org@grahamc:nixos.orglike "this won't work unless you follow our strict path =) my way or the highway "13:57:06
@andi:kack.itandi-Ok, I actually think Fedora has done that stuff. There is that dracut plugin that allows you to do SSS, Password, remote unlock and TPM based unlock etc..13:57:58
@grahamc:nixos.org@grahamc:nixos.orgalthough in what I've set up here I get PCR validation and encrypted disks without using nvram statue13:58:02
@grahamc:nixos.org@grahamc:nixos.org * although in what I've set up here I get PCR validation and encrypted disks without using nvram state13:58:12
@grahamc:nixos.org@grahamc:nixos.orgso it would only get wiped if they switched to windows and windows cleared the tpm13:58:31
@andi:kack.itandi-https://aboutcher.co.uk/2020/06/fedora-linux-luks-encryption-with-tpm-unlock/ this sounds so easy :D14:02:06
@hexa:lossy.networkhexaoh right, clevis.14:02:51
@andi:kack.itandi-Getting clevis to work on NixOS would already be amazing. SSS for unlocking a community computer is a common enough use case.14:03:33
@hexa:lossy.networkhexaright, that's when we looked into that14:03:59
@andi:kack.itandi-and tango is the remote attestation part to it14:05:09
@grahamc:nixos.org@grahamc:nixos.orgI clicked the link thinking "oh great, exactly what we need, yet another blog post with some obscure commands with dozens of flags that probably makes it work just barely well enough but not actually be thorough"14:08:15
@grahamc:nixos.org@grahamc:nixos.orgbut it is short enough that I reasonably trust it!14:08:23
@andi:kack.itandi-So clevis probably puts the two public parts into the initrd?14:09:15
@grahamc:nixos.org@grahamc:nixos.orgmaybe uses nvram14:09:27
@andi:kack.itandi-https://github.com/latchset/clevis/blob/f8132dfbfdce6db8b2195bc6cd34c46db369ba5d/src/pins/tpm2/clevis-encrypt-tpm2#L7014:11:52
@andi:kack.itandi-apparently does. After that line all your other keys are gone?14:12:16
@andi:kack.itandi-More like here https://github.com/latchset/clevis/blob/f8132dfbfdce6db8b2195bc6cd34c46db369ba5d/src/pins/tpm2/clevis-encrypt-tpm2#L156-L15714:12:23
@grahamc:nixos.org@grahamc:nixos.orgbash ;_;14:13:00
@andi:kack.itandi-Isn't that your favourite language? :)14:13:44
@grahamc:nixos.org@grahamc:nixos.org:)14:13:53
@grahamc:nixos.org@grahamc:nixos.orgset -e # all good!14:13:58
@andi:kack.itandi-oh, I am confusing you with that other guy...14:14:17
@grahamc:nixos.org@grahamc:nixos.orghttps://github.com/latchset/clevis/blob/f8132dfbfdce6db8b2195bc6cd34c46db369ba5d/src/pins/tpm2/clevis-encrypt-tpm2#L21-L2514:16:11
@andi:kack.itandi-Any idea where that code is?14:18:49
@andi:kack.itandi-I've only found a dracut module with that name14:19:16
@grahamc:nixos.org@grahamc:nixos.orgI can't find it14:19:29
@andi:kack.itandi-I feel like I'd want to throw most of clevis away and implement it in Rust/Python/... instead14:41:06
@grahamc:nixos.org@grahamc:nixos.orgwhen people look at Nixpkgs and say "puke, bash" I say yes but it runs in a sandbox and is gone at the end14:50:52

Show newer messages


Back to Room ListRoom Version: 6