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
Describe the bug
Gateway API header validation is defined here
NKG validates header names using this rule, which is permissive and disallow values that make NGINX fail to reload.
However, NGINX when processing request headers, applies much stricter validation rules - only allows alpha-number chars and -. See this comment #717 (comment) Note: in NGINX, you can also allow undescores in headers, but we don't support that in NKG.
When NGINX encounter such headers, it drops them printing in the error log a message like below:
Describe the bug
Gateway API header validation is defined here
NKG validates header names using this rule, which is permissive and disallow values that make NGINX fail to reload.
However, NGINX when processing request headers, applies much stricter validation rules - only allows alpha-number chars and -. See this comment #717 (comment) Note: in NGINX, you can also allow undescores in headers, but we don't support that in NKG.
When NGINX encounter such headers, it drops them printing in the error log a message like below:
So the routing rules with invalid headers will not work as expected
To Reproduce
Steps to reproduce the behavior:
This request is not routed as expected (to v2), because NGINX will drop the header
version%!
Expected behavior
Make NKG reject invalid from NGINX perspective header names so that the error is visible in the HTTPRoute status.
Your environment
Additional context
Add any other context about the problem here. Any log files you want to share.
The text was updated successfully, but these errors were encountered: