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

Support headers with underscore #3047

Closed
arkodg opened this issue Mar 28, 2024 · 6 comments
Closed

Support headers with underscore #3047

arkodg opened this issue Mar 28, 2024 · 6 comments
Labels

Comments

@arkodg
Copy link
Contributor

arkodg commented Mar 28, 2024

Description:

Describe the desired behavior, what scenario it enables and how it
would be used.

Rejected by default in Envoy Gateway to align with best practices https://www.envoyproxy.io/docs/envoy/latest/configuration/best_practices/edge

An opt in field to enable/allow this would be great
https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/protocol.proto#enum-config-core-v3-httpprotocoloptions-headerswithunderscoresaction

[optional Relevant Links:]

Any extra documentation required to understand the issue.

@arkodg arkodg added the triage label Mar 28, 2024
@arkodg
Copy link
Contributor Author

arkodg commented Mar 28, 2024

https://gateway.envoyproxy.io/v1.0.0/api/extension_types/#headersettings can be a good home for this field

@guydc
Copy link
Contributor

guydc commented Mar 28, 2024

+1 for general transparency reasons. Is there a concrete use case that you're aware of?

@arkodg
Copy link
Contributor Author

arkodg commented Mar 28, 2024

@ardikabs
Copy link
Contributor

can i work on this, @arkodg ? for context, I have encountered a use case in a legacy system with ingress Nginx that relying to underscore headers, and to address it, I made modifications to the xDS using an Envoy gateway extension service.

@arkodg
Copy link
Contributor Author

arkodg commented Mar 29, 2024

looks like David beat you to it :)
#3052

@arkodg arkodg closed this as completed Mar 29, 2024
@davidalger
Copy link
Contributor

Oh nice, hadn't seen this opened when I implemented the knob. Glad I could help someone else out with the addition!

We had path_normalization_failed show up in response_code_details for requests coming from a handful of customer API integrations after putting EG into production and had temporarily solved it with an XDS patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants