diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 46cafaf..f73612d 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -165,11 +165,31 @@ Identity gate, tunnel, Domi templates, ACME server, HTTP/3, migrating public sit | 1 Core and engine | Done | Merged to main 2026-11-07. Tests run in WSL2; ACME checked only against Pebble. The Let's Encrypt staging check moved to phase 3 (Mark, 2026-11-07). | | 2 Control plane | Done | Merged to main 2026-11-07 (PR 3): routes repo, journaled apply with trial/watch/revert, undo, restore, share links, API tokens, REST API + OpenAPI, `--dev`. Four QC rounds; every finding fixed or listed in Handover. Real Gitea, systemd credentials and Authelia not exercised. | | 3 Web UI, PKI, NixOS | Built and merged; Done criteria pending Mark | Merged to main 2026-11-08 (PR 5): web UI (murex palette), Domi CA and device mTLS, UI sign-in behind Authelia, runtime engine switch with changes under Caddy, NixOS flake, module and VM tests. Click smoke test green. Not yet done: VM tests run on a KVM host, Mark's nixos-rebuild on the staging mirror, deploy/test-access.sh there, the LE staging check. | -| 4 Hardening and release | Started: the release kit | A `v*` tag's Gitea release carries the notes and screenshots of the web UI under a signed SHA256SUMS (docs/release.md, 2026-11-09). The rest of phase 4 is not started; known gaps carried here: see Handover. | +| 4 Hardening and release | Built and merged; Done criteria pending Mark | Merged to main 2026-11-22 (PR 10): hardening backlog (header deadline, own resolver, pipelining, proxy socket for edge beside Caddy, control UI socket), all five test layers runnable (fuzz, h2spec/testssl, bench vs Caddy committed as data), Artifex `layers` and `verify-nix` pipelines, a release pin that cannot name other code, README, support.md, launch drafts. Not yet done: the first Nix pin and the VM tests (need a machine with Nix and KVM), a pipeline run, signed v1.0.0, the GitHub mirror (later), the two-week run beside Caddy. | ## 10. Handover (Rewritten at the end of every session: what changed, what was not verified, which build is deployed, the next step.) +**2026-11-22: Phase 4, hardening and release.** +- **Changed:** + - Edge: a 60 s header deadline (slowloris), lookups on its own bounded resolver threads with one lookup per name, pipelining on both listeners, a proxy socket (`/run/ianitor-proxy/edge.sock`, sticky 3770) on which edge trusts Caddy's X-Forwarded-For, and `unix:` upstreams with a strict charset. + - Control: the UI API also on `/run/ianitor-control/ui.sock` (G14 option b); the UI proof is honoured only there. A route may use a socket upstream only as the `[ui]` host on control's own socket; checked at every change and at start. + - Test layers: tests/fuzz (5 cargo-fuzz targets, crashes replayed in cargo test), scripts/conformance.sh (h2spec, testssl.sh, slow-client probes), scripts/bench.sh with results in bench/; `ianitor-pair` runs both engines side by side. + - Fabrica: `layers.yaml` (all five layers, NixOS runner with KVM), `verify-nix.yaml`, and a release `pin` step: `nix-pin.sh` records the commit, its source tree and nixpkgs; the release refuses a pin whose source differs from the tag's, and verifiers build the tagged commit (docs/verify.md). + - README, docs/support.md (Adopt a red panda; RPN route pending Mark, §8.7), docs/launch/ drafts, the GitHub mirror steps for later (docs/release.md). CLAUDE.md: WSL is Ubuntu now, and the disk rule (never C: or D:). + - Results (WSL2 Ubuntu, release build): h2spec Ianitor 144/145, 0 failed (Caddy 2.11.7: 4 failed); testssl.sh A+ both; HTTP/2 slow header block closed by edge after 2.5 s, still open on Caddy at 75 s; fuzz 5x60 s, no crash. Load (one noisy run): Caddy ahead on HTTP/1.1 under load (about 2x with all cores), new TLS connections and the redirect; Ianitor ahead on HTTP/2 at 1 and 64 connections and on memory. + - Tests: core 108, edge 71, control 78, diff 4, fuzz 4, testkit 2 (267); release-pin node test 7; vitest 21; svelte-check clean; hook self-test 55. Two QC rounds; every finding fixed. +- **Deployed:** nothing. The server is unchanged. +- **Not verified:** + - The first Nix pin (`scripts/nix-pin.sh`, needs Nix; the Nix installer was refused in WSL). Until it exists, the release refuses every tag. + - The VM tests, now five with `vm-sockets` (no KVM); the module changes (`edge.proxySocket`, `ui.socket`, sticky directory, `proxySocket.services`) were never evaluated. + - Caddy from nixpkgs (the suites ran against a `go install` build of v2.11.7); NixOS's Caddy restarting when its groups change. + - The Artifex pipelines (never run; the NixOS runner's host needs nested KVM). + - The domi-release key id in docs/verify.md, against Custos. +- **Known gaps:** a kept tree that a changed `[ui]` config breaks is reported only in the log at start; X-Forwarded-Proto on the proxy socket is always https (HTTPS fronts only); the old `apply_sequence` flake did not recur in 18 runs, cause unknown. +- **Needs Mark:** confirm §8.7 (RPN route; e-mail RPN about a receipt for a non-US donor before the first remittance); install Nix in WSL or run `scripts/nix-pin.sh` on a machine with Nix; a KVM machine for `nix flake check`; the Phase 3 staging deploy; approve the proposed app icon and decide on the PWA (design canvas "Ianitor Domi - All screens"); delete F: ab-ro (a clean Fabrica clone left by the build). +- **Next step:** Mark's staging deploy and the first Nix pin; then the `layers` pipeline, then tag v1.0.0. + **2026-11-17: The Domi CA moved to the shared crate domi-pki (Fabrica docs/32_coherence.md, T3a).** - **Changed:** `crates/core/src/pki.rs` is now Ianitor's view of [domi-pki](https://gitea.marek-novak.cz/mnovak/domi-pki) v1.0.0 (git tag in Cargo.toml): the same public API, the same error messages and the same encrypted-key format