Skip to content

Commit 50f1249

Browse files
authored
Merge pull request flyingcircusio#1151 from flyingcircusio/PL-133125-ssl-cert-check-timeout
PL-133125 acme: increase certificate check timeouts
2 parents 4113e66 + e540ef0 commit 50f1249

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!--
2+
3+
A new changelog entry.
4+
5+
Delete placeholder items that do not apply. Empty sections will be removed
6+
automatically during release.
7+
8+
Leave the XX.XX as is: this is a placeholder and will be automatically filled
9+
correctly during the release and helps when backporting over multiple platform
10+
branches.
11+
12+
-->
13+
14+
15+
### NixOS XX.XX platform
16+
17+
- Increase SSL validation check timeout to better distinguish DNS resolution
18+
errors and other causes of timeouts. (PL-133125)

nixos/platform/acme.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ in
99
lib.listToAttrs
1010
(map (n: lib.nameValuePair "ssl_cert_acme_${n}" {
1111
notification = "ACME (Letsencrypt) certificate for ${n} is invalid or will expire soon";
12-
command = "check_http -p 443 -S --sni -C 25,14 -H ${n}";
12+
# We're using a timeout of 15 seconds because 10 seconds is the timeout
13+
# that will trigger if DNS issues occur and giving the check a higher
14+
# timeout allows us to see those. Otherwise they get hidden behind
15+
# a generic timeout message.
16+
command = "check_http -p 443 -S --sni -C 25,14 -H ${n} -t 15";
1317
interval = 600;
1418
})
1519
(lib.attrNames config.security.acme.certs));

0 commit comments

Comments
 (0)