!agkXCfUrgbadYlQXRj:kack.it

NixOS + TPMs

175 Members
43 Servers

Load older messages


SenderMessageTime
18 Jul 2021
@andi:kack.itandi-I also get those and can still authenticate my SSH session20:19:30
@andi:kack.itandi-But yeah it is not optimal..20:19:44
@andi:kack.itandi-I hope I'll have some time to read the TPM2.0 spec next week. Been not doing much since Thursday and the weekend was occupied otherwise20:20:31
@grahamc:nixos.org@grahamc:nixos.orgunderstandable20:21:00
@grahamc:nixos.org@grahamc:nixos.org I wonder why getplatformcertificates is suddenly part of tss and not the tpm2 command 20:21:23
@andi:kack.itandi-the developers of tss needed it before they started the tpm2 tool?20:22:09
@grahamc:nixos.org@grahamc:nixos.orghm20:22:21
19 Jul 2021
@manveru:matrix.orgmanverudoes anyonne know if there's some way to turn tpm emulation on for a nixos test?06:23:46
@andi:kack.itandi-The current VM infrastructure doesnt allow that. You have to run an additional daemon 07:13:39
@mic92:nixos.devMic92 (Old)Could you run two VMs for that?11:48:55
@andi:kack.itandi-No, you have to pass a socket to one of the daemons to QEMUs CLI. Forking off the software TPM before starting QEMU is probably good enough in a sandboxed test. For interactive testing you want more process control.11:49:44
@mic92:nixos.devMic92 (Old)There is some bridging possible with vsockets, but I guess it would get hacky11:50:04
@mic92:nixos.devMic92 (Old)Maybe socat?11:50:10
@andi:kack.itandi-Yeah, probably but not very elegant. Would be nicer to teach our test driver to take care of "sidecars"11:50:31
@mic92:nixos.devMic92 (Old)vsocket also need root with qemu I just remeber11:51:07
@mic92:nixos.devMic92 (Old)*remember11:51:12
@mic92:nixos.devMic92 (Old)It would be also nice for virtiofsd to have qemu side cars11:51:38
@andi:kack.itandi-yeah but that also requires root access IIRC11:51:58
@mic92:nixos.devMic92 (Old)Why because virtiofsd needs to change uids?11:53:58
@mic92:nixos.devMic92 (Old)Maybe there could be a uid mapping mode in virtiofsd to map some uid to uid 011:54:14
@mic92:nixos.devMic92 (Old)That would be enough for the nix store.11:54:24
@andi:kack.itandi-Yeah. Like the old 9pfs already worked.11:58:39
@andi:kack.itandi-I haven't dived into the code since it was merged upstream. Back then the docs were all a bit outdated11:59:01
@mic92:nixos.devMic92 (Old)I put this on my long-term TODO list. For the next months I have enought other VM stuff to solve12:02:07
@mic92:nixos.devMic92 (Old)I don't think it would be very complicated12:02:25
@grahamc:nixos.org@grahamc:nixos.orgcool13:14:11
@grahamc:nixos.org@grahamc:nixos.orgI was watching a talk from mjg59 where he mentioned the code quality of tpm2 and tss2 and that it was ... interesting ... inspiring them to make their own pure Go implementation for https://github.com/google/go-attestation13:20:40
@andi:kack.itandi-But their tool only focues on attestation basically leaving us with an even more clustered situation if you want to use the TPM for more than just verified boots?13:29:44
@andi:kack.itandi-Not to sound too negative: I think it is great that that option exists and looks much nicer than the alternatives.13:31:54
@grahamc:nixos.org@grahamc:nixos.orgoh of course13:34:37

Show newer messages


Back to Room ListRoom Version: 6