!MthpOIxqJhTgrMNxDS:nixos.org

NixOS ACME / LetsEncrypt

107 Members
Another day, another cert renewal45 Servers

Load older messages


SenderMessageTime
17 Dec 2024
@thinkchaos:matrix.orgThinkChaos Could someone please review the fix for cert ownership error message causing an unrelated exception PR, #362271? It's a tiny diff :)
Users are getting misleading errors due to this throwing ATM
23:57:19
19 Dec 2024
@thinkchaos:matrix.orgThinkChaos K900 I looked at the log for the this failure, httpd only started after the ACME validation happened: Starting Apache HTTPD vs Attempting to validate w/ HTTP
I think this is a switch-to-configuration-ng regression 😕
The perl script starts all services in a single systemctl call, so a single Systemd transaction. That means httpd's Before relationship with the certs is enforced.
Whereas -ng uses the Systemd D-BUS API to start services one by one, meaning multiple transactions. So Before is not enforced.
I guess we can try and disable -ng for the ACME tests, see how it goes for a week or so and then potentially raise an issue with -ng.
01:31:18
@thinkchaos:matrix.orgThinkChaosBTW thanks for the review + merge on the PR from above!01:39:02
@k900:0upti.meK900
In reply to@thinkchaos:matrix.org
K900 I looked at the log for the this failure, httpd only started after the ACME validation happened: Starting Apache HTTPD vs Attempting to validate w/ HTTP
I think this is a switch-to-configuration-ng regression 😕
The perl script starts all services in a single systemctl call, so a single Systemd transaction. That means httpd's Before relationship with the certs is enforced.
Whereas -ng uses the Systemd D-BUS API to start services one by one, meaning multiple transactions. So Before is not enforced.
I guess we can try and disable -ng for the ACME tests, see how it goes for a week or so and then potentially raise an issue with -ng.
Uhh
06:55:59
@k900:0upti.meK900 Can you please report this in #NixOS systemd 06:56:24
@arianvp:matrix.orgArianThere is no api for starting multiple services in a single transaction. This has always been a lie 10:46:30
@arianvp:matrix.orgArianI think systemctl start also is a for loop around starting single units through dbus afaicr10:46:51
@thinkchaos:matrix.orgThinkChaosYeah I need to dig a bit more before I make too much noise, I'll look at systemctl's code, thanks for the hint13:38:17
@thinkchaos:matrix.orgThinkChaos Either way I think we'll need to make the link between the certs and web server stronger to fix this: I'm thinking certs using HTTP validation can Require the relevant web server 13:45:07
21 Dec 2024
@stablejoy:matrix.org@stablejoy:matrix.org joined the room.06:43:11
@m1cr0man:m1cr0man.comm1cr0man
In reply to @arianvp:matrix.org
I think systemctl start also is a for loop around starting single units through dbus afaicr
Really? This completely blows my understanding of service relation chains
22:43:00
@arianvp:matrix.orgArianYeh pretty sure22:43:42
@arianvp:matrix.orgArianThere is a mutable list of jobs and "dependencies" are some rules that cause some jobs to cancel others out22:44:36
@arianvp:matrix.orgArianThe whole dependency model is kind of a lie22:44:45
@arianvp:matrix.orgArianhttps://blog.darknedgy.net/technology/2020/05/02/0/ is a nice read22:44:57
22 Dec 2024
@m1cr0man:m1cr0man.comm1cr0manHow are we feeling about the acme-setup.service refactor now? https://github.com/NixOS/nixpkgs/pull/355087 I still want to get this merged, it really simplifies the systemd side of things a bit.12:31:30
@m1cr0man:m1cr0man.comm1cr0man
In reply to @thinkchaos:matrix.org
Either way I think we'll need to make the link between the certs and web server stronger to fix this: I'm thinking certs using HTTP validation can Require the relevant web server
I totally forgot that we had a discussion about this a while ago 😅 tl;dr we could add a target for http01 renewal specifically. The web servers can be configured to want + before on it, and the renewals can require + after. This gives us a generic mechanism of linking whatever web server is running on port 80 to the certs using HTTP01.
12:36:53
@m1cr0man:m1cr0man.comm1cr0manWe do have to be careful about circular dependencies, but that's expected. HTTP01 server startup is complicated regardless.12:37:36
@m1cr0man:m1cr0man.comm1cr0man
In reply to @thinkchaos:matrix.org
Either way I think we'll need to make the link between the certs and web server stronger to fix this: I'm thinking certs using HTTP validation can Require the relevant web server
* I totally forgot that we had a discussion about this a while ago 😅 tl;dr we could add a target for http01 renewal specifically. The web servers can be configured to requiredBy + before on it, and the renewals can require + after. This gives us a generic mechanism of linking whatever web server is running on port 80 to the certs using HTTP01.
12:41:42
@stablejoy:matrix.org@stablejoy:matrix.org left the room.13:25:10
@allrealmsoflife:matrix.orgallrealmsoflife joined the room.15:55:13
27 Dec 2024
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius to raitobezarius (DECT: 3538 / EPVPN 2681).07:32:42
30 Dec 2024
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius (DECT: 3538 / EPVPN 2681) to raitobezarius.16:28:56
31 Dec 2024
@k900:0upti.meK900I don't know what's up with that07:24:05
@k900:0upti.meK900If there was a change or it's just unlucky07:24:12
@k900:0upti.meK900But it feels like the tests are flakier now again07:24:20
1 Jan 2025
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.14:26:30
12 Jan 2025
@nakibrayane:matrix.orgRayane Nakib (ريّان نقيب) joined the room.12:39:36
19 Jan 2025
@k900:0upti.meK900OK we need to do something08:50:49
@k900:0upti.meK900The tests are flaking horribly again08:50:53

Show newer messages


Back to Room ListRoom Version: 6