Skip to content

Let thv proxy know the transport of the server it fronts #7460

Backlog

Description

@rdimitrov

Problem

thv proxy builds its transparent proxy with an empty transport type, because it does not know what kind of server is behind it. The method gate and the event-stream check in pkg/transport/proxy/transparent therefore treat it as streamable HTTP:

  • DELETE is forwarded. A legacy HTTP+SSE workload under thv run refuses it with 405.
  • An event stream answering a POST is let through. A legacy HTTP+SSE workload under thv run refuses it with 502.

When thv proxy fronts a legacy SSE server, it doesn't get those checks.

Proposal

Add a --transport flag (sse or streamable-http) to thv proxy and pass it to NewTransparentProxy, so the same per-transport checks apply. Keep the empty value as the default for compatibility, and document that --transport sse turns on the legacy SSE checks.

Follow-up to GHSA-frcx-r7g4-25m6, suggested by ChrisJBurns in review.

Activity

  1. added
    enhancement
    cli
    on Dec 2, 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

    clienhancementproxytransport

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions