Skip to content

Issue <name>.pit.world certificates before the first visit (HSTS broke new names) - #30

Merged
ralyodio merged 2 commits into
mainfrom
cert-sweep
Oct 18, 2026
Merged

ralyodio merged 2 commits into
mainfrom
cert-sweep

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

pit.world sends Strict-Transport-Security: max-age=63072000; includeSubDomains; preload, so a browser that has seen pit.world goes straight to https://.pit.world. Certificates were only issued on a plain-http visit, so every name without one failed its TLS handshake (alert 80) for those visitors. live.streaming.pit.world was down for desktop users; 17 of the 22 registry names with a target had no certificate.

The server now sweeps the registry sitemap at start and every 15 minutes and asks pit-proxy-cert for every name the relay can reach (same targetFor check a visit makes) that nginx cannot serve yet, through the existing weekly cap and once-an-hour-per-host guard. PIT_CERT_SWEEP=off disables it. Tests: sitemap parsing, sweep issues only for reachable names without a cert, refusals reported as missing, failing reachability skipped. 143 pass.

🤖 Generated with Claude Code

ralyodio and others added 2 commits October 18, 2026 02:33
pit.world sends HSTS with includeSubDomains, so a browser that has seen
pit.world goes straight to https://<name>.pit.world. Issuance only ran on a
plain-http visit, so every name without a certificate failed its TLS
handshake (alert 80) for those visitors: live.streaming.pit.world was down
for desktops, and 17 of the 22 names with targets had no certificate.

The server now sweeps the registry sitemap at start and every 15 minutes and
asks pit-proxy-cert for every name the relay can reach and nginx cannot yet
serve, through the existing weekly cap and once-an-hour guard.
PIT_CERT_SWEEP=off disables it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit bda8cf3 into main Oct 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant