nixpkgs/pkgs
Lucas Savva 982c5a1f0e
nixos/acme: Restructure module
- Use an acme user and group, allow group override only
- Use hashes to determine when certs actually need to regenerate
- Avoid running lego more than necessary
- Harden permissions
- Support "systemctl clean" for cert regeneration
- Support reuse of keys between some configuration changes
- Permissions fix services solves for previously root owned certs
- Add a note about multiple account creation and emails
- Migrate extraDomains to a list
- Deprecate user option
- Use minica for self-signed certs
- Rewrite all tests

I thought of a few more cases where things may go wrong,
and added tests to cover them. In particular, the web server
reload services were depending on the target - which stays alive,
meaning that the renewal timer wouldn't be triggering a reload
and old certs would stay on the web servers.

I encountered some problems ensuring that the reload took place
without accidently triggering it as part of the test. The sync
commands I added ended up being essential and I'm not sure why,
it seems like either node.succeed ends too early or there's an
oddity of the vm's filesystem I'm not aware of.

- Fix duplicate systemd rules on reload services

Since useACMEHost is not unique to every vhost, if one cert
was reused many times it would create duplicate entries in
${server}-config-reload.service for wants, before and
ConditionPathExists
2020-09-02 19:22:43 +01:00
..
applications Merge pull request #96716 from r-ryantm/auto-update/shotwell 2020-08-31 17:13:29 +02:00
build-support makeModulesClosuse: read modules from corrent kernel version 2020-08-28 14:09:39 +02:00
common-updater
data Merge pull request #96173 from romildo/upd.venta 2020-08-30 22:29:21 -03:00
desktops Merge pull request #96538 from Mic92/go-references 2020-08-30 16:44:08 +02:00
development python3Packages.credstash: fix build 2020-08-31 17:18:27 +02:00
games vassal: 3.2.17 -> 3.3.2 2020-08-31 16:53:23 +02:00
misc seafile-shared: 7.0.7 -> 7.0.8 2020-08-31 17:10:05 +02:00
os-specific linux/hardened/patches/5.7: 5.7.17.a -> 5.7.19.a 2020-08-31 08:29:07 -04:00
pkgs-lib
servers knot-dns: 2.9.5 -> 2.9.6 2020-08-31 11:51:52 +02:00
shells oh-my-zsh: Fix update script 2020-08-31 09:15:47 -04:00
stdenv Merge pull request #95536 from Infinisil/inputDerivation 2020-08-31 15:46:41 +02:00
test
tools nixos/acme: Restructure module 2020-09-02 19:22:43 +01:00
top-level nixos/acme: Restructure module 2020-09-02 19:22:43 +01:00