Skip to content

fix: findings of the reviews before 0.52.0 (NTLM binding, GPU cap, asks) - #607

Merged
7schmiede merged 1 commit into
mainfrom
fix/review-findings-052
Nov 21, 2026
Merged

7schmiede merged 1 commit into
mainfrom
fix/review-findings-052

Conversation

@7schmiede

Copy link
Copy Markdown
Member

What and why

The code and security reviews of everything since 0.51.0 (79997e1..2452d4f, reports kept internally) found one serious error in #603 and smaller points in #600, #604 and #605. The owner chose to fix all of them before 0.52.0, except the 25 % threshold for a GPU in use on the machine, which stays until it is measured on a real WSL node.

Finding Fix Proof
#603 broke Windows login through the proxies: NTLM's handshake (and the requests after it) needs one connection to the service, and the pool dropped it after every answer a connection that carried a Windows login stays with its client connection (connpool::Bound, one per accepted connection in the service proxy, the static forward (axum ConnectInfo) and the public link router) and never goes to the pool connpool test with a real three-leg NTLM upstream: red the handshake went over two connections, green; proxy test with two real client connections: red when the binding is per request instead of per connection, green; a second client never gets the login
binds_connection saw the first scheme only comma-separated schemes, Kerberos, CredSSP; Proxy-Authorization/Proxy-Authenticate stripped as hop-by-hop unit test
GPU cap took the first GPU, not one that fits, and counted held GPUs from nvidia-smi room = cap less what the leases hold; the largest free GPUs are offered; the admission gives any free GPU that fits within the room share tests: red with the old semantics at Err(0) vs Ok(["b"]) (cap 1, 8 + 24 GiB, need 16 GiB), green; a GPU missing from the tool's list still counts
nvidia-smi without a limit could stall every lane's container reports devstack_compose::output_within, 5 s —
--max-gpus to an older agent that only lets running lanes finish passed only with new lanes agent_args test
asks (#599): admin told about own machine, burst when becoming admin, flood by switching, "same machine as X?" from a self-chosen name me excluded, no reading for non-admins, at most once per machine in 30 min; "same address as X (id)" / "a similar name to X (id), not checked"; the coordinator drops invisible characters (bidi, zero-width) from a machine's name; Machines pill for admins only asks tests (throttle with fake clock), member_name test, asks.test.ts; in the mock dashboard: the new hint text
watcher relist listed each new directory twice in a burst what comes during the wait is listed once existing watcher tests
GPU cap: invalid input silently "no cap" parseCap, the form says so and does not save vitest; in the mock dashboard: "zwei" shows the hint, Save disabled

Checked: cargo fmt, cargo clippy --workspace --all-targets -D warnings, cargo test --workspace (Windows), npm run typecheck, vitest (302), mock dashboard. Not checked: against a real Kestrel/HTTP.sys service; the watcher change on Linux runs in CI only this time.

ADR-0115 and ADR-0116 say what was built now; CHANGELOG entries corrected.

🤖 Generated with Claude Code

- connpool: a connection that carried a Windows login (Negotiate, NTLM,
  Kerberos, CredSSP; several schemes in one value) stays with its client
  connection (`Bound`, one per accepted connection in the service proxy,
  the static forward and the public link router) instead of being
  dropped: #603 broke NTLM, whose handshake needs one connection. Proxy
  login headers are stripped as hop-by-hop.
- GPUs: the cap counts what the leases hold, offers the largest free
  GPUs, and lets the admission give any free GPU that fits within it;
  `nvidia-smi` runs with a 5 s limit; `--max-gpus` goes only to an agent
  that takes new lanes.
- asks (#599): no notice about the admin's own machine, no baseline (and
  burst) for a non-admin, at most one notice per machine in 30 min; the
  Admin tab says "same address" or "similar name, not checked" with the
  other's id; the coordinator drops invisible characters from a machine's
  name; the Machines pill shows to admins only.
- watcher: the relist thread lists what came meanwhile once.
- share switch and setup dialog say when the GPU cap is no whole number.

Bug-Class: connection-bound-state-shared
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit aa1cf3c into main Nov 21, 2026
14 checks passed
@7schmiede
7schmiede deleted the fix/review-findings-052 branch November 21, 2026 00:32
@7schmiede 7schmiede mentioned this pull request Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant