nixpkgs-suyu/nixos/doc/manual/release-notes
Arian van Putten 604b7c139f Fix letsencrypt (#60219)
* nixos/acme: Fix ordering of cert requests

When subsequent certificates would be added, they would
not wake up nginx correctly due to target units only being triggered
once. We now added more fine-grained systemd dependencies to make sure
nginx always is aware of new certificates and doesn't restart too early
resulting in a crash.

Furthermore, the acme module has been refactored. Mostly to get
rid of the deprecated PermissionStartOnly systemd options which were
deprecated. Below is a summary of changes made.

* Use SERVICE_RESULT to determine status
This was added in systemd v232. we don't have to keep track
of the EXITCODE ourselves anymore.

* Add regression test for requesting mutliple domains

* Deprecate 'directory' option
We now use systemd's StateDirectory option to manage
create and permissions of the acme state directory.

* The webroot is created using a systemd.tmpfiles.rules rule
instead of the preStart script.

* Depend on certs directly

By getting rid of the target units, we make sure ordering
is correct in the case that you add new certs after already
having deployed some.

Reason it broke before:  acme-certificates.target would
be in active state, and if you then add a new cert, it
would still be active and hence nginx would restart
without even requesting a new cert. Not good!  We
make the dependencies more fine-grained now. this should fix that

* Remove activationDelay option

It complicated the code a lot, and is rather arbitrary. What if
your activation script takes more than activationDelay seconds?

Instead, one should use systemd dependencies to make sure some
action happens before setting the certificate live.

e.g. If you want to wait until your cert is published in DNS DANE /
TLSA, you could create a unit that blocks until it appears in DNS:

```
RequiredBy=acme-${cert}.service
After=acme-${cert}.service
ExecStart=publish-wait-for-dns-script
```
2019-08-29 16:32:59 +02:00
..
release-notes.xml 19.09 is Loris. 2019-02-25 23:21:14 +01:00
rl-1310.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1404.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1412.xml treewide: Fix broken Gmane URLs 2018-12-25 22:34:55 -05:00
rl-1509.xml doc: Use prompt more often 2019-06-17 13:25:50 +02:00
rl-1603.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1609.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1703.xml nixos/doc: Fix spurious indentation 2019-06-17 12:28:26 +02:00
rl-1709.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1803.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1809.xml nixos docs: run the formatting tool (no content change) 2019-03-22 14:44:11 +01:00
rl-1903.xml nixos/release-notes: mention length of release support 2019-05-20 12:31:24 +01:00
rl-1909.xml Fix letsencrypt (#60219) 2019-08-29 16:32:59 +02:00