!agkXCfUrgbadYlQXRj:kack.it

NixOS + TPMs

168 Members
43 Servers

Load older messages


SenderMessageTime
16 Jul 2021
@grahamc:nixos.org@grahamc:nixos.org100%13:50:19
@andi:kack.itandi-With GPG everyone has some wrong assumption on how it works but it works somehow (most of the time?)13:50:27
@grahamc:nixos.org@grahamc:nixos.org

the complicated bad stuff of GPG that I hate is:

  1. people don't know how to use it safely
  2. it is easy to do something catastrophically bad
  3. the lifecycle of the keys is "I dunno whatever"
13:51:51
@andi:kack.itandi- Like I was asked what kind of file encryption we (day job) could use for exchanging sensitive documents with a partner... The partner proposed GPG because their enterprise security department says it is secure. Nothing else is acceptable as it hasn't been audited. Something like age wouldn't even be considered even if it is simpler and better suited for the process :/ 13:52:06
@andi:kack.itandi-And I think with "audited" they don't mean having read the GPG code...13:52:38
@grahamc:nixos.org@grahamc:nixos.orghahaha no chance13:52:43
@andi:kack.itandi-Hell, I'd probably propose just using openssl CLI instead of GPG...13:53:04
@grahamc:nixos.org@grahamc:nixos.orgoh and 4. people pretend like mere mortals could use it13:53:13
@grahamc:nixos.org@grahamc:nixos.orgat least with a TPM nobody is expecting regular people to actually interact with it13:53:33
@andi:kack.itandi-Wait until we adjust the NixOS install guid to "now do your usual TPM init dance"13:53:54
@andi:kack.itandi- * Wait until we adjust the NixOS install guide to "now do your usual TPM init dance"13:54:00
@grahamc:nixos.org@grahamc:nixos.orglol13:54:32
@andi:kack.itandi-I actually fear providing any kind of "easy" solution to use TPMs for disk encryption by default... It smells like a huge foot gun.13:54:46
@grahamc:nixos.org@grahamc:nixos.orgI think it has to be easy ...13:54:55
@andi:kack.itandi-Someone trying Linux for a moment and then switching back to windows might be surprised...13:54:56
@grahamc:nixos.org@grahamc:nixos.orgoh13:55:03
@andi:kack.itandi-Of course it has to be easy but nobody expects there to be state that is actually important.13:55:16
@grahamc:nixos.org@grahamc:nixos.orgright13:55:30
@grahamc:nixos.org@grahamc:nixos.orgcomplicated13:55:46
@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

There are no newer messages yet.


Back to Room ListRoom Version: 6