You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7eb3401
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ingress): serve existing dns-01 certificates before the first pass
dns-01 finished a whole certificate pass before starting haproxy, so on
a restart every domain stayed unserved for as long as the slowest one
took: a certbot run up to its timeout for a domain that fails, or up to
DNS_SETUP_TIMEOUT (30 min) per domain whose delegation CNAMEs are still
being created. When any certificate is on disk, start haproxy first and
run the pass in the background loop. Without one, keep issuing first and
exit if the pass yields nothing to serve.
Serving before the pass would also serve what the last run left in
/evidences, which attests a container that may no longer be running --
as tls-alpn-01 already did. So both modes now prepare serving the same
way (prepare_serving in cert-lib.sh): republish the evidence before
haproxy starts, or withdraw it if that is not possible yet. haproxy
reads the PEMs built there itself, so the first pass no longer reloads
it either.
Signed-off-by: Kevin Wang <wy721@qq.com>
Copy file name to clipboardExpand all lines: custom-domain/dstack-ingress/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ dstack-ingress is a HAProxy-based L4 (TCP) proxy that provides:
20
20
21
21
2.**TLS Termination**: HAProxy terminates TLS and forwards the decrypted TCP stream to your backend. No HTTP inspection — the proxy operates entirely at L4.
22
22
23
-
3.**Certificate Renewal**: A background daemon checks for renewal every 12 hours. On renewal, HAProxy is gracefully reloaded with zero downtime. A failed pass is retried after 60s, backing off by 60s per attempt up to 30 minutes. A domain that fails does not stop the others from being served: in dns-01 mode the container exits at startup only if no domain has a certificate yet, and in tls-alpn-01 mode it serves a placeholder certificate until issuance succeeds.
23
+
3.**Certificate Renewal**: A background daemon checks for renewal every 12 hours. On renewal, HAProxy is gracefully reloaded with zero downtime. A failed pass is retried after 60s, backing off by 60s per attempt up to 30 minutes. A domain that fails does not stop the others from being served: in dns-01 mode a restart serves the certificates already on disk right away and checks them in the background, and the container exits at startup only if no domain has a certificate yet. In tls-alpn-01 mode it serves a placeholder certificate until issuance succeeds.
24
24
25
25
4.**Evidence Generation**: Generates cryptographically linked attestation evidence (ACME account, certificates, TDX quote / dstack attestation) for TEE verification.
0 commit comments