You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTP: add allow_obs_text configuration to HTTP/2 and HTTP/3 protocol options (#43971)
<!--
!!!ATTENTION!!!
If you are fixing *any* crash or *any* potential security issue, *do
not*
open a pull request in this repo. Please report the issue via emailing
envoy-security@googlegroups.com where the issue will be triaged
appropriately.
Thank you in advance for helping to keep Envoy secure.
!!!ATTENTION!!!
For an explanation of how to fill out the fields, please see the
relevant section
in
[PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/main/PULL_REQUESTS.md)
!!!ATTENTION!!!
Please check the [use of generative AI
policy](https://github.com/envoyproxy/envoy/blob/main/CONTRIBUTING.md?plain=1#L41).
You may use generative AI only if you fully understand the code. You
need to disclose
this usage in the PR description to ensure transparency.
-->
Commit Message: HTTP: add allow_obs_text configuration to HTTP/2 and
HTTP/3 protocol options
Additional Description: This change introduces a new configuration knob,
allow_obs_text, to the Envoy HTTP/2 and HTTP/3 protocol options to
control the validation of 'obs-text' characters (0x80-0xFF) in header
field values. By default, this option is enabled to maintain consistency
with existing Shinkansen behaviors and to avoid breaking legacy clients
that rely on these characters. The implementation updates the underlying
codec logic for both protocols to respect this setting during header
validation. Comprehensive unit tests have been added for both HTTP/2
(OgHttp2) and HTTP/3 to verify that headers containing obsolete text are
accepted or rejected as expected based on the configuration.
Risk Level: low
Testing: added unit tests
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]
---------
Signed-off-by: Ting Pan <panting@google.com>
0 commit comments