From 789d733b727fd7a22adf058c9ba5763b42fcb4b9 Mon Sep 17 00:00:00 2001 From: mnovak Date: Wed, 18 Nov 2026 18:27:50 +0100 Subject: [PATCH] =?UTF-8?q?[docs]=20Roadmap=20=C2=A78.1:=20the=20rustls=20?= =?UTF-8?q?choice=20checked=20with=20h2spec=20and=20testssl.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/ROADMAP.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 7d3079a..46cafaf 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -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)