!MthpOIxqJhTgrMNxDS:nixos.org

NixOS ACME / LetsEncrypt

104 Members
Another day, another cert renewal43 Servers

Load older messages


SenderMessageTime
16 Nov 2024
@thinkchaos:matrix.orgThinkChaos * And small side effect is we don't use the lockdir var in the service so it makes the dependency more hidden 20:40:23
@m1cr0man:m1cr0man.comm1cr0manThe acme-setup.service is a requirement of all the renewal services (and is oneshot+RemainAfterExit), but systemd-tmpfiles is not. We actually had a test failure on hydra a couple of days ago because tmpfiles had not ran when lockdir was accessed. Let me see if I can find you the logs.20:41:10
@m1cr0man:m1cr0man.comm1cr0man

That's not how I view it, for instance secrets go in /run too. To me it's for anything ephemeral.

I agree with this, however /run/acme is directly related to service activation + logic implemented in systemd services. Having its lifecycle managed as a RuntimeDirectory definitely makes things easier. I will definitely add a comment to say where it's created, that's a good call that the relation is not obvious

20:42:16
@m1cr0man:m1cr0man.comm1cr0man
In reply to @k900:0upti.me
webserver # [  426.884702] (es-start)[2816]: acme-lockfiles.service: Changing to the requested working directory failed: Permission denied
webserver # [  426.934208] (es-start)[2816]: acme-lockfiles.service: Failed at step CHDIR spawning /nix/store/n24xs3nmndyyivq3q5w52f7aqlb06hqh-unit-script-acme-lockfiles-start/bin/acme-lockfiles-start: Permission denied
This was the lockfiles error we saw last week.
20:47:35
@thinkchaos:matrix.orgThinkChaos Ok then RuntimeDir is ok with me
I thought tmpfiles was something the activation scripts ensured ran earlier based on how it's generally used, but never confirmed that assumption. That also means lots of modules are broken 😕
20:47:47
@thinkchaos:matrix.orgThinkChaosI'll reply and approve 🙂20:47:58
@m1cr0man:m1cr0man.comm1cr0manSo did I TBH, but then we had that race/permissions error, and the directory hadn't been created when acme-lockfiles ran. Maybe we could add more systemd service dependencies, but RuntimeDirectory was more appropriate IMO20:49:19
@m1cr0man:m1cr0man.comm1cr0man
In reply to @thinkchaos:matrix.org
I'll reply and approve 🙂
Thank you :D
20:51:15
@thinkchaos:matrix.orgThinkChaos I still am not a fan of the RuntimeDir + RemainAfterExit to persist the dir, and the dir being used outside the service itself, but it's better than something that's broken 😄
How would you feel if I just do a mkdir -p in the lock script in my PR?
20:55:04
@thinkchaos:matrix.orgThinkChaos * I still am not a fan of the RuntimeDir + RemainAfterExit to persist the dir, and the dir being used outside the service itself, but it's better than something that's broken 😄
How would you feel if I just do a mkdir -p in the lock script in my (future) PR?
20:55:17
@thinkchaos:matrix.orgThinkChaos * I still am not a fan of the RuntimeDir + RemainAfterExit to persist the dir, and the dir being used outside the service itself, but it's better than something that's broken 😄
~~How would you feel if I just do a mkdir -p in the lock script in my (future) PR?~~ needs root
20:59:33
@thinkchaos:matrix.orgThinkChaos * I still am not a fan of the RuntimeDir + RemainAfterExit to persist the dir, and the dir being used outside the service itself, but it's better than something that's broken 😄
~How would you feel if I just do a mkdir -p in the lock script in my (future) PR?~ needs root
20:59:39
@thinkchaos:matrix.orgThinkChaos * I still am not a fan of the RuntimeDir + RemainAfterExit to persist the dir, and the dir being used outside the service itself, but it's better than something that's broken 😄
How would you feel if I just do a mkdir -p in the lock script in my (future) PR? needs root
20:59:48
17 Nov 2024
@m1cr0man:m1cr0man.comm1cr0manGiven how systemd dependent we are already, I generally prefer the systemd solution if one is available. It is very well tested and has outstandingly stable behaviour. Less bash scripting means less custom code for us to maintain13:15:23
@m1cr0man:m1cr0man.comm1cr0man Just got done testing an --overwrite-domains option for lego that lets us remove domainHash entirely. The delta on the module is kinda underwhelming but less code is less code 22:50:19
@m1cr0man:m1cr0man.comm1cr0man
In reply to @thinkchaos:matrix.org
Here's that code: https://github.com/NixOS/nixpkgs/commit/ec145d8ccdd64ea6faef4881163e3811a5bf07f3
Since you're blocked on merge would you mind if I reviewed on that commit itself? I don't want to keep you delayed on waiting for a review on the setup script
22:56:06
@thinkchaos:matrix.orgThinkChaos1s let me give you a better link22:57:22
@m1cr0man:m1cr0man.comm1cr0mansure ok22:59:38
@thinkchaos:matrix.orgThinkChaoshttps://github.com/ThinkChaos/nixpkgs/pull/122:59:52
18 Nov 2024
@m1cr0man:m1cr0man.comm1cr0manRight, this is going to be interesting. https://github.com/go-acme/lego/pull/2355 I'm curious to see how this is received by the lego team.23:36:29
@m1cr0man:m1cr0man.comm1cr0man

Here's the would-be change to switch to it on the module: https://github.com/m1cr0man/nixpkgs/commit/0e84622dff2ab5c8ba37cf49a3dd212b253664ee

What's nice is that this wont trigger a mass renewal on all nixos systems. domains thankfully won't part of the directory tree hashes that we have (e.g. account hash)

23:38:32
@m1cr0man:m1cr0man.comm1cr0man *

Here's the would-be change to switch to it on the module: https://github.com/m1cr0man/nixpkgs/commit/0e84622dff2ab5c8ba37cf49a3dd212b253664ee

What's nice is that this wont trigger a mass renewal on all nixos systems. Domains options are thankfully aren't part of the directory tree hashes that we have (e.g. account hash)

23:39:03
@m1cr0man:m1cr0man.comm1cr0man *

Here's the would-be change to switch to it on the module: https://github.com/m1cr0man/nixpkgs/commit/0e84622dff2ab5c8ba37cf49a3dd212b253664ee

What's nice is that this wont trigger a mass renewal on all nixos systems. Domains options are thankfully not part of the directory tree hashes that we have (e.g. account hash)

23:39:09
@m1cr0man:m1cr0man.comm1cr0manyeah my typing has gone, I have to sleep ;)23:39:21
@thinkchaos:matrix.orgThinkChaos Seems pretty straightforward, I'd just name it more explicitly, maybe --replace-cert-domains
Goon night 😉
23:40:41
19 Nov 2024
@m1cr0man:m1cr0man.comm1cr0manAh I do like replace more than overwrite. 09:00:53
20 Nov 2024
@inayet:matrix.orgInayet removed their profile picture.00:59:18
@kamillaova:matrix.orgKamilla 'ova joined the room.12:55:49
@m1cr0man:m1cr0man.comm1cr0manA day late but I did change it 😪22:31:40
27 Nov 2024
@hexa:lossy.networkhexawith 24.11 I see acme units stuck at "Releasing lock" a bunch01:49:49

Show newer messages


Back to Room ListRoom Version: 6