about summary refs log tree commit diff
path: root/nixos/tests/initrd-network-ssh
AgeCommit message (Collapse)AuthorFilesLines
2020-11-02nixos/initrd-network-ssh: fix testMaximilian Bosch1-0/+4
The test relied on moving `initrd` secrets from the store into the `initrd` which was fine here as it's only an integration test and not a production environment. However, this broke in 20.09 when support for this was dropped[1]. To make sure that the snakeoil key used as hostkey for `sshd` here actually gets copied into the VM, I added a small script for this that takes care of this process while building the initial ramdisk. [1] d930466b7728e5515991cb73c060fc3f32bdc001
2020-03-25nixos/initrd-ssh: switch from Dropbear to OpenSSHEmily10-64/+35
Dropbear lags behind OpenSSH significantly in both support for modern key formats like `ssh-ed25519`, let alone the recently-introduced U2F/FIDO2-based `sk-ssh-ed25519@openssh.com` (as I found when I switched my `authorizedKeys` over to it and promptly locked myself out of my server's initrd SSH, breaking reboots), as well as security features like multiprocess isolation. Using the same SSH daemon for stage-1 and the main system ensures key formats will always remain compatible, as well as more conveniently allowing the sharing of configuration and host keys. The main reason to use Dropbear over OpenSSH would be initrd space concerns, but NixOS initrds are already large (17 MiB currently on my server), and the size difference between the two isn't huge (the test's initrd goes from 9.7 MiB to 12 MiB with this change). If the size is still a problem, then it would be easy to shrink sshd down to a few hundred kilobytes by using an initrd-specific build that uses musl and disables things like Kerberos support. This passes the test and works on my server, but more rigorous testing and review from people who use initrd SSH would be appreciated!
2019-11-07nixos/tests/initrd-ssh: port to pythonWilliButz1-16/+22
2019-08-28treewide: remove redundant recvolth1-1/+1
2018-07-20[bot] nixos/*: remove unused arguments in lambdasvolth1-3/+3
2018-02-17nixos/tests: rename IP addresses/routes optionsrnhmjoj1-3/+1
2017-11-27tests/initrd-network-ssh: Don't build during evaluationTuomas Tynkkynen6-0/+126
Issue #29774