[docs] Roadmap: answer open points 1, 2, 3 and 5; WSL note in CLAUDE.md

This commit is contained in:
2026-11-07 15:09:41 +01:00
parent c50fcd5a5a
commit fd4b4a7775
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -20,6 +20,11 @@ pnpm --filter web dev # 127.0.0.1 only, never --host
nix build .#ianitor
nix flake check # includes NixOS VM tests (Linux + KVM)
On Windows, build and test in WSL2 Debian (ROADMAP §8.3: Pingora's Windows support is best effort; edge, diff and
ACME tests are Linux-only). Use a Linux target dir, and put caddy, pebble and pebble-challtestsrv on PATH (`nix profile add nixpkgs#caddy nixpkgs#pebble`):
wsl -d Debian -- bash -lc 'cd /mnt/f/Akce/Ianitor && CARGO_TARGET_DIR=$HOME/ianitor-target cargo test --workspace'
One-time per clone: git config core.hooksPath .githooks (self-test: sh .githooks/test-pre-commit.sh)
## Rules
- Commits: `[<crate|app>] <Feature>: <one line>`. No AI attribution, no trailers, ever.
- Never in git: target/, node_modules/, dist/, binaries, private keys, files over 5 MB. A pre-commit hook enforces it.
+4
View File
@@ -107,10 +107,14 @@ 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]
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)
**Answer: it compiles and the unit tests run on Windows (MSVC, Rust 1.99), but the README calls Windows support "preliminary by community's best effort only".** Unix-only parts include graceful upgrade, the in-process runner and the integration tests. Caddy and Pebble are not on this Windows box. So the edge integration tests, the diff suite and the ACME test run in WSL2 Debian, as noted in CLAUDE.md. One gotcha: libz-ng-sys's CMake build fails under a very deep CARGO_TARGET_DIR (MSBuild path length). [S github.com/cloudflare/pingora README; local builds 2026-11-07]
4. Pingora graceful reload behaviour under load. (phase 2)
5. Authelia forward-auth endpoint and headers to mirror exactly. (phase 1)
**Answer: `GET /api/authz/forward-auth` (ForwardAuth implementation; legacy `/api/verify` not used).** Edge sends X-Forwarded-Method, -Proto, -Host, -URI (required) and X-Forwarded-For, and always sets them itself. It also forwards the client's headers (Cookie, Authorization) without hop-by-hop headers or body. A 2xx answer copies Remote-User, Remote-Groups, Remote-Email and Remote-Name onto the request (client copies removed). Any other answer (302 portal, 401 + WWW-Authenticate, 403) goes back to the client verbatim. An unreachable auth server fails closed with 502. This mirrors `caddy adapt` output for Authelia's documented `forward_auth` snippet; tested against a mock, not a real Authelia. [S authelia.com/reference/guides/proxy-authorization, authelia.com/integration/proxies/caddy]
6. Custos CSR-signing operation with match-code approval. (phase 3)
7. Red Panda Network donation route for a non-US individual and the receipt they issue. (phase 4, Mark)