Commit Graph
218 Commits
Author SHA1 Message Date
HermenixandClaude Sonnet 5.5 0ff3520563 container details: limits, sandbox flags and a live stats sample
Container details now carry the image id and the HostConfig resource limits
(CPU cores and shares, memory and swap bytes, pids, device requests) plus sandbox flags
(privileged, read-only rootfs, network mode, restart policy), with null meaning unlimited. A new
GET /api/v1/docker/containers/{name}/stats returns one live sample: CPU percent
of one core, memory working set, processes, block IO and network bytes. Peers
proxy the new route.

Env, labels, command lines and mounts are deliberately excluded from the payload.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 03:02:33 +00:00
ari 72fccc34f8 docs 2026-10-21 00:12:33 -04:00
ari d8ad1c44c5 faster builds 2026-10-21 00:01:04 -04:00
ari b3b9103f2f Merge branch 'build-stamped-version' 2026-10-20 23:38:12 -04:00
ari 1a30b20ac0 Stamp the version as YYYY.MM.DD-<branch>-<sha>
build.rs builds the string (git, or SLINUXM_* env for builds without .git)
and the lib exposes it as VERSION. --version, /healthz, /api/v1/ping, MCP
server info and OTel service.version use it; OpenAPI info.version stays on
the semver so docs/openapi.json does not change per commit. The flake passes
the commit date and short rev to the package.
2026-10-20 23:27:46 -04:00
ari 020fa4871f added a way to rotate a token 2026-10-20 23:26:10 -04:00
ari 5d78004720 fixing tests 2026-10-20 22:57:34 -04:00
ari b38c66bcc8 added live redoc and slight refactors to tokens 2026-10-20 22:53:09 -04:00
ari 435a54a02d pulled out tests and validated them 2026-10-20 21:58:33 -04:00
ari dc8d62da30 added hooks 2026-10-20 21:29:23 -04:00
ariandClaude Sonnet 5.5 ca5c4b5642 Package: include docs/openapi.json for the drift test
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019dpKwZWtahQU4V2NhpVmLt
2026-10-20 16:47:30 -04:00
ariandClaude Sonnet 5.5 32e03d7cb5 Relax markdownlint list spacing for archived logs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019dpKwZWtahQU4V2NhpVmLt
2026-10-20 16:36:25 -04:00
ariandClaude Sonnet 5.5 f5e5f752e3 Fold Phase 5 into docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 16:35:11 -04:00
ariandClaude Sonnet 5.5 6be774e98b H: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 16:32:08 -04:00
ari 3d82eefcc7 H: review-1 handoff log 2026-10-20 16:28:35 -04:00
ari 5571b1d3a4 H: assert the exported peer request span kind
Export the span through a capturing exporter and require SpanKind::Client,
so the contract is checked where a backend sees it, not only in the field
that carries it.
2026-10-20 16:27:39 -04:00
ari 5f9f160666 H: keep the token listener open for the whole loop
The 500 ms accept window covered only the first case; a connection made later
went unseen. Accept once after the loop instead.
2026-10-20 16:26:52 -04:00
ari a78303c123 H: never open a token path that is not a regular file
Check is_file before opening and open with O_NONBLOCK, so a FIFO token file
cannot park a blocking-pool thread on every check and proxy call.
2026-10-20 16:26:11 -04:00
ari f9911f6c70 H: warn once about plain http
Validation runs at startup and on every reload, so the transport no longer
repeats the warning per peer on its first request; the helper is named for
the peer it reports.
2026-10-20 16:24:44 -04:00
ari a09c64de9a H: pin the token mode check for every group/world bit
Cover 0620, 0602, 0610 and 0601 in the loader and assert that startup
validation and the per-request load give the same reason for each.
2026-10-20 16:23:54 -04:00
ari 70af820838 H: prove the SSE test server identity
Require the child's own listening line for the probed port before it is
signalled; a 200 from /healthz proves liveness only, since another slinuxm
answers it too. Retry a lost bind race instead of signalling a dead child,
and add a squatter that answers 200.
2026-10-20 16:22:56 -04:00
ari 7252b0c966 H: dedupe integration test block 2026-10-20 16:18:19 -04:00
ari 33a49533a3 H: handoff log for the final-review fixes 2026-10-20 16:16:40 -04:00
ari 5ba6e820ca H: name the token mode check after what it rejects 2026-10-20 16:16:30 -04:00
ari fea6a52bb0 H: make the SIGTERM tests immune to a stolen port Both helpers verify the socket answers as our server and retry on a fresh port when the child lost the bind race; the SSE exit bound is 10 s 2026-10-20 16:16:13 -04:00
ari 3f017725f8 H: correct the peer gauge gating in the docs Name otel.enabled plus otel.export_unit_metrics, and state that disabled peers have no series 2026-10-20 16:14:19 -04:00
ari 9c770b0576 H: mark the peer.request span as an OTel client span otel.kind = client is set on the span and asserted in the span test 2026-10-20 16:14:14 -04:00
ari 97c81f899c H: deny IPv6 link-local and metadata addresses by default Add fe80::/10, ::/128 and fd00:ec2::254/128 to the default deny_cidrs and sync config.example.toml, README and docs/consolidator.md 2026-10-20 16:13:25 -04:00
ari 6e74d3d99b H: canonicalise addresses in the deny check Match IPv4-mapped IPv6 addresses against the IPv4 deny list at connect time, with tests for ::ffff:169.254.169.254 2026-10-20 16:12:07 -04:00
ari 39c1c91695 H: merge token loaders and peer helpers One loader in secrets.rs (header validity, canonicalised credentials dir) is used by the client; the deny-CIDR parser, loopback test and plain-http warning live once in config.rs 2026-10-20 16:10:24 -04:00
ariandClaude Sonnet 5.5 c478bef930 Plan WS-H: final review fixes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019dpKwZWtahQU4V2NhpVmLt
2026-10-20 16:04:52 -04:00
ariandClaude Sonnet 5.5 a6d451f23f G: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019dpKwZWtahQU4V2NhpVmLt
2026-10-20 15:59:48 -04:00
ari 0515008572 G: order the schema check list 2026-10-20 15:56:44 -04:00
ari 33c70442a1 G: review-1 handoff and deviation log 2026-10-20 15:54:13 -04:00
ari ae1b6fed28 G: F7 index the generated OpenAPI document 2026-10-20 15:54:13 -04:00
ari 2adfa59027 G: F6 fix health tag and document auth 503 and auth-off notes 2026-10-20 15:54:13 -04:00
ari a1117da01d G: F5 document the MCP stream and session delete 2026-10-20 15:54:13 -04:00
ari abd5b12cd0 G: F4 scan multiline routes and their methods 2026-10-20 15:54:13 -04:00
ari e6a9453c7a G: F3 derive IntoParams for query parameter structs 2026-10-20 15:54:13 -04:00
ari d2917b2483 G: F2 reflect peer status schemas from JsonSchema derives 2026-10-20 15:54:13 -04:00
ari 1506af11fc G: F1 probe documented paths through auth-off router with real methods 2026-10-20 15:54:13 -04:00
ari 55a2401f17 G: dedupe openapi helpers 2026-10-20 15:54:13 -04:00
ari e7f1d1a488 G: handoff for G1-G4 2026-10-20 15:54:13 -04:00
ari 214e074cca G: G4 document every error code and both content types per response 2026-10-20 15:54:13 -04:00
ari 34a1e1644c G: G4 Drift guard and docs commit the spec and fail tests on drift 2026-10-20 15:54:13 -04:00
ari 869b6818e9 G: G3 Serving and CLI serve the spec behind auth and print it offline 2026-10-20 15:54:13 -04:00
ari 7078ed15b1 G: G2 MCP description document POST /mcp and x-mcp-tools from the tool router 2026-10-20 15:54:13 -04:00
ari 3d8e840427 G: G1 REST spec derive the OpenAPI document from the handlers 2026-10-20 15:54:13 -04:00
ariandClaude Sonnet 5.5 5f4a0583f3 F: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 15:54:03 -04:00
ari f894d7da17 F: dedupe the repeated peers test block 2026-10-20 15:31:10 -04:00