• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cameri / nostream / 44612210902
78%
main: 80%

Build:
Build:
LAST BUILD BRANCH: rewrite/main
DEFAULT BRANCH: main
Ran 19 Nov 2026 08:51PM UTC
Jobs 2
Files 321
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Nov 2026 08:47PM UTC coverage: 77.582% (-0.006%) from 77.588%
44612210902

push

github

web-flow
feat(admin): serve the console's HTTP surface from the relay's one listener (#1192)

## What this does

Serves the admin console's HTTP surface from the relay's own listener,
so the unmodified static console in `resources/admin` drives the Rust
relay.

- **One listener, one port.** Each accepted socket's head is peeked
without consuming it: an `Upgrade: websocket` request goes to the relay
unchanged, everything else to an axum router. A second port would have
changed the console's URL and its session cookie's `Path`.
- **The console's own contract.** 26 API calls over 24 paths, plus the
page and seven assets, taken from the console's JavaScript at this
branch's base rather than from the TypeScript snapshot: the console grew
after the capture, and eleven of those routes have no capture-era
counterpart.
- **The capture's session model, not an approximation.** HMAC-SHA256
over `SECRET`, `<expiresAt>.<hex>`, bearer-then-cookie, scrypt
verification with the `ADMIN_PASSWORD` override, the capture's cookie
flags and TTL fallback, and the middleware chain's statuses (the 404
gate when admin is disabled, 415 on the JSON body middleware but not on
login, 429 with per-scope keys and the whitelist bypass).
- **Settings written back through the filesystem** — backup, restore,
validation against the merged document, a separate admin audit JSONL,
and the reload class the console reads.
- **`crates/nostream-admin` is real code now**: 576 lines of Phase-1
stubs became the router, state, middleware, 26 controllers and the
tests; `nostreamd` composes it and remains the only crate that binds a
socket.
- **Record:** `docs/rewrite/decisions/0014-admin-http-surface.md`
(D1–D17, seventeen decisions with their evidence), one empty changeset,
and the stub labels that remain label what is still unported.

## The oracle

`cargo test -p nostream-admin --test console_parity` derives the route
set from the console's own JS at test time (`derived: 26 calls over 24
paths + 2 page + 7... (continued)

4501 of 6342 branches covered (70.97%)

Branch coverage included in aggregate %.

9792 of 12081 relevant lines covered (81.05%)

761.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Integration - 44612210902.1 19 Nov 2026 08:51PM UTC 321
32.99
GitHub Action Run
2 Unit - 44612210902.2 19 Nov 2026 08:51PM UTC 321
75.03
GitHub Action Run
Source Files on build 44612210902
  • Tree
  • List 321
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44612210902
  • 9a7c3181 on github
  • Prev Build on rewrite/main (#44573440905)
  • Next Build on rewrite/main (#44772360683)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc