!agkXCfUrgbadYlQXRj:kack.it

NixOS + TPMs

183 Members
51 Servers

Load older messages


SenderMessageTime
1 Jun 2022
@joerg:thalheim.ioMic92but roles you create in vault17:25:16
@joerg:thalheim.ioMic92I would need to hard code per region vault roles in my nixos modules17:25:39
@joerg:thalheim.ioMic92https://registry.terraform.io/providers/hashicorp/vault/latest/docs/resources/aws_auth_backend_role17:26:14
@joerg:thalheim.ioMic92 Because one needs to set inferred_aws_region 17:26:26
@grahamc:nixos.org@grahamc:nixos.orgah, right17:26:56
@grahamc:nixos.org@grahamc:nixos.orgyeah so we've created multiple one per region of course17:27:03
@grahamc:nixos.org@grahamc:nixos.orgbecause instance profile ARNs are per region I think17:27:24
@joerg:thalheim.ioMic92I really should just have used client certs.17:27:50
@joerg:thalheim.ioMic92This is causing some much trouble down the line17:27:59
@grahamc:nixos.org@grahamc:nixos.orgstill could :) but I've found the AWS methods very very worth it17:28:28
@grahamc:nixos.org@grahamc:nixos.orgbut our instances are all ephemeral, and that makes it easy17:28:45
@joerg:thalheim.ioMic92This is definitely the last company I will setup this because they of their higher security needs. But otherwise the operational complexity is too high. One shouldn't need a devops just to maintain the security management.17:31:20
@grahamc:nixos.org@grahamc:nixos.orgwe've found that once it is up and you have one project using it, extending it to the rest has been really easy and straight forward17:32:39
@grahamc:nixos.org@grahamc:nixos.orgbut coming in to it without having used it and going from 0 to in production is definitely a very tall order17:32:49
@joerg:thalheim.ioMic92Documentation is severe lacking and the error message are not helpful.17:33:58
@grahamc:nixos.org@grahamc:nixos.orgI haven't personally found that to be true, but it may be that I come to it with some important background context17:34:20
@grahamc:nixos.org@grahamc:nixos.org * I haven't personally found that to be true, but it is probable that I come to it with some important background context17:34:30
@joerg:thalheim.ioMic92They ask end-users to deal with Nonces. If you don't have a background in cryptography, this is just care-less17:38:48
@grahamc:nixos.org@grahamc:nixos.orgah, yeah, that has to do with the otherwise insecure method that the deprecated aws-ec2 auth method uses17:39:06
@grahamc:nixos.org@grahamc:nixos.orgthe iam method doesn't need it and is much safer17:39:14
@grahamc:nixos.org@grahamc:nixos.orgI guess the ec2 method isn't deprecated, but the iam approach is recommended in a way that feels like ec2 was deprecated17:41:47
@joerg:thalheim.ioMic92Yeah, than I would need to hard set the aws region in my instances somehow...17:48:44
@joerg:thalheim.ioMic92 * Yeah, than I would need to set the aws region in my instances somehow to use iam...17:49:20
@grahamc:nixos.org@grahamc:nixos.orgwhy's that?17:51:11
@joerg:thalheim.ioMic92 Because I would for each region a different vault role because of the inferred_aws_region option that I need to set for aws_auth_backend_role. 17:58:39
@grahamc:nixos.org@grahamc:nixos.orgah, gotcha17:58:47
@joerg:thalheim.ioMic92 * Because I would need for each region a different vault role because of the inferred_aws_region option that I need to set for aws_auth_backend_role. 17:59:13
2 Jun 2022
@joerg:thalheim.ioMic92Wow systemd-creds is actually quite cool. This could be used to secure ssh host keys in the initrd for remote unlocking: https://man7.org/linux/man-pages//man1/systemd-creds.1.html05:45:24
@joerg:thalheim.ioMic92Using TPM05:45:29
6 Jun 2022
@shimun:shimun.netshimun ⚡️ joined the room.12:00:32

There are no newer messages yet.


Back to Room ListRoom Version: 6