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
{{ message }}
Repository navigation
problem with all routes 404 when using incorrect filters #5182
I understand that filters are not needed here and maybe they are written incorrectly, I'm just making a report that the problem in one httproute affects all httroutes in the cluster.
This is because the RouteConfiguration was rejected by envoy: Envoy rejected the last update with code 13 and message :-prefixed or host headers may not be modified
It's not a proto validation but a validation in Envoy source code, so EG can't catch it.
Activity
surenraju commentedon Feb 16, 2025
Currently, in
snapshotcache.go(line 332), when Envoy rejects an xDS update, we log it at DEBUG level:https://github.com/envoyproxy/gateway/blob/main/internal/xds/cache/snapshotcache.go#L332
We should log this as an error
s.log.Errorfinstead ofDebugf, since a failed xDS update might indicate a critical configuration issue.zhaohuabing commentedon Feb 18, 2025
@dda104 I can't reproduce the reported issue with the HTTPRoute that you pasted in EG 1.3.0. Did I miss anything?
vmcdxliii commentedon Feb 18, 2025
@zhaohuabing try create new httproutes after one incorrect. In my case they returns 404. Also try restart k8s cluster and check httproutes.
surenraju commentedon Feb 18, 2025
The issue is reproducible. You need to apply first incorrect and the correct configurations, or you can also restart the proxy pod
zhaohuabing commentedon Mar 18, 2025
This is because the RouteConfiguration was rejected by envoy:
Envoy rejected the last update with code 13 and message :-prefixed or host headers may not be modifiedIt's not a proto validation but a validation in Envoy source code, so EG can't catch it.
arkodg commentedon Mar 18, 2025
We could add a CEL validation upstream to not allow Host header to be modified via this filter and to use Url rewrite instead