-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Skip alpn rewrite if alpnOverride filter metadata is false #4783
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
Conversation
😊 Welcome @ksubrmnn! This is either your first contribution to the Istio proxy repo, or it's been You can learn more about the Istio working groups, code of conduct, and contributing guidelines Thanks for contributing! Courtesy of your friendly welcome wagon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conceptually lgtm but I am not an expert on this code so I won't/can't approve
cc @kyessenov
@@ -55,6 +55,24 @@ Http::Protocol AlpnFilterConfig::getHttpProtocol( | |||
} | |||
|
|||
Http::FilterHeadersStatus AlpnFilter::decodeHeaders(Http::RequestHeaderMap&, bool) { | |||
auto upstream_info = decoder_callbacks_->streamInfo().upstreamInfo(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: const?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, can you add a test?
asan is a flake, you can ignore stackdriver test failures |
Part of istio/istio#40680 |
Signed-off-by: Kalya Subramanian <kasubra@microsoft.com>
/test test-asan |
1 similar comment
/test test-asan |
What this PR does / why we need it:
Skips alpn header rewrite if alpnOverride filter metadata is false. This metadata is set by Istio when TLS mode is simple.
Works with istio/istio#44918
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Partially solves istio/istio#40680
Special notes for your reviewer:
Please read the RFC for the design details
Can I get a pointer for where/how to add a test?