!agkXCfUrgbadYlQXRj:kack.it

NixOS + TPMs

179 Members
49 Servers

Load older messages


SenderMessageTime
16 Jul 2021
@andi:kack.itandi-I'll have to read a few more things on this...13:28:31
@grahamc:nixos.org@grahamc:nixos.orgme too :P13:34:29
@grahamc:nixos.org@grahamc:nixos.orghttps://developers.tpm.dev/posts/15575774 got confirmation on my question about the private half not being sensitive13:40:53
@andi:kack.itandi-Interesting. What do you do with primary.ctx? Store somewhere? Destroy as you don't intend to ever change it?13:43:06
@grahamc:nixos.org@grahamc:nixos.orgdestroy it and recreate every time13:43:19
@grahamc:nixos.org@grahamc:nixos.orgI believe createprimary creates an encryption key to communicate with the TPM with, and then gets the the key to sign13:43:56
@grahamc:nixos.org@grahamc:nixos.org * I believe createprimary creates an encryption key to communicate with the TPM with, and then gets the TPM's key 13:44:17
@grahamc:nixos.org@grahamc:nixos.orgthe communication key is changing every time but that is fine, but the TPM's key is the same every time13:44:28
@grahamc:nixos.org@grahamc:nixos.orgif you run createprimary with th esam eargs a bunch of times the first half of the file is different every time and the second half is the same13:44:41
@andi:kack.itandi-ok, perhaps I should start with QEMU and some soft TPM to play around with this13:47:05
@andi:kack.itandi-less likely to screw up my SSH key that way :D13:47:14
@grahamc:nixos.org@grahamc:nixos.orgyes, I haven't moved my dataset's encryption to use the TPM yet either :P 13:47:58
@andi:kack.itandi-When we used to say GPG is hard I think we really overstated it a bit in comparison13:48:33
@grahamc:nixos.org@grahamc:nixos.orgyou know, I disagree13:48:45
@grahamc:nixos.org@grahamc:nixos.orgwell13:48:54
@andi:kack.itandi-I am not defending GPG...13:49:05
@grahamc:nixos.org@grahamc:nixos.orgyeah13:49:09
@grahamc:nixos.org@grahamc:nixos.orgI'm trying to think about what my position is here :P13:49:20
@andi:kack.itandi-TPMs in systems like Windows or MacOS are probably something ~15 engineers at either company understand and maintain. None of the millions of users has knowledge about them to use BitLocker or FileVault.13:50:07
@grahamc:nixos.org@grahamc:nixos.orgyes!13:50:16
@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

Show newer messages


Back to Room ListRoom Version: 6