Skip to content

Add first-class cookie matcher for HTTP routes (align with proposed Gateway API cookie match) #42563

@zhaohuabing

Description

@zhaohuabing

Title: Add first-class cookie matcher for HTTP routes (align with proposed Gateway API cookie match)

Description:
Gateway API is proposing a structured cookie match (kubernetes-sigs/gateway-api#2891); Envoy Gateway tracks it in envoyproxy/gateway#6199.
Envoy today can matche the raw cookie header via HeaderMatcher (exact/prefix/suffix/regex/etc.), forcing brittle regex/substring parsing.

Problem:
Envoy lacks a native mechanism for matching a specific cookie key/value. This requires parsing the full Cookie header, which impacts performance and makes the semantics less clear.

Request:

Add a cookie-specific matcher in the HTTP route match:
API would likely be a new cookie_match with cookie name plus existing match types (exact/prefix/suffix/regex/present/string/range, invert).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions