Commit Graph
21 Commits
Author SHA1 Message Date
ari 92ad3c8128 A: wire peer check to the real client and probe a real socket in tests
B1/B2 are merged, so `real_transport` builds the `ReqwestTransport` with the
configured limits and deny list instead of bailing. Binary tests now probe a
real loopback server: ok with latency, rejected credential, unreachable peer
and an unknown name, none of which may print the token.
2026-10-19 22:31:29 -04:00
ari e2ff40beae A: test the token-free commands, snapshot print-config and tighten assertions
The peer-less `--print-config` output is now compared against the committed
pre-peers text plus the default `[peers]` block, and a config with a peer
must leave everything before that block byte-identical. New binary tests
cover `--print-config`, `peer list`, `token create|list` with an unreadable
token file, and `serve` refusing to start while naming the peer.
2026-10-19 22:31:29 -04:00
ari d3bef6bd94 A: share tracing capture and peer config fixtures in tests (gate round 1) 2026-10-19 22:31:29 -04:00
ari 2eb1d2a78b A: A4 peer list and one-shot peer check CLI 2026-10-19 22:31:29 -04:00
ari 7d10153677 A: A3 secrets loader reads token files with redaction and permission checks 2026-10-19 22:31:29 -04:00
ari bcac6c76e6 A: A2 validate peer names, URLs, token files and timeouts 2026-10-19 22:31:29 -04:00
ari 40d18c2253 A: A1 peers config section, env overrides and print-config redaction 2026-10-19 22:31:29 -04:00
ari 7dd79c3851 B: cover token rotation and recovery against the in-process peer 2026-10-19 20:55:25 -04:00
ari d94c2b3a1d B: B2/B3 health probes, loops and the in-memory status model 2026-10-19 20:55:25 -04:00
ari bd5b21bcc4 B: B1 real reqwest peer client with caps, timeouts and ring TLS 2026-10-19 20:55:25 -04:00
ari 0dbaf58c8c A0: review round 1 peer entry defaults and class strings 2026-10-19 20:02:17 -04:00
ari 4bfb097be6 A0: contract stubs types, transport, fake and registry seams
Land the shared peer contracts: types, error mapping, transport trait,
fake transport and fixtures, registry/proxy/health skeletons, the
AppState.peers and Config.peers seams, the ping and peers route stubs,
and unit plus integration tests. No loops, no network, feature off by
default.
2026-10-19 20:02:17 -04:00
ari 31c44c74d5 Merge branch 'test/binary-smoke' into integration/phase2 2026-10-16 10:05:09 -04:00
ariandClaude Sonnet 5.5 3fd7cc1b60 tests: smoke-test the real slinuxm binary against a temp SQLite DB
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
2026-10-16 10:04:20 -04:00
ariandClaude Sonnet 5.5 f1d659965b Serve plain HTTP through the shared hyper accept loop with connection cap and header timeout
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
2026-10-16 10:02:08 -04:00
ariandClaude Sonnet 5.5 66eb91bf01 tests: share raw HTTP request/response helpers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
2026-10-16 08:57:21 -04:00
ariandClaude Sonnet 5.5 d6281a4081 tests: make TLS rotation tests deterministic
Probe the served cert with a non-verifying client and wait on the server log
instead of fixed sleeps, so a not-yet-processed SIGHUP no longer panics.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 07:25:55 -04:00
ariandClaude Sonnet 5.5 9f2bbc7d14 WS-I: review fixes (connection cap, header timeout, SIGHUP on plain path, HTTP/1.1 only)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 07:19:14 -04:00
ariandClaude Sonnet 5.5 c5972b762f WS-I: native TLS (optional, default off) with SIGHUP cert reload
server.tls.{enabled,cert_file,key_file}; rustls (ring, explicit provider) via
tokio-rustls + hyper-util; https:// MCP origins when enabled; non-loopback
plain-HTTP startup warning; tests/tls.rs; README TLS section.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 07:10:14 -04:00
ariandClaude Sonnet 5.5 533659dfc1 P3 review follow-ups: bounded shutdown, unit hardening, host guard, more tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
2026-10-15 19:27:49 -04:00
ariandClaude Sonnet 5.5 acedb9522e P3: wire serve end to end, integration tests, unit file, README
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
2026-10-15 19:21:53 -04:00