Skip to content

supervisor: --envoy-arg can repeat a flag the supervisor sets itself, and every fork then fails with a parse error #1376

Closed

Description

@bpalermo

checkEnvoyArgs in agent/internal/supervisorcmd/supervisor.go rejects only --admin-address-path. A user --envoy-arg that repeats --restart-epoch, --base-id, --drain-time-s or --parent-shutdown-time-s passes validation; the pinned Envoy then refuses the repeated flag (Argument already set!) and every fork fails.

Fix: reject at startup every flag the supervisor passes itself, with an error naming the flag and the chart value that owns it. Unit test per flag.

Reported by the #1333 implementation (PRs #1366, #1370), not changed there.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

  1. added
    enhancement
    minor
    proxy
    on Oct 7, 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

    enhancementminorproxy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions