GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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) #6515

New issue
Copy link
New issue
Copy link
Closed
#8085
Closed
fleet brokers: review-finding hardening for dual-bind transports (from PR #6514)#6515
#8085
Copy link
Labels
app/fleetpkgs/fleet multicall binary + platform crateseffort/mMedium: expected under 1 day of workkind/securitySecurity issue or security hardeningmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/queue-workerFiled or worked by the queue/worker pilotstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Nov 6, 2026
Issue body actions

Follow-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):

  • Major / Security: pkgs/fleet/crates/fleet-queue/src/queue_broker.rs ~line 723 — TCP request handling reads the request body before authentication; an unauthenticated client can stream a large/unfinished body before the 401. Reject unauthorized POSTs before reading the body; bound body size. Check the equivalent secrets-broker path.
  • Major / Stability: pkgs/fleet/crates/fleet-queue/src/uds_http.rs ~line 58 and ~line 62 — see PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 threads.
  • Major / Data Integrity: uds_http.rs ~line 64 — see PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 thread.
  • Minor: uds_http.rs lines 64, 70, 98, 116, 119, 131 — stability/security/correctness notes, see PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 threads.

Acceptance:

  • Each PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 CodeRabbit thread is fixed in a follow-up PR or answered with a reason.
  • Body-size cap and read timeout (or an explicit documented decision against) on both broker transports.
  • Tests named with their oracle per the testing doctrine (invariant/model/golden) where a cap/timeout is added.

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).

Activity

Next
  1. dezren39
    added
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

    @developing-today
    developing-todayBot
    on Nov 6, 2026 – with developing.today
    Contributor
    More actions

    CODE-1973

  3. dezren39
    added
    kind/securitySecurity issue or security hardening
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    status/needs-triageNot yet triaged; needs a first look
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 6, 2026
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    Intake review

    • Related: follow-up to PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 (implements fleet brokers: dual-bind Unix-socket listeners alongside TCP (from #5699) #6216, dual-bind listeners for queue-broker + secrets-broker), filed by queue worker task 11120 so the 11 CodeRabbit findings are tracked, not lost at merge.
    • Notes: Still live at intake — the findings were explicitly not dispositioned in PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 (merged under the standing merge-when-verified rule). The body's own Acceptance list is carried into a formal acceptance-criteria section in this pass; labels normalized (kind/security: the headline finding is an unauthenticated client streaming a large/unfinished body before the 401 on the TCP path).
    • Risks: the same body-before-auth shape may exist on the secrets-broker path — the body already calls for checking the equivalent path; treat both brokers as in scope, not just fleet-queue.
    • Suggested approach: disposition the threads in severity order (auth-before-body first, then the uds_http stability/data-integrity majors, then minors), one follow-up PR with tests named for their oracle.

    🤖 Fleet monitor intake (repo-fleet-monitor), 2026-11-06.

  5. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 7, 2026
  6. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 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:
      • TCP path still live: pkgs/fleet/crates/fleet-queue/src/queue_broker.rs incoming loop (~L990-1004) reads the POST body (read_to_end) before handle_request performs the token check (~L821) — an unauthenticated client can stream a large/unfinished body before any 401; no body cap or read timeout on that read. The secrets-broker TCP loop is in the fix scope to verify to the same standard.
      • UDS path still live: uds_http.rs read_request consumes the full body before handler auth by construction; a declared Content-Length is clamped to MAX_BODY_BYTES (16 MiB) via min() instead of rejected (silent truncation — CodeRabbit threads 4492609635/4492609657; the in-code comment already says task fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515's issue owns the clamp semantics); no set_read_timeout anywhere; serve() spawns an unbounded thread per connection (thread 4492609760).
      • Partially fixed since filing: fleet-queue(uds_http): Content-Length is never validated — an unparsable value silently becomes 0 and conflicting duplicates resolve last-wins, so the brokers dispatch a request with its body dropped #6527 landed strict Content-Length parsing in uds_http.rs (unparsable value rejected before the handler; duplicates must agree) with named-oracle tests — those two minor PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 threads are dispositioned FIXED, no further work.
    • 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
  7. dezren39
    removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 8, 2026
  8. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-g (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-g run 2026-11-08 03:43 CST; task 13119
    • Found via: queue claim · task 13119
    • Task: task 13119 for issue fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515 (triage). Fresh check: issue fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Execution-lane assignment returned opencode - handed off to the opencode claimant, which launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 13119 to a terminal state.
    • Links: task 13119 · issue fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515
  9. developing-today
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 8, 2026
  10. 63 remaining items

  11. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 9, 2026
  12. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    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.
  13. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    {"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."}

  14. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    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.

  15. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 9, 2026
  16. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    {"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."}

  17. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • 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: broker transports — auth before body, reject oversized, read timeouts (PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 findings). Fresh check: issue fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 is MERGED. Execution lane: direct (row 5317) — this lane works it. Prior triage (task 11202 / task 13119) confirmed still live: both broker TCP loops read POST bodies before auth; UDS reads before handler auth and clamps oversized Content-Length; no read timeouts.
    • Expectation: follow-up PR fixing auth-before-body, reject-not-clamp cap, and read timeouts on both transports, with oracle-named regression tests; then disposition PR feat(fleet-queue): dual-bind Unix-socket listeners for queue-broker + secrets-broker (#6216) #6514 CodeRabbit threads.
    • Links: task 11464 · 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
  18. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 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
  19. dezren39
    added a commit that references this issue on Nov 10, 2026

    Merge pull request #8085 from developing-today/queue/11464-6515-broke…

    c64a02f
  20. dezren39
    closed this as completedin #8085on Nov 10, 2026
  21. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 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
  22. developing-today
    added
    status:done
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/fleetpkgs/fleet multicall binary + platform crateseffort/mMedium: expected under 1 day of workkind/securitySecurity issue or security hardeningmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/queue-workerFiled or worked by the queue/worker pilotstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.