[docs] Roadmap: Phase 2 status and handover
This commit is contained in:
+29
-2
@@ -132,14 +132,41 @@ Identity gate, tunnel, Domi templates, ACME server, HTTP/3, migrating public sit
|
||||
| Phase | State | Notes |
|
||||
|:--|:--|:--|
|
||||
| 1 Core and engine | Done, except the Let's Encrypt staging check | Merged to main 2026-11-07. Tests run in WSL2; ACME checked only against Pebble. LE staging needs a public domain: Mark to decide whether to defer it to phase 3 or give a domain now. |
|
||||
| 2 Control plane | Not started | |
|
||||
| 2 Control plane | Done, pending merge | Built on control/phase-2: 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 | Not started | UI design drafted: claude.ai/artifact/GEiCCPcGC1hiCkA2NrrH9u ("murex" palette on the Domi system). |
|
||||
| 4 Hardening and release | Not started | Known gaps carried here: see Handover. |
|
||||
|
||||
## 10. Handover
|
||||
(Rewritten at the end of every session: what changed, what was not verified, which build is deployed, the next step.)
|
||||
|
||||
**2026-11-07: Phase 1, design draft.**
|
||||
**2026-11-07: Phase 2, control plane.**
|
||||
- **Changed:**
|
||||
- Phase 2 on branch control/phase-2: crates/control (routes repo through the `git` binary, journaled apply with edge trial reloads, 60 s watch and revert, undo/redo, restore, push with retry, share links, API tokens, REST API with OpenAPI, `--dev`), edge in-process reload over an admin Unix socket, share-link checks and visitor pages in edge, share tokens and the exact `hosts/<hostname>.toml` loader in core.
|
||||
- docs/api.md (curl examples, run end to end against `--dev`) and docs/ui-api.md (the designer's contract for phase 3, with the deviations listed at its end).
|
||||
- §8.4 answered with load numbers. Tests: core 86, edge 43, control 41, diff 3 (diff after each of six applies: 0 new differences), testkit 1; hook self-test 55.
|
||||
- Four QC rounds. Fixed along the way: password-throttle flush, CLI revoke lost to a server write, a pause lost on a full disk (three variants), revocation epoch rollback, Unicode and encoded `..` escapes in share paths, credentials echoed in errors, a port race in the test harness.
|
||||
- **Deployed:** nothing. The server is unchanged and no nixos-rebuild is needed.
|
||||
- **Not verified:**
|
||||
- Push to the real Gitea over HTTPS (askpass) — a local bare repo stood in.
|
||||
- systemd LoadCredential (a credentials-dir override stood in); a real Authelia (mock only).
|
||||
- A release build, HTTP/2 clients and websockets across reloads; Pingora graceful upgrade (kept for binary upgrades only, not measured).
|
||||
- A lost confirm answer from edge is tested only indirectly (edge stopped during the watch, not a late answer).
|
||||
- Everything from the phase 1 list below that is still open.
|
||||
- **Known gaps for later phases:**
|
||||
- Share links work only on Pingora; under the Caddy fallback a visitor gets the normal sign-in (G7, phase 3).
|
||||
- The "site not reachable" visitor page is not built: it needs a matching Caddy `handle_errors` to keep the diff suite equal.
|
||||
- The crash and write-failure test hooks (`IANITOR_TEST_CRASH_AT`, `IANITOR_TEST_FAIL_WRITE`) are in the release binary, gated only by environment; move them behind a default feature that the Nix release build turns off. (phase 3)
|
||||
- Control trusts only API tokens; forwarded `Remote-User` headers get 401 until the UI sign-in is designed (G14, phase 3).
|
||||
- Edge config is version 2; a phase-1 edge refuses it.
|
||||
- Workspace `rust-version` is now 1.89 (`File::lock`).
|
||||
- **Needs Mark:**
|
||||
- (f) The share-link deny list is a separate file outside git (`share-revocations.json`, plus an epoch for "stop all"), not part of the compiled edge config, so Stop never waits behind a 60 s apply.
|
||||
- (g) §3 says "(+ optional password hash)"; the token carries no hash, and the password is mixed into the MAC so it cannot be guessed offline. §3 left unchanged until you agree.
|
||||
- (h) The UI contract roughly doubled phase 2's scope; all of it is built.
|
||||
- (a)–(e) from phase 1 below are still open.
|
||||
- **Next step:** Phase 3, starting with the open points (a) LE staging, (b) the engine switch, (c) the 4th clicks, (d) the palette, and §8.6 (Custos CSR signing).
|
||||
|
||||
**2026-11-07: Phase 1, design draft** (kept for its open items).
|
||||
- **Changed:**
|
||||
- Phase 1 on branch core/phase-1: workspace, `.githooks/pre-commit`, crates/core (schema and both compilers), crates/edge (Pingora with rustls), tests/diff (60 cases against Caddy 2.11.7), tests/support.
|
||||
- Reviewed by a separate QC pass, two rounds; every finding fixed or listed below.
|
||||
|
||||
Reference in New Issue
Block a user