GeezerVison is showing github.com — fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) · Issue #6515 · developing-today/code
fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515DescriptionFollow-up from PR #6514 (implements #6216, dual-bind Unix-socket listeners for queue-broker + secrets-broker), filed by queue worker task 11120 so the review findings are tracked, not lost at merge.
CodeRabbit posted 11 actionable comments on PR #6514 (2026-11-06T12:54Z), after the PR was verified (fleet-queue 39 tests pass, fleet-config 16 pass, live TCP+UDS smoke on both brokers). None were dispositioned in that PR; they are recorded here instead of blocking the verified dual-bind change (standing merge rule: merge when verified, fix forward).
Findings to disposition (fix, or reply on the PR #6514 thread why not):
Acceptance:
Acceptance criteria
- Every CodeRabbit thread on PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 is dispositioned: fixed in a follow-up PR, or answered on the thread with a reason.
- Both broker transports (queue-broker and secrets-broker, TCP and UDS) reject unauthorized POSTs before reading the request body, and enforce a body-size cap and a read timeout — or carry an explicit documented decision against, recorded on this issue.
- Regression tests cover the unauthenticated large/unfinished body case on the TCP path (oracle: the request is refused before the body is consumed).
Activitydeveloping-today commented on Nov 6, 2026 dezren39 commented on Nov 6, 2026 Intake review
🤖 Fleet monitor intake (repo-fleet-monitor), 2026-11-06. dezren39 commented on Nov 8, 2026 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane code-p
- Session / ID: task 11202
- Found via: queue claim
- Task: Triaged issue fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515 at current main (4fee73f) — verdict: CONFIRMED, still live, with a partial fix already landed.
- Findings:
- Expectation: fix scoped and enqueued as task 11464 (small_fix, priority 50): auth-before-body on both broker TCP loops, reject-not-clamp oversized Content-Length + TCP body cap, read timeouts on both transports, disposition of every remaining PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 CodeRabbit thread, regression tests with the oracle "refused before the body is consumed". Issue fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515 stays open, labelled queue/queued for task 11464.
- Links: issue fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515, PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514, task 11464
developing-today commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 9, 2026
Agent note — picked up task 13119 (triage, issue #6515) from the OpenChamber scheduled lane. Fresh check: issue #6515 is OPEN with no hard-stop labels; PR #6514 is MERGED. Claim requested lane 02cafe76-eafd-4d0b-aaa6-2b7a737d68dc; helper response reported lane_id ec118cad-0fd3-4652-91c4-27432f2f2efd, while our checkpoint succeeded for task 13119. Proceeding with this claimed task and recording the attribution discrepancy. Attempts 6/6.
- Next: verify issue findings and whether follow-up task 11464 / equivalent work is already handled; route or close with evidence.
dezren39 commented on Nov 9, 2026
{"event":"picked_up","worker":"repo-worker-code","queue":"repo-health-code-pilot","task_id":13119,"lane":"ec118cad-0fd3-4652-91c4-27432f2f2efd","session":"ses_e5e420919a1ffepg3xs03Ot6yO","note":"Claimed task 13119 in the OpenChamber scheduled lane. Fresh check: issue #6515 OPEN; PR #6514 MERGED; no hard-stop labels. Prior completed triage on task 11202 says findings confirmed and follow-up task 11464 was enqueued; verifying that follow-up's current state before routing this revived packet."} dezren39 commented on Nov 9, 2026
Agent note — task 13119 is complete as triaged. Verified current main 1134e4be7397041b019e1a65bc698903ad403858: both broker TCP paths still consume POST bodies before authentication; the UDS path reads before handler auth and still clamps oversized Content-Length. Merged PR #6529 only added strict parsing/agreement checks, not the remaining body/auth, cap, or timeout work. The existing routed fix task is #11464 (assigned direct); no duplicate packet was created. Issue #6515 remains OPEN for that fix. Queue task 13119 completed with follow-up task 11464. dezren39 commented on Nov 9, 2026
{"event":"claim_lost","worker":"repo-worker-code","queue":"repo-health-code-pilot","task_id":13119,"lane":"ec118cad-0fd3-4652-91c4-27432f2f2efd","session":"ses_e5e420919a1ffepg3xs03Ot6yO","note":"Fresh GitHub checks: #6515 remains OPEN with no hard-stop labels; #6514 is MERGED. On current origin/main a97c23c, the queue-broker TCP loop still reads POST bodies with read_to_end before handle_request authentication; secrets-broker similarly drains POST bodies before its handler; uds_http still clamps declared lengths above 16 MiB and reads connections without timeouts, and spawns one thread per connection. PR #6529 fixed only strict Content-Length syntax/duplicate validation. Prior triage note links fix task 11464; completing a triage follow_on would allow queue dedupe to attach the existing live fix task. Queue checkpoint for task 13119 stage verified failed with 'task 13119 is not claimed by repo-worker-code' after the initial claimed checkpoint succeeded; helper switched to github-fallback. Stopped queue work; no code edits or completion were made. Local evidence is branch queue/13119-6515-triage-dual-bind-review-findings at /home/user/git/fleet/13119, based on a97c23c."} dezren39 commented on Nov 10, 2026 dezren39 commented on Nov 10, 2026 🤖 Agent note · fix PR opened — all PR #6514 findings dispositioned
- Agent: repo queue worker, lane code-v (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-v run 2026-11-09 18:29 CST; task 11464
- Found via: queue claim · task 11464
- Task: task 11464 (small_fix) for issue fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515 is implemented in PR fix(fleet-queue): broker transports — auth before body, reject oversized/incomplete, timeouts (#6515) #8085 (branch queue/11464-6515-broker-transport-hardening, commit 6f17898): auth-before-body gate (
pre_body_refusal, 401/413 from headers alone) on both brokers and both transports, 16 MiB body cap with reject-not-clamp, UDS 30s read/write timeouts + 128-connection bound, complete-header cap, chunked Transfer-Encoding rejected, incomplete bodies rejected, and the bind hardening set (flock-serialized stale reclamation, 2s bounded live-owner probe, non-socket files preserved, parent-dir chmod only when created, socket chmod failure fails the bind). All 11 CodeRabbit threads on PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 have a reply naming the fix or the reason (comment ids 4519771585–4519775034).
- Documented decision (acceptance-criteria record): no read timeout is set on the TCP loops because tiny_http 0.12 exposes no per-connection read-timeout API. The residual slow-body risk on TCP is bounded by the auth-first gate (an unauthenticated client is refused before any body byte), the 16 MiB cap, and thread-per-connection isolation; the UDS transport carries real 30s timeouts. If tiny_http is ever replaced, add the TCP timeout then.
- Tests: cargo test -p fleet-queue --features queue-broker,secrets-broker,client — 129 lib + 2 bin-args pass, including 7 new oracle-named tests; git diff --check clean.
- Links: task 11464 · issue fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515 · PR fix(fleet-queue): broker transports — auth before body, reject oversized/incomplete, timeouts (#6515) #8085 · PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514
dezren39 commented on Nov 10, 2026 🤖 Agent note · done — PR #8085 merged
- Agent: repo queue worker, lane code-v (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-v run 2026-11-09 18:29 CST; task 11464
- Task: PR fix(fleet-queue): broker transports — auth before body, reject oversized/incomplete, timeouts (#6515) #8085 MERGED (merge commit c64a02f); issue fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515 auto-closed by the merge. Basic PR checks were still QUEUED at merge time (repo CI backlog); per the standing merge rule (CI runs on main, PRs do not wait for CI; merge when verified), verification stands on the targeted suite: cargo test -p fleet-queue (all broker features) 129 lib + 2 bin-args pass, run twice on the final tree. Codex review failed to run (usage limits, no findings produced — noted on PR fix(fleet-queue): broker transports — auth before body, reject oversized/incomplete, timeouts (#6515) #8085). Completing task 11464 as fixed_merged.
- Links: task 11464 · issue fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515 · PR fix(fleet-queue): broker transports — auth before body, reject oversized/incomplete, timeouts (#6515) #8085 · PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|