Skip to content

matching: add support for matching on HTTP trailers - #14895

Merged
snowp merged 8 commits into
envoyproxy:mainfrom
snowp:matching-trailers
Mar 12, 2021
Merged

snowp merged 8 commits into
envoyproxy:mainfrom
snowp:matching-trailers

Conversation

@snowp

@snowp snowp commented Feb 1, 2021

Copy link
Copy Markdown
Contributor

Adds support for matching on HTTP request and response trailers.

Refactors the matching classes into a Http::Matching namespace to de-clutter the FM.

Fixes a bug around skipping filter iteration where we would not
skip encoding trailers even if the skip_filter_ flag was set.

Signed-off-by: Snow Pettersen [email protected]

Risk Level: Medium, FM changes that should only touch matching flows
Testing: UTs
Docs Changes: Proto docs
Release Notes: n/a

Adds support for matching on HTTP request and response trailers.

Also fixes a bug around skipping filter iteration where we would not
skip encoding trailers even if the skip_filter_ flag was set.

Signed-off-by: Snow Pettersen <[email protected]>
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
API shepherd assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #14895 was opened by snowp.

see: more, trace.

// [#comment:TODO(snowp): Link to unified matching docs.]
message HttpRequestTrailerMatchInput {
// The request trailer to match on.
string header_name = 1;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add header name PGV constraint? (same below)

Snow Pettersen added 3 commits February 19, 2021 17:41
Signed-off-by: Snow Pettersen <[email protected]>
Signed-off-by: Snow Pettersen <[email protected]>
Snow Pettersen added 3 commits March 8, 2021 15:52
Signed-off-by: Snow Pettersen <[email protected]>
Signed-off-by: Snow Pettersen <[email protected]>
Signed-off-by: Snow Pettersen <[email protected]>
@snowp

snowp commented Mar 11, 2021

Copy link
Copy Markdown
Contributor Author

This is ready for review now

@mattklein123 mattklein123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with small doc comment, thanks.

/wait

message HttpRequestHeaderMatchInput {
// The request header to match on.
string header_name = 1;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

del newline

Signed-off-by: Snow Pettersen <[email protected]>
@snowp
snowp merged commit 40964cc into envoyproxy:main Mar 12, 2021
aunu53 pushed a commit to aunu53/envoy that referenced this pull request Mar 19, 2021
Adds support for matching on HTTP request and response trailers.

Also fixes a bug around skipping filter iteration where we would not
skip encoding trailers even if the skip_filter_ flag was set.

Signed-off-by: Snow Pettersen <[email protected]>
Signed-off-by: Auni Ahsan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants