Skip to content

HTTPRouteRequestMirror: Should request body be mirrored? #5140

Description

@BorysekOndrej

What would you like to be added:

  • Clarify whether HTTPRouteRequestMirror should mirror the complete HTTP request (headers + body) or only headers
  • Update conformance tests to explicitly verify request body mirroring behavior (either as part of HTTPRouteRequestMirror or as part of a new feature)
  • Update HTTPRouteRequestMirror documentation to clarify the expected behavior

Why this is needed:

Current conformance tests only verify HTTP header mirroring, creating ambiguity about request body handling. This leads to inconsistent implementations - for example, AgentGateway complies with current tests while only mirroring headers, not the body.

This is problematic for blue-green deployments (or prod&stage) that test POST/PUT endpoints, which require the complete request (including body) to be mirrored for meaningful validation.


Kudos to @elivlo for originally identifying this undefined behavior.

Activity

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

    area/conformance-testIssues or PRs related to Conformance tests.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions