!MthpOIxqJhTgrMNxDS:nixos.org

NixOS ACME / LetsEncrypt

106 Members
Another day, another cert renewal47 Servers

Load older messages


SenderMessageTime
19 Feb 2025
@emilazy:matrix.orgemilythis is why ACME really wants a long-lived daemon :(16:56:07
@hexa:lossy.networkhexasorry, I don't follow your conclusion here16:56:37
@emilazy:matrix.orgemily ok, let's say ARI is enabled, the ACME server says "renew in 2 months", but you pass --ari-wait-to-renew-duration 5m 16:57:22
@hexa:lossy.networkhexahttps://github.com/go-acme/lego/blob/v4.22.2/certificate/renewal.go16:57:49
@emilazy:matrix.orgemilyoh hmm16:57:52
@hexa:lossy.networkhexabeyond my willingless to sleep16:57:52
@hexa:lossy.networkhexaso returns nil16:58:00
@emilazy:matrix.orgemily ok I think I misread ShouldRenewAt 16:58:01
@emilazy:matrix.orgemilyright16:58:08
@emilazy:matrix.orgemilyok, then I think we just set it to a time that will definitely not overlap with the next timer. 23h is too long because of our time skewing16:58:24
@emilazy:matrix.orgemilyI think theoretically you can end up with it running at 23:59 one day and 00:01 the next. not sure how it works exactly16:58:57
@emilazy:matrix.orgemilybut I guess systemd timers will never start twice at once?16:59:01
@hexa:lossy.networkhexa oh yeah, we do AccuracySecs=14400s 16:59:03
@hexa:lossy.networkhexagood call16:59:04
@emilazy:matrix.orgemily I'm not sure what Type= we have on the ACME services 16:59:08
@hexa:lossy.networkhexaoneshot16:59:18
@emilazy:matrix.orgemilyoneshots are only considered started after they complete, right?16:59:29
@emilazy:matrix.orgemilyso the timer can probably start two of them at once? which would be bad. we should probably not be using oneshot16:59:40
@hexa:lossy.networkhexa

the service manager will consider the unit up after the main process exits

17:00:16
@hexa:lossy.networkhexa *

similar to simple; however, the service manager will consider the unit up after the main process exits

17:00:26
@emilazy:matrix.orgemilyright17:00:34
@emilazy:matrix.orgemilywell I dunno, it's probably safe to specify like 12–24 hours assuming that the timer will not try to run lego again if it's still running from the previous timer run17:00:54
@emilazy:matrix.orgemilyI don't understand oneshot well enough to say whether that's the case17:01:00
@hexa:lossy.networkhexa18h + AccuracySecs17:01:33
@hexa:lossy.networkhexawhich would be between 18 and 22 hours17:01:43
@hexa:lossy.networkhexaor 19-2317:02:01
@emilazy:matrix.orgemilyI think the only risk of a long value is the timer triggering again and starting lego again17:02:08
@emilazy:matrix.orgemilyI just don't know if that's how it actually works17:02:11
@emilazy:matrix.orgemilyI think systemd keeps track of services that are "starting" but not started17:02:19
@emilazy:matrix.orgemilyso it may not try to run lego again if it's blocking from before17:02:27

Show newer messages


Back to Room ListRoom Version: 6