Commit Graph

42 Commits

Author SHA1 Message Date
mnovak 7e59a76ee3 [repo] Licence: CPAL-1.0 (LICENSE from the Domi template, every header and identifier; 0.2.0 and earlier stay MPL-2.0) 2026-11-23 00:19:19 +01:00
mnovak 7f733102bf [control] Start and resolver (QC nits): the live tree goes through the same rules as an apply before control writes it to the engines, and a guard frees an edge name lookup's entry and thread on every way out, a panic included 2026-11-22 19:04:47 +01:00
mnovak 6f259e410a [edge] Resolver and control start, tests first (QC nits): a lookup thread that panics must not leave its name stuck, and a kept tree that breaks a changed [ui] config is not written to the engines at start (red) 2026-11-22 19:04:35 +01:00
mnovak 6ce6bfdb79 [edge] Listeners: QC's probes kept as regression tests (smuggling and desync with pipelining, a TLS handshake that never starts, an HTTP/2 header block that never ends) with their Python probes in tests/support/probes 2026-11-22 18:50:36 +01:00
mnovak 18169dcbc2 [edge] Pipelining: a unit test on an in-memory pipe for the plain-HTTP listener (runs on Windows too) 2026-11-10 21:36:53 +01:00
mnovak c4777a5477 [edge] Proxy socket: a Unix peer has no address in Pingora, so the socket is recognised by its listening side 2026-11-10 21:30:26 +01:00
mnovak d74079c66d [core] Unix upstreams: unix:/path parses strictly into a socket upstream; edge proxies and health-checks it in plain HTTP over the socket, Caddy dials unix/<path> 2026-11-10 21:04:24 +01:00
mnovak ffffa62999 [core] Proxy socket: compile option proxy_socket gives both engines a 0660 Unix socket for the front proxy (edge in its config, Caddy a third server with trusted_proxies_unix); listeners change only with a restart 2026-11-10 20:59:57 +01:00
mnovak a278ef3b23 [tests] Windows: a Linux-only test target shows as one ignored test, not as a pass 2026-11-10 20:53:40 +01:00
mnovak 6b2ba163df [edge] Resolver: upstream names are looked up on at most 8 threads of their own, never on tokio's blocking pool; one lookup per name at a time; a lookup past the limit fails at once with 502 2026-11-10 20:50:52 +01:00
mnovak 66dcf75fea [edge] Resolver, tests first: hung name lookups pin at most a bounded number of their own threads, concurrent lookups of one name share one, and the rest fail at once (red: one blocking-pool task per request, as before) 2026-11-10 20:50:26 +01:00
mnovak 39dd8f0f47 [edge] Listeners: a request header must be complete within 60 s (--header-timeout), pipelined requests are answered in order, and --proxy-socket serves the front proxy on a 0660 Unix socket whose X-Forwarded-For is believed 2026-11-10 20:46:28 +01:00
mnovak 7a2aee20eb [edge] Listeners, tests first: an overall header deadline (slowloris), pipelined requests answered in order on both listeners, a proxy socket whose X-Forwarded-For is believed (red: the deadline is a pass-through) 2026-11-10 20:43:50 +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 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 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 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 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 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 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 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 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 0c42138d74 [edge] Lint: resolver tests at the end of runtime.rs 2026-11-07 16:42:45 +01:00
mnovak 27b0a165b2 [edge] Fetch: accept up to 1000 informational heads (Go has no count limit); KD-10 beyond 2026-11-07 16:41:41 +01:00
mnovak 8c04b0f4bd [edge] Upstreams: 3 s deadline on name lookups, 502 on timeout 2026-11-07 16:39:29 +01:00
mnovak 2dfb0b8ecc [tests] Windows: Linux-only test targets report one explicit skip instead of zero tests 2026-11-07 15:58:14 +01:00
mnovak ecdba7775f [docs] Notes: tests/support in layout, forward-auth failure modes, bash hook self-test 2026-11-07 15:58:00 +01:00
mnovak bcf94928c9 [diff] Corpus: 57 cases, all headers compared, narrow named divergences, misbehaving-auth and Upgrade-token cases 2026-11-07 15:53:38 +01:00
mnovak a272e476b7 [edge] Fixes: skip 1xx, enforce auth timeout, resolve upstreams per connect, all Upgrade tokens, strip Remote-* 2026-11-07 15:48:18 +01:00
mnovak d42c178a13 [edge] Tests first: QC repros for 1xx, auth timeout, name resolution, Upgrade tokens, Remote-* stripping (red) 2026-11-07 15:36:00 +01:00
mnovak 6a7aafc859 [edge] ACME: end-to-end test against Pebble next to a Domi-cert host 2026-11-07 15:06:40 +01:00
mnovak 17e1df8320 [edge] Proxy: Pingora data plane with SNI certs, forward-auth, header rules, health checks, ACME 2026-11-07 14:57:36 +01:00
mnovak 4fe041082d [edge] Tests first: secret never leaks, forward-auth denial never reaches upstream (red) 2026-11-07 14:48:06 +01:00
mnovak c1abe88688 [repo] Workspace: cargo workspace, MPL-2.0 license, control and web placeholders 2026-11-07 14:31:04 +01:00