!agkXCfUrgbadYlQXRj:kack.it

NixOS + TPMs

179 Members
49 Servers

Load older messages


SenderMessageTime
11 Aug 2021
@mic92:nixos.devMic92 (Old)That look painful to set up14:17:23
@mic92:nixos.devMic92 (Old)I wonder if NixOS also should sign kernel modules14:22:52
@andi:kack.itandi-I think we used to sign with a random key during compilation but that has been thrown away for reproducibility14:23:25
@andi:kack.itandi-That is for in-tree modules. Not sure about out of tree modules.14:24:29
@mic92:nixos.devMic92 (Old)I think for out-of-tree modules one could have a build hook14:25:07
@andi:kack.itandi-and the signing key is a (separate) output of the actual kernel build?14:25:30
@mic92:nixos.devMic92 (Old)Yes. It could be actually a build hook in the kernel. Every out-of-tree kernel module already has this as a depedency14:27:54
@mic92:nixos.devMic92 (Old)*dependency14:27:57
@grahamc:nixos.org@grahamc:nixos.orgI'd love to see development in that area, it'd be a bit tricky to know you're supposed to have access to the signing key15:44:08
@mic92:nixos.devMic92 (Old)I just stumbled over this features for the first time when modifying some runc hypervisor.15:48:29
@andi:kack.itandi- we could have a disallowedRequisites = [ kernel.signingKey ]; as very minimal "safety" against having the key world readable on the system (by accident). That is obviously not a silver bullet. Everyone that can build software against the systems nixpkgs checkout could generate properly signed modules and given that it would have to be deterministic you could probably just generate the key "offline" on another box.. 15:52:46
@andi:kack.itandi-What exactly are we gaining again? :D15:52:55
@mic92:nixos.devMic92 (Old)So would need an activation phase that signs all keys afterwards?16:10:35
13 Aug 2021
@grahamc:nixos.org@grahamc:nixos.orgthe work I'm doing around secureboot support is based on a more involved bootloader "install" step which could support signing modules19:47:39
18 Aug 2021
@mic92:nixos.devMic92 (Old)https://github.com/NixOS/nixpkgs/pull/13457705:30:59
@grahamc:nixos.org@grahamc:nixos.org
     tpm2_unseal -c ${dev.tpm2KeyFile.persistentObject} -p ${dev.tpm2KeyFile.authString} > /crypt-ramfs/tpm/unsealed
14:47:23
@grahamc:nixos.org@grahamc:nixos.orgI'm thinking this should be starting an auth session (I think that is the right term) and using the session key for subsequent calls so that the channel with the TPM is all encrypted14:48:23
@grahamc:nixos.org@grahamc:nixos.orgis tpm2_startauthsession the command which does that?14:48:52
@roosemberth:orbstheorem.chRoos joined the room.18:47:17
29 Aug 2021
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️ joined the room.09:45:57
31 Aug 2021
@florian:web3.foundationFlorian | W3F changed their display name from Florian | W3F to Florian | W3F - OoO.08:11:03
2 Sep 2021
@tnias:stratum0.orgtnias joined the room.21:50:46
4 Sep 2021
@0x4a6f:matrix.org[0x4A6F] joined the room.09:55:44
9 Sep 2021
@sugi:matrix.besaid.desugi joined the room.22:35:18
13 Sep 2021
@florian:web3.foundationFlorian | W3F changed their display name from Florian | W3F - OoO to Florian | W3F - OoO Mon/Tue.11:56:00
17 Sep 2021
@cleverca22:matrix.orgcleverca22 joined the room.06:04:06
18 Sep 2021
@cw:kernelpanic.cafeChinchilla Washington joined the room.20:51:53
20 Sep 2021
@cw:kernelpanic.cafeChinchilla Washington changed their display name from CornWallace to Rev. CornWallace III.06:45:31
@cw:kernelpanic.cafeChinchilla Washington changed their display name from Rev. CornWallace III to Rev. CornWallace III (tzu/tzi).15:22:30
@cw:kernelpanic.cafeChinchilla Washington changed their display name from Rev. CornWallace III (tzu/tzi) to Rev. CornWallace III (sun/tzu).15:24:51

Show newer messages


Back to Room ListRoom Version: 6