Commit Graph

83 Commits

Author SHA1 Message Date
mnovak 6956f23cb2 [tests] Caddy mode: a minute for Caddy to start on a busy machine 2026-11-17 21:42:52 +01:00
mnovak 2aa8d66127 [control] The admin host is accepted with any port (Docker or a router may publish 443 elsewhere); smoke scripts: Windows-readable paths, curl without Schannel's revocation check, logs on failure 2026-11-17 21:35:34 +01:00
mnovak 695ed178a5 [control] Clippy clean for the T4 code; CLAUDE.md: the deploy folders and the Linux test command in Docker; the Docker smoke turns off Git Bash's path rewriting and removes its volume 2026-11-17 21:18:19 +01:00
mnovak d5d522fe4b [deploy] Fixes from the Windows smoke: the admin host has no health path (every API path needs a sign-in), -NoService keeps the person who ran it in the folder's ACL, paths may have backslashes; Pebble 2.6.0 in the CI image (the ACME test's version) 2026-11-17 20:55:41 +01:00
mnovak 09f6b12676 [tests] Linux-only tests follow the Caddy admin address type and the [previews] config field 2026-11-17 20:42:01 +01:00
mnovak dced199132 [control] Team sign-in without Authelia: a one-time setup link for the first admin, invite links, per-browser sessions in an HttpOnly cookie, admin and member roles, Tessera roots with their match code; the admin host kept by control ([ui] admin_tls) 2026-11-17 20:28:12 +01:00
mnovak 51a95e4f75 [control] Caddy mode, tests: a previews-only token opens a branch preview that answers through Caddy (admin on loopback TCP, Domi certificate, no edge) and is gone after close; runs on Windows 2026-11-17 14:03:52 +01:00
mnovak 5e273241e4 [tests] Diff: the differential suite runs on Windows too (Windows Caddy, drive paths), with two branch previews in the fixtures; edge leaves a websocket 101 as the upstream sent it, as Caddy does 2026-11-17 13:59:18 +01:00
mnovak acf69a8ed2 [control] Windows Caddy mode: Caddy's admin API on loopback TCP where there is no Unix socket, applies go through Caddy without an edge, control and the Caddy guard as Windows services, a log file 2026-11-17 13:59:12 +01:00
mnovak fc9e16f1b2 [control] Previews: POST/GET/DELETE /api/v1/previews, tokens scoped to previews only, the upstream allow list, expiry; Windows drive paths in compile options (tests first) 2026-11-17 13:46:33 +01:00
mnovak 83270e0746 [core] Previews: branch and project names to one safe host label, and the [preview] table of a host file (tests first) 2026-11-17 13:29:35 +01:00
mnovak d4da521a91 [core] PKI: the Domi CA from the shared crate domi-pki v1.0.0 (same API, messages and key format) 2026-11-17 12:30:10 +01:00
mnovak 0213021bb1 [control] Fix round 4: a device change during an engine switch is never skipped silently (devices_problem until the serving engine is told), and every switch ends by telling the engine that serves, also after going back 2026-11-08 12:48:57 +01:00
mnovak c45dafa2a3 [tests] Tests first, fix round 4: a revocation during a switch to Caddy, and during a failed switch away from Caddy, is in force when the switch ends (red) 2026-11-08 12:40:24 +01:00
mnovak 4d87537a76 [control] Fix round 3: revocations never wait for an apply (files and edge at once; under Caddy the reload is left to the end of a running trial), confirmed before the deadline is claimed, the guard marks a trial expired only after a verified load and retries, caddy-revert clears a stale deadline when Pingora serves 2026-11-08 12:28:35 +01:00
mnovak 09b8313a04 [tests] Tests first, fix round 3: a revocation during a watch is in force at once (Pingora) or when the apply ends (Caddy), a device revoked under Caddy is refused, caddy-revert with Pingora serving clears a stale deadline (red) 2026-11-08 12:21:36 +01:00
mnovak 23a283ece9 [control] Fix round 2: Caddy rereads its files on every load and the served certificate is checked, Caddy trials get a deadline outside control (caddy-guard, caddy-revert), the watch under Caddy judges upstreams as edge does, a reload of Caddy during the watch is noticed and device changes wait for the apply, stricter root key scan, IPv4-mapped trusted proxies 2026-11-08 12:04:13 +01:00
mnovak ba3a060b2e [tests] Tests first, fix round 2: same caddy.json reload rereads certificates, forward-auth hosts kept under Caddy as under edge, crash mid-trial under Caddy, Caddy reloaded during the watch, watching crash point, caddy-revert after a crash, TLS 1.2 device after a bad ALPN (red) 2026-11-08 11:48:10 +01:00
mnovak b24ffdf9db [control] Design review: Caddy differences per host in fallback_ready, active apply kind, hosts and watch end, capped device end date, CSR fingerprint for signing by hand, crash points exit without SIGABRT 2026-11-08 11:21:43 +01:00
mnovak 3bf5fa0e1a [control] QC minors: device install links open a page and download on POST (never listed), approve and install failures show on the request and the CLI waits, PBKDF2 floor, private pki dirs or an error, trusted_proxies for a proxy in front, a placeholder keeps the device allow list from being empty (Caddy refuses that) 2026-11-08 11:02:50 +01:00
mnovak e84eb1ba74 [control] Fix round 1: changes apply while Caddy serves (admin socket, watch through Caddy), revocations that fail are errors and catch up, proof only on the forward-auth UI host, root keys found by content, intermediates checked before install, stale SNI cleared before each handshake 2026-11-08 10:49:31 +01:00
mnovak 0749119f19 [tests] Tests first, fix round 1: proof only on the forward-auth UI host, revocations that cannot be written, root key files by content, intermediates that cannot issue, stale SNI after a failed or resumed handshake, edge re-reads the allow list, changes apply while Caddy serves, Hostname focus (red) 2026-11-08 10:26:31 +01:00
mnovak e2a777882c [control] Root-key refusal test: a control that does not refuse is killed after 20 s instead of hanging the suite 2026-11-08 00:10:26 +01:00
mnovak 9933f55242 [control] Mark's UI decisions: Remote-Name shown with the proof, [ui] logout_url for Sign out, openssl signing files for the manual intermediate step, engine.not_ready, server sentences for the eight generic codes 2026-11-07 23:48:43 +01:00
mnovak aed5fbfcff [control] Overview for the UI: who is looking (viewer) and the underlying pause reason, so the UI offers the right action 2026-11-07 23:44:25 +01:00
mnovak f9dd2247f8 [control] Dev mode: a throw-away Domi root signs the first intermediate at start, so tls = "domi" works for any name; --ui-dir serves a built UI 2026-11-07 23:24:45 +01:00
mnovak 6237e721d6 [control] Test hooks: IANITOR_TEST_CRASH_AT and IANITOR_TEST_FAIL_WRITE only with the default test-hooks feature; a --no-default-features build has neither 2026-11-07 23:23:51 +01:00
mnovak 12886a1d31 [control] Engine switch: POST /engine through a Units abstraction (systemctl via polkit, a fake in tests); engine file first, back to the old engine if the new one does not serve; changes and share links wait while Caddy serves 2026-11-07 23:22:59 +01:00
mnovak c18ae154ad [control] Domi CA and UI sign-in: intermediate renewal by CSR with manual offline signing, domi host certificates, device requests approved by code, one-time PKCS#12 installs, revocation; Remote-User trusted only with edge's per-boot proof 2026-11-07 23:21:49 +01:00
mnovak 211b851c3e [control] Tests first: Domi CA flows through the API (offline-signed intermediate, domi host chains, device approval by code, one-time install, revocation, no root key) and UI sign-in that refuses a forged Remote-User (red) 2026-11-07 23:11:05 +01:00
mnovak a5190acc3b [edge] Device certificates as Caddy does them: no certificate on a device host fails the handshake, a Host other than the SNI name is 421; diff corpus gains six device cases 2026-11-07 22:55:37 +01:00
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 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 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 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 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