Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A41 update: Call out precise HeaderMatcher.invert_match semantics #270

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

ejona86
Copy link
Member

@ejona86 ejona86 commented Oct 21, 2021

The proper behavior is subtle and easy to assume incorrectly. This
caused a bug in Go (grpc/grpc-go#4896) and
would be easy for other implementations to assume incorrectly.

As determined by Envoy's behavior:
https://github.com/envoyproxy/envoy/blob/7d3e444d757696c15a4020b1d2d8ba5cb7f12501/source/common/http/header_utility.cc#L140-L146

CC @YifeiZhuang, @zasweq, @ashithasantosh, @yashykt


This got brought up recently in grpc/grpc#27754, where it was pointed out MetadataMatcher.invert behaves differently. MetadataMatcher.invert was added after this gRFC, so I'm not yet calling out its behavior. But I did see that Go's behavior didn't match the necessary behavior, so let's at least take a baby step and define the behavior of HeaderMatcher.

The proper behavior is subtle and easy to assume incorrectly. This
caused a bug in Go (grpc/grpc-go#4896) and
would be easy for other implementations to assume incorrectly.

As determined by Envoy's behavior:
https://github.com/envoyproxy/envoy/blob/7d3e444d757696c15a4020b1d2d8ba5cb7f12501/source/common/http/header_utility.cc#L140-L146
@ejona86 ejona86 requested a review from markdroth October 21, 2021 21:49
@ejona86 ejona86 changed the title A41: Call out precise HeaderMatcher.invert_match semantics A41 update: Call out precise HeaderMatcher.invert_match semantics Nov 16, 2021
@ejona86
Copy link
Member Author

ejona86 commented Jun 6, 2022

@markdroth, friendly ping

Copy link
Member

@markdroth markdroth left a comment

Choose a reason for hiding this comment

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

Thanks for the ping! This had slipped off my radar somehow.

@ejona86 ejona86 merged commit c83f0cb into grpc:master Jun 6, 2022
@ejona86 ejona86 deleted the header-invert branch June 6, 2022 23:16
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.

2 participants