!atvIbxHoEqNcAIxYpN:nixos.org

NixOS AWS

64 Members
16 Servers

Load older messages


SenderMessageTime
11 Oct 2024
@commiterate:matrix.orgcommiterateone day we'll move to systemd-repart23:29:28
@commiterate:matrix.orgcommiterate * one day we'll move to systemd-repart for a fully self-contained image23:31:06
@arianvp:matrix.orgArianThat's why I'm making this change. As repart can't make bios images 23:44:11
@arianvp:matrix.orgArian* That's why I'm making this change. As repart can't make mbr partition tables23:44:24
@arianvp:matrix.orgArianSo I want to make sure all images are GPT Partition tables. Then I can move to repart builder later23:44:42
13 Oct 2024
@arianvp:matrix.orgArianurgh bad news13:22:36
@arianvp:matrix.orgArian the NixOS config we ship in the base image doesn't set stateVersion 13:22:50
14 Oct 2024
@arianvp:matrix.orgArianPSA: we shipped a pretty serious bug to unstable that will lock you out of your EC2 instances : https://discourse.nixos.org/t/breaking-changes-announcement-for-unstable/17574/6310:03:47
@arianvp:matrix.orgArian* PSA: we shipped a pretty serious bug to unstable that will lock you out of your EC2 instances if using ssh. SSM still works https://discourse.nixos.org/t/breaking-changes-announcement-for-unstable/17574/6310:04:07
@arianvp:matrix.orgArian* PSA: we shipped a pretty serious bug to unstable that will lock you out of your EC2 instances if using ssh. SSM still works. Please refrain from updating untill the fix has landed on the unstable branch https://discourse.nixos.org/t/breaking-changes-announcement-for-unstable/17574/6310:04:30
@arianvp:matrix.orgArianhmm one with that worries me with AuthorizedKeysCommand for the main ssh key is http://blog.champtar.fr/Metadata_MITM_root_EKS_GKE/ i.e. EC2 instance connect goes out of its way to protect against a rogue IMDS. But the normal ssh key does not13:48:06
@arianvp:matrix.orgArianidk if this is really in scope...13:48:12
@arianvp:matrix.orgArianI just find it interesting that EC2 instance connect goes all the way to protect against such attacks 13:48:24
@arianvp:matrix.orgArianbut then the normal SSH key doesn't get protected by this at all13:48:32
15 Oct 2024
@commiterate:matrix.orgcommiterateI wouldn't be surprised if it were on the backlog or if they view the EIC certs from IMDS also providing proof that the EC2 Key Pair is also probably safe06:34:32
@commiterate:matrix.orgcommiteratethough they don't encrypt the SSH keys and require you to use the certs to decrypt the ciphertext, so...06:35:10
@commiterate:matrix.orgcommiterateat least that's my understanding, but the existing EIC AuthorizedKeysCommand Bash scripts aren't the easiest to read06:35:41
@commiterate:matrix.orgcommiterateMight be interesting for people who use Nix on non-NixOS EC2 instances (e.g. macOS): https://github.com/DeterminateSystems/nix-installer/issues/123506:37:05
@commiterate:matrix.orgcommiterate * I wouldn't be surprised if it were on the backlog or if they view the EIC certs from IMDS also providing proof that the EC2 Key Pair from IMDS also hasn't been tampered with 06:39:01
@commiterate:matrix.orgcommiterate * at least that's my understanding and what that security finding points out, but the existing EIC AuthorizedKeysCommand Bash scripts aren't the easiest to read 06:45:23
@commiterate:matrix.orgcommiterate * at least that's my understanding and what that security finding outlines, but the existing EIC AuthorizedKeysCommand Bash scripts aren't the easiest to read 06:45:31
@commiterate:matrix.orgcommiterateeven if they did encrypt the keys with the cert, it would still be vulnerable to MITM since it can just replace all IMDS responses06:46:28
@arianvp:matrix.orgArianI think the trick here is maybe to point to flakehub?09:53:30
@arianvp:matrix.orgArianNote there's a determinate systems discord. I'd suggest discussing a bit there09:53:50
@arianvp:matrix.orgArianP.S. MacOS is such a pain on EC2 holy moly09:54:18
@arianvp:matrix.orgArianYou have to install NixOS on the (unsupported) instance store09:54:43
@arianvp:matrix.orgArian * You have to install Nix on the (unsupported) instance store 09:54:51
@arianvp:matrix.orgArianand I have had several occasions where the instance store is just... broken09:55:02
@arianvp:matrix.orgArianInstalling nix on the EBS volume isn't possible automatically. You need to do a GUI step09:55:20
@arianvp:matrix.orgArianI've wasted days and hours of my life on this at work09:55:37

Show newer messages


Back to Room ListRoom Version: 10