!MthpOIxqJhTgrMNxDS:nixos.org

NixOS ACME / LetsEncrypt

104 Members
Another day, another cert renewal44 Servers

Load older messages


SenderMessageTime
18 Feb 2025
@sandro:supersandro.deSandro 🐧FYI https://github.com/NixOS/nixpkgs/pull/38286316:52:15
19 Feb 2025
@hexa:lossy.networkhexahttps://github.com/go-acme/lego/commit/98371c4695dd4e45d7458d8ba42272f6fa0c625d enables ARI by default16:41:06
@hexa:lossy.networkhexain 4.20.216:41:09
@hexa:lossy.networkhexaso we just need to agree on the proper wait duration16:41:26
@sandro:supersandro.deSandro 🐧 I have extraLegoRenewFlags = [ "--ari-enable" "--ari-wait-to-renew-duration" "5m" ]; in my config but I cannot tell you any advtanatages/disavtanages of it sadly 16:44:34
@hexa:lossy.networkhexa5m is not a reasonable wait duration 😄 16:44:47
@emilazy:matrix.orgemily I think we don't want to limit it at all if we're using ARI. the ACME server will pick the appropriate time to wait. but I'm still not clear on how it's meant to integrate into our timer system. my understanding is that lego renew won't block indefinitely when not using ARI, but does block when using it? 16:44:47
@hexa:lossy.networkhexayep16:45:05
@emilazy:matrix.orgemilythe two modalities seem totally different: one is a ~non-blocking poll on a timer, the other is a long-running waiting daemon16:45:16
@hexa:lossy.networkhexaI think I set it to 23h to not interact with the timer 16:45:24
@hexa:lossy.networkhexabut to cover most of the time when it would not run16:45:34
@emilazy:matrix.orgemily I don't see how that works with our setup unless we can get lego renew to also wait for non-ARI certificates 16:45:37
@hexa:lossy.networkhexaI think infinite could work, but infinite would then probably be something like 30 days? 90 days?16:45:56
@emilazy:matrix.orgemily does --ari-wait-to-renew-duration force renewal when the timer expires? or does it just exit without renewing if the wait is further than that? 16:45:59
@hexa:lossy.networkhexamax cert duration16:46:04
@hexa:lossy.networkhexa* max remaining cert duration16:46:07
@hexa:lossy.networkhexaARI is a way to skip the age check on the cert16:46:22
@hexa:lossy.networkhexawhen ARI then renew, else normal proceedings16:46:39
@emilazy:matrix.orgemily

are you sure?

--ari-wait-to-renew-duration value        The maximum duration you're willing to sleep for a renewal time returned by the renewalInfo endpoint.
16:46:23
@emilazy:matrix.orgemilyseems like not that16:46:24
@emilazy:matrix.orgemilyI do know how ARI works :)16:46:32
@hexa:lossy.networkhexaI'm telling you that from the code that I glanced at16:46:57
@sandro:supersandro.deSandro 🐧AFAIK it is the time lego is allowed to sleep for the time to be16:47:41
@sandro:supersandro.deSandro 🐧so if we set it to 23h, it could block execution for up to 23h16:48:24
@hexa:lossy.networkhexawdym block16:48:35
@hexa:lossy.networkhexayou can always just restart and get a new renewalinfo 😄 16:48:45
@hexa:lossy.networkhexahttps://github.com/go-acme/lego/blob/v4.22.2/certificate/renewal.go16:49:08
@emilazy:matrix.orgemilyok, here's what I don't understand. why do we need it to sleep at all? it could check ARI and then just say "nope" if it isn't time yet. at most we drift across the recommended renewal by ~a day16:49:10
@hexa:lossy.networkhexaI think that would probably be fine16:49:37
@emilazy:matrix.orgemilyI don't think that's optimal – the timer-based setup is bad – but it seems to be what fits best with the existing module structure16:49:38

Show newer messages


Back to Room ListRoom Version: 6