summary refs log tree commit diff
path: root/nixos/tests/initrd-network-ssh
Commit message (Collapse)AuthorAge
* nixos/initrd-network-ssh: fix testMaximilian Bosch2020-11-02
| | | | | | | | | | | | | 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
* nixos/initrd-ssh: switch from Dropbear to OpenSSHEmily2020-03-25
| | | | | | | | | | | | | | | | | | | | | | | 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!
* nixos/tests/initrd-ssh: port to pythonWilliButz2019-11-07
|
* treewide: remove redundant recvolth2019-08-28
|
* [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
|
* nixos/tests: rename IP addresses/routes optionsrnhmjoj2018-02-17
|
* tests/initrd-network-ssh: Don't build during evaluationTuomas Tynkkynen2017-11-27
Issue #29774