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

Envoy forward invalid header http2 request to upstream server #31529

Closed
dezenxi opened this issue Dec 27, 2023 · 4 comments
Closed

Envoy forward invalid header http2 request to upstream server #31529

dezenxi opened this issue Dec 27, 2023 · 4 comments
Labels
area/http bug stale stalebot believes this issue/PR has not been touched recently

Comments

@dezenxi
Copy link

dezenxi commented Dec 27, 2023

Description:
As I know, the PR #23267/ #23266 intended to keep compatibility on legacy test and system.
However, it still does not follow to standard RFC9113

Moreover, according to https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2.6
Intermediaries that process HTTP requests or responses (i.e., any
intermediary not acting as a tunnel) MUST NOT forward a malformed
request or response.

So should envoy reject the invalid/malformed http2 request by default? or at least envoy should have a parameter/flag which allows turn on/off of http2 validation?

@dezenxi dezenxi added the triage Issue requires triage label Dec 27, 2023
@soulxu
Copy link
Member

soulxu commented Dec 27, 2023

I guess the UHV is going to help here.
#10646

But I don't think it fixed the case you talk about

cc @yanavlasov

@soulxu soulxu added area/http bug and removed triage Issue requires triage labels Dec 27, 2023
@dezenxi
Copy link
Author

dezenxi commented Dec 27, 2023

Hi @soulxu ,
I still see the lines of fixed code in latest main
https://github.com/envoyproxy/envoy/blob/2f8e1a36ed808d760d6f791cdfc8f8cd568a1ad7/source/common/http/http2/codec_impl.cc#L1801C1-L1804C81

Seems @yanavlasov commit did not touch that part.

Regards,
Duong

Copy link

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Jan 26, 2024
Copy link

github-actions bot commented Feb 2, 2024

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/http bug stale stalebot believes this issue/PR has not been touched recently
Projects
None yet
Development

No branches or pull requests

2 participants