Commit Graph

78 Commits

Author SHA1 Message Date
mnovak 3d8f524d00 [edge] Device certificates: mTLS on hosts with device_certs only (asked per SNI), chain to the Domi CA bundle and the allow list in the handshake, checked again per request; 403 without one 2026-11-07 22:49:32 +01:00
mnovak 4054427b62 [edge] Tests first: a Domi device cert is accepted for mTLS, a self-signed one with the same subject, an unlisted one and none are not (red) 2026-11-07 22:46:08 +01:00
mnovak 18da3f5d5a [core] Device certificates: device_certs host field; edge config v3 and Caddy client_authentication with a CA bundle and an allow list, 403 without a certificate 2026-11-07 22:46:07 +01:00
mnovak dc23bfe842 [core] Domi CA: offline root (10 y, pathLen 1), intermediate from a CSR (1 y, pathLen 0), server (90 d) and device (1 y) leaves, encrypted keys, match codes 2026-11-07 22:41:29 +01:00
mnovak cde0c3ea3b [core] Tests first: the Domi CA chains to the root, a leaf cannot sign, expired and wrong-name certs are rejected (red) 2026-11-07 22:40:56 +01:00
mnovak 7cb5715580 [docs] Custos ticket: the CSR-signing operation with match-code approval that Custos does not have yet 2026-11-07 22:40:38 +01:00
mnovak cb04bff74e [repo] Merge: Mark's decisions on the open points (PR #4) 2026-11-07 22:18:05 +01:00
mnovak 24009414de [docs] Decisions: runtime engine switch, share-link password and deny list, accepted 4th clicks, murex palette, LE staging in phase 3 2026-11-07 22:17:52 +01:00
mnovak 1adfa05640 [repo] Merge: Phase 2 control plane (PR #3) 2026-11-07 20:03:28 +01:00
mnovak 83a857ad80 [docs] Roadmap: final Phase 2 test counts and the open diff flake 2026-11-07 20:02:51 +01:00
mnovak afc3477b5c [control] Atomic writes: a temporary name unique per write (pid, counter, random), so two writers of one file never collide; same for edge's epoch floor 2026-11-07 19:57:06 +01:00
mnovak 7863202e3a [core] Share paths: invisible characters (default-ignorable code points, combining marks) do not hide a dot-only segment 2026-11-07 19:57:06 +01:00
mnovak 443d7457d2 [docs] Roadmap: Phase 2 status and handover 2026-11-07 19:48:29 +01:00
mnovak 432ae0f803 [tests] Ports and Caddy: test ports come from outside the ephemeral range, and a Caddy start that does not come up is retried 2026-11-07 19:45:18 +01:00
mnovak 83b7b3b7d6 [edge] Epoch floor: an unreadable or corrupt floor refuses share links instead of resetting to 0; directory fsync'ed after the write 2026-11-07 19:41:53 +01:00
mnovak cbb3e41ca7 [core] Share paths: judge dot segments on the NFKC form, so look-alike dots and spaces inside names pass; refuse slash look-alikes and broken escapes like %+f 2026-11-07 19:40:49 +01:00
mnovak 17f26f94a3 [control] Files retry: only in the apply worker under the lock, reloads edge to what it writes, drops only the journal of the apply that caused the pause; swallowed aborts and pauses logged; CLI owner check before creating the state dir 2026-11-07 19:39:49 +01:00
mnovak e28b084a19 [control] Tests first: a request during a Restore's watch never writes the unverified head or drops its journal (red) 2026-11-07 19:37:04 +01:00
mnovak 421800ec18 [core] Format: rustfmt on the URL redaction tests 2026-11-07 19:22:40 +01:00
mnovak 85edfa7128 [repo] Hook self-test: keep its source files next to the work dir by absolute path and remove them first, so a run leaves nothing behind 2026-11-07 19:22:32 +01:00
mnovak 60fb4b63ee [edge] Share fixes: revocation epoch floor kept in edge's own state across restarts, every share=ish1. parameter stripped (also encoded) 2026-11-07 19:22:03 +01:00
mnovak 7d3af00720 [control] Share and token fixes: settle the epoch before minting, mint in its own task so a dropped client frees its key, token checks off the async threads, CLI refuses to run as another user than the state dir's owner 2026-11-07 19:20:05 +01:00
mnovak 43918943da [core] Share paths and errors: decode once and refuse invalid UTF-8 and any NFKC look-alike of path structure, dots before any escape; hide everything before the last @ of a URL 2026-11-07 19:18:17 +01:00
mnovak dd10557b87 [control] Pause fixes: Restore waits until an unsaved pause is on disk, unwritable config files pause with a way out, a failed promote at start starts paused, a revert that cannot see edge is not reverted 2026-11-07 19:17:16 +01:00
mnovak 339882ec96 [control] Tests first: a Restore never drops an unsaved pause, a revert that cannot see edge is not called reverted (red) 2026-11-07 19:14:29 +01:00
mnovak 00f8dffc6a [tests] Ports: never hand out the same free port twice in one process, so parallel tests cannot reach each other's servers 2026-11-07 19:05:13 +01:00
mnovak 99b2a3a1a5 [docs] API: what errors may repeat, Idempotency-Key in progress and limits, where a minted URL is held 2026-11-07 18:57:54 +01:00
mnovak f382fe2f76 [control] API fixes: atomic Idempotency-Key reservation, no echo of odd field names or path parameters, askpass answers only password prompts, file protocol not forced, token test split on the known prefix, serialisation test without second-resolution times 2026-11-07 18:57:54 +01:00
mnovak 54574702ea [core] Format: rustfmt on the path and redaction changes 2026-11-07 18:57:53 +01:00
mnovak 2b66729f1b [core] Share paths and errors: refuse overlong UTF-8, %u, look-alike dots and slashes and trimmed dot segments; never repeat URL credentials in an error 2026-11-07 18:53:42 +01:00
mnovak 4448527b16 [control] Store and recovery fixes: cross-process token lock, revert keeps its journal until done, epoch and deny list never roll back, journal errors propagate, lost confirm reloads edge, trial hash checked 2026-11-07 18:51:58 +01:00
mnovak b9e14c6aee [control] Tests first: CLI token races, unsaved pause keeps the journal, lost share records never lower the epoch or shrink the deny list (red) 2026-11-07 18:47:00 +01:00
mnovak 98dad246d3 [edge] Share fixes: per-network password limit and no eviction, revocation epoch never goes down, stray share tokens stripped on every host, admin socket bound in a private directory 2026-11-07 18:44:55 +01:00
mnovak fee35830d1 [edge] Tests first: junk ids cannot flush the password throttle, a lower revocation epoch is refused (red) 2026-11-07 18:42:03 +01:00
mnovak c5380c65a6 [control] Recovery: record the outcome before clearing the journal; a failed revert pauses changes until a Restore, and a restart never loads the unverified head 2026-11-07 18:26:03 +01:00
mnovak 7cc92ec42d [docs] API: curl examples end to end on loopback, §8.4 reload answer with load numbers, UI contract deviations 2026-11-07 18:23:42 +01:00
mnovak 2c06efead1 [control] Dev mode: throw-away CA and certificates for three dev hosts; push step skipped without a remote 2026-11-07 18:23:41 +01:00
mnovak 56982fc6b7 [diff] Apply sequence: control applies six steps, Ianitor and Caddy answer the corpus identically after each 2026-11-07 18:18:07 +01:00
mnovak aa0f66b5ac [control] Phase 2 control plane: routes repo via git, journaled apply with trial/watch/revert, undo and restore, push with retry, share links, API tokens, REST API with OpenAPI, --dev 2026-11-07 18:17:06 +01:00
mnovak 56209cc595 [control] Tests first: health-check revert, crash at every apply stage, serialised applies, undo/restore, push, share links, token rejection and leaks, hostile bodies (red) 2026-11-07 18:16:51 +01:00
mnovak 74d1bc02da [edge] Options: credentials directory override, so tests can run several edges in one process 2026-11-07 18:16:14 +01:00
mnovak 6ce1fe9d2b [edge] Reload and share links: in-process config swap with self-reverting trials, admin socket with health and certificate status, share-link cookies, visitor pages and throttle 2026-11-07 17:49:53 +01:00
mnovak c0ed9c65c5 [edge] Tests first: reload under load, refused and trial configs, admin status, share-link visits and prefix escapes (red) 2026-11-07 17:47:43 +01:00
mnovak 7c81945771 [core] Time: RFC 3339 and long dates from Unix seconds 2026-11-07 17:47:42 +01:00
mnovak 94ba18d38b [core] Share links and repo layout: HMAC tokens with epoch, prefix check, exact hosts/<hostname>.toml, error codes; edge config v2 2026-11-07 17:32:44 +01:00
mnovak 73a9f3da45 [core] Tests first: share tokens, prefix escapes, repo layout, exact host path, error codes (red) 2026-11-07 17:32:09 +01:00
mnovak 027bf3a553 [docs] UI API: the designer's contract for Phase 3 2026-11-07 17:22:53 +01:00
mnovak db43af24a6 [core] Phase 1: merge core/phase-1 (PR #2) 2026-11-07 16:46:56 +01:00
mnovak cee64dd462 [docs] Roadmap: Phase 1 status and handover 2026-11-07 16:46:25 +01:00
mnovak 0c42138d74 [edge] Lint: resolver tests at the end of runtime.rs 2026-11-07 16:42:45 +01:00