nixpkgs/nixos/modules/security
Lucas Savva 1b6cfd9796
nixos/acme: Fix race condition, dont be smart with keys
Attempting to reuse keys on a basis different to the cert (AKA,
storing the key in a directory with a hashed name different to
the cert it is associated with) was ineffective since when
"lego run" is used it will ALWAYS generate a new key. This causes
issues when you revert changes since your "reused" key will not
be the one associated with the old cert. As such, I tore out the
whole keyDir implementation.

As for the race condition, checking the mtime of the cert file
was not sufficient to detect changes. In testing, selfsigned
and full certs could be generated/installed within 1 second of
each other. cmp is now used instead.

Also, I removed the nginx/httpd reload waiters in favour of
simple retry logic for the curl-based tests
2020-09-04 01:09:43 +01:00
..
wrappers nixos/wrappers: make (u)mount have the +s bit. 2020-08-15 21:57:16 +03:00
acme.nix nixos/acme: Fix race condition, dont be smart with keys 2020-09-04 01:09:43 +01:00
acme.xml nixos/acme: Restructure module 2020-09-02 19:22:43 +01:00
apparmor-suid.nix
apparmor.nix apparmor: add apparmor_parser config file 2020-08-22 22:59:26 +02:00
audit.nix
auditd.nix
ca.nix
chromium-suid-sandbox.nix
dhparams.nix
doas.nix
duosec.nix
google_oslogin.nix
hidepid.nix
hidepid.xml
lock-kernel-modules.nix
misc.nix nixos/security/misc: add option unprivilegedUsernsClone 2020-08-25 14:18:24 +03:00
oath.nix
pam.nix pam_p11: add 2020-07-25 09:37:48 +02:00
pam_mount.nix
pam_usb.nix
polkit.nix
rngd.nix
rtkit.nix
sudo.nix nixos/sudo: default rule should be first 2020-06-17 17:48:51 -07:00
systemd-confinement.nix
tpm2.nix nixos: remove StandardOutput=syslog, StandardError=syslog lines 2020-08-13 18:49:15 +02:00