Skip to content

[P2] Preserve configured custom authentication headers for WebSockets #15

Open

Description

@brendandburns

Upstream: kubernetes-client#2510
Priority: P2 (authentication compatibility)

The sync WebSocket helper only forwards the conventional authorization header from generated request headers. Deployments using a custom authentication header configured through auth settings can make REST calls but fail WebSocket authentication because that header is discarded.

Trace the configured authentication header through request preparation and WebSocket connection setup. Preserve intended authentication headers without blindly forwarding inappropriate HTTP transport/upgrade headers or logging credentials.

Acceptance criteria:

  • Cover a nonstandard authentication header name and normal Authorization behavior.
  • Preserve subprotocol negotiation and existing proxy behavior.
  • Use focused tests that inspect handshake headers without real credentials.

Activity

  1. added
    bug
    on Nov 17, 2026
  2. brendandburns commented on Nov 19, 2026

    @brendandburns
    OwnerAuthor

    Clarification to the original assignment: this task's designated agent/base branch is agent/p2-issue-15. Raise/target the PR against that branch, not master; the existing draft PR has been retargeted accordingly. Keep the requested commit order: first a test-only commit demonstrating the issue, then a separate fix commit only if reproduced. If it does not reproduce, leave the evidence/test commit and explain why no fix is appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions