-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
HTTP codec auto may incorrectly select http/2 #8229
Comments
Basically, we need to modify this: https://github.com/envoyproxy/envoy/blob/master/source/common/http/conn_manager_utility.cc#L34 |
zuercher
added a commit
to zuercher/envoy
that referenced
this issue
Sep 13, 2019
Risk Level: low Testing: added test case Docs Changes: n/a Release Notes: n/a Fixes: envoyproxy#8229 Signed-off-by: Stephan Zuercher <[email protected]>
zuercher
added a commit
that referenced
this issue
Sep 18, 2019
http: only accept HTTP client magic at the start of buffer Risk Level: low Testing: added test case Docs Changes: n/a Release Notes: updated Fixes: #8229 Signed-off-by: Stephan Zuercher <[email protected]>
danzh2010
pushed a commit
to danzh2010/envoy
that referenced
this issue
Sep 24, 2019
…y#8232) http: only accept HTTP client magic at the start of buffer Risk Level: low Testing: added test case Docs Changes: n/a Release Notes: updated Fixes: envoyproxy#8229 Signed-off-by: Stephan Zuercher <[email protected]>
danzh2010
pushed a commit
to danzh2010/envoy
that referenced
this issue
Oct 4, 2019
…y#8232) http: only accept HTTP client magic at the start of buffer Risk Level: low Testing: added test case Docs Changes: n/a Release Notes: updated Fixes: envoyproxy#8229 Signed-off-by: Stephan Zuercher <[email protected]>
danzh2010
pushed a commit
to danzh2010/envoy
that referenced
this issue
Oct 4, 2019
…y#8232) http: only accept HTTP client magic at the start of buffer Risk Level: low Testing: added test case Docs Changes: n/a Release Notes: updated Fixes: envoyproxy#8229 Signed-off-by: Stephan Zuercher <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When the HTTP connection manager codec is set to type AUTO, it searches the first buffer on the connection for the string
PRI * HTTP/2
. If that string occurs anywhere in the buffer, Envoy attempts to negotiate HTTP/2 and fails. If the string appears in an HTTP header or request body it can trigger HTTP/2 incorrectly.Repro steps:
Start envoy with the config below and issue a request containing the string:
Log reports:
Config:
The text was updated successfully, but these errors were encountered: