Skip to content

fleet-proxy(connect-udp): fleet-connect-udp ignores argv entirely — --help and typo'd flags start the CONNECT-UDP endpoint #6134

Closed

Description

@dezren39

fleet-proxy(connect-udp): fleet-connect-udp ignores argv entirely — --help and typo'd flags start the CONNECT-UDP endpoint

Summary

The standalone CONNECT-UDP endpoint bin fleet-connect-udp
(pkgs/fleet/crates/fleet-proxy/src/bin/fleet-connect-udp.rs, landed in
PR #6122 for #6109) never reads its arguments. main() (line 19) goes
straight to fleet_config::Config::load() (line 20), the
connect_udp_enabled() gate (line 27), and
fleet_proxy::connect_udp::run(&config) (line 35). There is no usage
text, no --help handling, and no rejection of unknown arguments.

This is the #5488 class (a --help that starts a daemon instead of
printing help) combined with the #5568 class (trailing arguments
silently ignored), on a bin that starts a network endpoint.

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-connect-udp --bin fleet-udp-forward
in pkgs/fleet. Probe config /tmp/probe-cudp/fleet.toml:
[proxy] connect_udp = true, connect_udp_listen = "127.0.0.1:39199",
passed via FLEET_CONFIG.

  • Bare: fleet proxy connect-udp on 127.0.0.1:39199 (RFC 9298, spike #6109 …) — serves until killed (timeout exit 124). Expected.
  • --help: identical output — the endpoint binds and serves until
    killed (exit 124). No usage is printed anywhere.
  • --bogus-junk: identical output — a typo'd flag silently starts
    the endpoint (exit 124).
  • --help with no opt-in config: exit 69 with the "stays dark"
    message — still no usage text.

Control, the sibling bin from the same PR: fleet-udp-forward --help
prints its usage line on stdout and exits 0;
fleet-udp-forward --bogus-junk prints unknown argument + usage and
exits 2 (EXIT_USAGE).

Why it matters

Acceptance criteria

  • fleet-connect-udp --help and -h print usage (what the bin is,
    that it takes no arguments, and that behaviour is governed by the
    loaded fleet config's [proxy] connect_udp opt-in) on stdout and
    exit 0, without loading config or binding anything.
  • Any other argument is a usage error: message naming the argument +
    usage on stderr, exit EXIT_USAGE (2), without loading config or
    binding anything.
  • Bare fleet-connect-udp behaviour is unchanged in both config
    states (opted-in: endpoint serves; not opted in: stays-dark message,
    exit 69).
  • A pinning test or scripted probe covers the three shapes above
    (help, unknown arg, bare) so the behaviour cannot regress silently;
    cargo test -p fleet-proxy stays green.

Activity

  1. 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
    source/creatorFiled by the new-issue-creator job
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  3. added
    priority/normalOrdinary priority (the default)
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  6. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    Lane A (code-a) claimed task 9933 for issue #6134 (direct execution lane). Fresh check: issue #6134 is OPEN, no hard-stop labels, no open PR. Working it directly this shift: branch, implement, PR.

  7. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    Sibling filed this run: #6139 covers the other bin from PR #6122 (fleet-udp-forward's duplicate scalar flags). The two fixes are independent — this issue is fleet-connect-udp's missing argument surface only.

  8. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    Done by lane A (code-a), task 9933: PR #6143 merged (merge commit 5be65e7) — fleet-connect-udp now classifies argv before loading config or binding: --help/-h print usage on stdout exit 0, any other argument exits 2 (EXIT_USAGE) naming it, bare behaviour unchanged in both config states. Verified on the laptop: cargo test -p fleet-proxy 46/46 (new pinning test bin_args_help_usage_error_and_bare), cargo fmt clean, real-binary probes for all shapes (help 0, bogus 2, bare-dark 69, bare-opted-in serves). Codex review on PR #6143: completed, no findings. Queue labels removed at this terminal state.

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