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-proxy(udp-forward): fleet-udp-forward silently overwrites duplicate scalar flags — last --target/--proxy/--bind/--ports wins · Issue #6139 · developing-today/code

fleet-proxy(udp-forward): fleet-udp-forward silently overwrites duplicate scalar flags — last --target/--proxy/--bind/--ports wins #6139

New issue
Copy link
New issue
Copy link
Closed
#6145
Closed
fleet-proxy(udp-forward): fleet-udp-forward silently overwrites duplicate scalar flags — last --target/--proxy/--bind/--ports wins#6139
#6145
Copy link
Labels
app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

fleet-proxy(udp-forward): fleet-udp-forward silently overwrites duplicate scalar flags — last --target/--proxy/--bind/--ports wins

Summary

The CONNECT-UDP client shim bin fleet-udp-forward
(pkgs/fleet/crates/fleet-proxy/src/bin/fleet-udp-forward.rs, landed
in PR #6122 for #6109) parses its flags in a hand-rolled loop
(lines 52–75) where every scalar flag assigns unconditionally:
proxy = v (line 53), bind = ip (line 58), target = Some(v)
(line 64), ports = Some(v) (line 68). Repeating any of them silently
discards the first value — no error, no warning. Only --map is
repeatable by design (it pushes onto a Vec, line 71–75).

This is the silent-flag-loss class already filed per-parser for the
fleet's other hand-rolled parsers — #5939 (repo-queue client),
#5929 (proxy connect), #5713 (fleet-dispatch) — on the one parser
those filings could not cover: this bin was written after them.

Evidence (verified this run, laptop, real binary built from HEAD)

Laptop primary ~/git/code @ 7a980eb4cf; binary built with
cargo build -p fleet-proxy --bin fleet-udp-forward in pkgs/fleet.

  • fleet-udp-forward --target first.example --target second.example --ports 47998
    binds and serves with the second target, printing
    fleet udp-forward: udp:127.0.0.1:47998 -> second.example:47998 via 127.0.0.1:3131
    (ran until timeout, exit 124). first.example is discarded with no
    mention anywhere.
  • fleet-udp-forward --proxy 127.0.0.1:1111 --proxy 127.0.0.1:2222 --map 47998=127.0.0.1:47999
    serves via 127.0.0.1:2222 — the first proxy address is silently
    dropped the same way.

A script that concatenates a default flag set with an override set
(the usual way these duplicates happen) gets a forwarder pointed at
whichever value came last, with the run looking entirely successful.

Why it matters

  • The shim's whole job is pointing UDP traffic at a target host via a
    proxy endpoint. Silently retargeting --target/--proxy on a
    duplicate means traffic flows to the wrong host/endpoint while the
    operator believes the first value took effect — the dangerous
    direction for a forwarding tool, and exactly the failure fleet(queue): repo-queue client parser silently overwrites duplicate flags, accepts --dry-run=false as true, and silently defaults a non-numeric --limit #5939
    names for the queue client ("a mistyped or script-concatenated
    second --queue silently retargets work").
  • The bin is otherwise strict: unknown arguments, missing values, bad
    ports, and unpaired --target/--ports are all usage errors
    (exit 2). Duplicate scalars are the one silent path left.

Acceptance criteria

  • Repeating any scalar flag (--proxy, --bind, --target,
    --ports) in one invocation is a usage error naming the flag
    (stderr + usage, exit EXIT_USAGE = 2), before anything binds.
  • --map remains repeatable and accumulates, as documented.
  • Single-occurrence invocations behave byte-identically to today,
    including the --help surface.
  • Pinning tests cover each rejected duplicate shape plus the
    repeatable---map and single-value controls; cargo test -p fleet-proxy stays green.

Activity

  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

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

    CODE-1776

  3. dezren39
    added
    queue/queuedHas a queued queue task
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (lane A, slug new-issue-creator-code-a)
    • Session / ID: cron job new-issue-creator-code-a, run 2026-11-05 01:35 CST
    • Found via: filed this run
    • Task: fleet-udp-forward silently overwrites duplicate scalar flags (last --target/--proxy/--bind/--ports wins; verified with the real binary on the laptop @7a980eb4cf). Sibling of fleet-proxy(connect-udp): fleet-connect-udp ignores argv entirely — --help and typo'd flags start the CONNECT-UDP endpoint #6134 (same PR fleet-proxy: CONNECT-UDP client shim + standalone endpoint bins (#6109) #6122, the endpoint bin's missing argument surface); same silent-flag-loss class as fleet(queue): repo-queue client parser silently overwrites duplicate flags, accepts --dry-run=false as true, and silently defaults a non-numeric --limit #5939/fleet(proxy): proxy connect silently overwrites duplicate flags and silently drops modes — repeated --host/--port/--request/--body last-wins, --stdio eats --request, --print-path eats --request, --host/--port without --stdio are no-ops #5929/fleet(dispatch): duplicate and contradictory flags silently resolved — repeated values overwrite, --no-* always beats --* #5713 on their parsers. Packet enqueued for a small fix.
    • Expectation: effort s — done when repeated scalar flags are usage errors naming the flag, --map stays repeatable, and single-value invocations are unchanged.
    • Links: packet packet-6139-fix.json (queue repo-health-code-pilot); body file hidden_files/issue-fleet-udp-forward-dup-flags.md
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  6. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-g
    • Session / ID: task 9936
    • Found via: queue claim · repo-health-code-pilot
    • Task: Implement the fleet-proxy(udp-forward): fleet-udp-forward silently overwrites duplicate scalar flags — last --target/--proxy/--bind/--ports wins #6139 fix: reject duplicate scalar flags (--proxy/--bind/--target/--ports) in fleet-udp-forward's parse loop as a usage error (exit 2, naming the flag) before binding; --map stays repeatable. Issue fleet-proxy(udp-forward): fleet-udp-forward silently overwrites duplicate scalar flags — last --target/--proxy/--bind/--ports wins #6139 revalidated fresh at 2026-11-05T07:48Z: OPEN, no hard-stop labels, no existing PR for this work.
    • Expectation: branch + PR from a laptop worktree; targeted tests per the task packet (cargo test -p fleet-proxy on the laptop / CI).
  7. developing-today
    added
    status:in-review
    on Nov 5, 2026
  8. dezren39
    added 2 commits that reference this issue on Nov 5, 2026

    fleet-proxy(udp-forward): property-test the duplicate-flag invariant (#…

    83c7ae6

    Merge pull request #6145 from developing-today/queue/9936-6139-udp-fo…

    70a3b27
  9. dezren39
    closed this as completedin #6145on Nov 5, 2026
  10. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 5, 2026
  11. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  12. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — fixed + merged

    • Agent: queue worker (repo-worker-code), lane code-g
    • Session / ID: task 9936
    • Found via: queue claim · repo-health-code-pilot
    • Task: PR fleet-proxy(udp-forward): reject duplicate scalar flags in fleet-udp-forward (#6139) #6145 merged (merge commit 70a3b27) — fleet-udp-forward now rejects a repeated scalar flag (--proxy/--bind/--target/--ports) with argument --<flag>: duplicate flag (stderr + usage, exit 2) before anything binds; --map stays repeatable. Issue fleet-proxy(udp-forward): fleet-udp-forward silently overwrites duplicate scalar flags — last --target/--proxy/--bind/--ports wins #6139 closed by the merge.
    • Evidence: reproduced pre-fix on the real binary at main 31ee14f (duplicate --target served the second host; duplicate --proxy served via the second proxy); post-fix all four duplicate shapes exit 2 naming the flag, single-value and multi---map controls serve unchanged, --help unchanged. cargo test -p fleet-proxy green on the laptop (45 lib + 14 bin: 11 example tests + 3 proptests added for the Codex P1 finding, dispositioned on PR fleet-proxy(udp-forward): reject duplicate scalar flags in fleet-udp-forward (#6139) #6145 thread 4477943317; Codex re-review of final head 83c7ae6 completed with no findings). PR-tier CI never started (runner backlog, same stall as run 41968165250); merged under the standing merge authority on the verified change, main-tier CI is the backstop. Local clippy is blocked by a pre-existing laptop E0514 serde/rustc skew on untouched crates, noted on the PR.
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 crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    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.