[docs] Roadmap §8.1: the rustls choice checked with h2spec and testssl.sh

This commit is contained in:
2026-11-18 18:27:50 +01:00
parent 3ef0424454
commit 789d733b72
+1
View File
@@ -118,6 +118,7 @@ Identity gate, tunnel, Domi templates, ACME server, HTTP/3, migrating public sit
## 8. Open points (resolve at the start of the phase that needs them; record the answer here)
1. Pingora TLS backend: rustls vs BoringSSL/OpenSSL — maturity and NixOS packaging. (phase 1)
**Answer: rustls (ring), pingora 0.9.1 feature `rustls`.** Pure Rust, so no system TLS library, Perl, Go or clang in the Nix build. `TlsSettings::set_cert_resolver` gives SNI selection and lets ACME renewals swap certificates live; tested in crates/edge. Risk: the Pingora README labels it "rustls(experimental)", and the cert callback API is not available on rustls. Mitigation: the diff suite now, then testssl.sh/h2spec in phase 4. Fallback: the `openssl` feature, a change local to crates/edge/src/lib.rs and tls.rs. [S github.com/cloudflare/pingora README; pingora-core 0.9.1 src/listeners/tls/rustls] [J]
Phase 4 check (2026-11-18, bench/README.md): h2spec 144 of 145 passed, 0 failed (Caddy 2.11.7: 4 failed); testssl.sh 3.2.2 grade A+ for both, TLS 1.2 and 1.3 only. Cost seen: new TLS connections are about 1.5× slower than Caddy's on the same two cores. [S local runs]
2. Rust ACME crate for Let's Encrypt — maintenance status; pick and justify. (phase 1)
**Answer: instant-acme 0.8.5** (djc/instant-acme; release 2026-02-24, ~1.5 M recent downloads). It is a plain RFC 8555 client with rustls/ring and rcgen, and edge keeps control of HTTP-01, storage and renewal. rustls-acme and tokio-rustls-acme (also maintained) own the TLS acceptor, which conflicts with Pingora's listener. acme2 (last release 2022) and acme-lib (2024) are stale. Verified end to end against Pebble 2.6 only, not against LE staging. [S crates.io API 2026-11-07] [J]
3. Does Pingora build on Windows? If not, develop in WSL2 and note it in CLAUDE.md. (phase 1)