Repository navigation
fix: return 500 error for invalid filters - #7605
Merged
Merged
Conversation
zhaohuabing
marked this pull request as draft
November 26, 2025 02:59
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7605 +/- ##
=======================================
Coverage 72.34% 72.34%
=======================================
Files 232 232
Lines 34209 34238 +29
=======================================
+ Hits 24749 24771 +22
- Misses 7682 7689 +7
Partials 1778 1778 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
zhaohuabing
force-pushed
the
fix-7604
branch
2 times, most recently
from
November 26, 2025 03:24
eeb1992 to
7a3ae0a
Compare
zhaohuabing
marked this pull request as ready for review
November 26, 2025 03:46
zirain
previously approved these changes
Dec 2, 2025
Signed-off-by: Huabing Zhao <[email protected]>
zirain
enabled auto-merge (squash)
December 2, 2025 07:50
zhaohuabing
disabled auto-merge
December 2, 2025 07:54
kkk777-7
previously approved these changes
Dec 2, 2025
Member
|
LGTM, thanks! |
zhaohuabing
dismissed stale reviews from kkk777-7, zirain, and arkodg
via
December 3, 2025 00:39
8d77e2b
zirain
approved these changes
Dec 3, 2025
jukie
approved these changes
Dec 3, 2025
rudrakhp
pushed a commit
to rudrakhp/gateway
that referenced
this pull request
Apr 15, 2026
return 500 error for invalid filters Signed-off-by: Huabing Zhao <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]>
rudrakhp
added a commit
that referenced
this pull request
Apr 16, 2026
* fix: avoid metric increments on no-op delete reconcile paths (#8480) * fix: avoid metric increments on no-op delete reconcile paths Signed-off-by: Felipe Sabadini Facina <[email protected]> * Update internal/infrastructure/kubernetes/infra_resource_test.go Signed-off-by: Isaac Wilson <[email protected]> * Update internal/infrastructure/kubernetes/infra_resource_test.go Signed-off-by: Isaac Wilson <[email protected]> --------- Signed-off-by: Felipe Sabadini Facina <[email protected]> Signed-off-by: Isaac Wilson <[email protected]> Co-authored-by: Isaac Wilson <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: restore failure-path metric recording for delete and HPA reconcile (#8656) Fixes #8651 Signed-off-by: Felipe Sabadini Facina <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: helm secrets rbac for gateway namespace with watch list of namespaces (#8706) * fix: helm secrets rbac for gateway namespace with watch list of namespaces Signed-off-by: Karol Szwaj <[email protected]> * add release notes Signed-off-by: Karol Szwaj <[email protected]> * review update Signed-off-by: Karol Szwaj <[email protected]> --------- Signed-off-by: Karol Szwaj <[email protected]> Co-authored-by: Rudrakh Panigrahi <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: handle network errors in rate limit e2e tests (#8446) Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: propagate the HTTPFilter translation errors to the outer layer (#7556) * progate the HTTPFilter validation errors to the outer layer Signed-off-by: Huabing Zhao <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: return 500 error for invalid filters (#7605) return 500 error for invalid filters Signed-off-by: Huabing Zhao <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: prevent configuring requestMirror filter and directResponse/RequestRedirect filter together (#7474) * fix: prevent configuring RequestMirror and DirectResponse filters together Signed-off-by: Huabing Zhao <[email protected]> check redirect respose filter Signed-off-by: Huabing Zhao <[email protected]> * address comments Signed-off-by: Huabing Zhao <[email protected]> * fix lint Signed-off-by: Huabing Zhao <[email protected]> --------- Signed-off-by: Huabing Zhao <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix bug with grpcroute mirror filter (#8541) * fix bug with grpcroute mirror filter Signed-off-by: Adam Buran <[email protected]> * add indexers test Signed-off-by: Adam Buran <[email protected]> * add release note Signed-off-by: Adam Buran <[email protected]> --------- Signed-off-by: Adam Buran <[email protected]> Signed-off-by: Arko Dasgupta <[email protected]> Co-authored-by: Arko Dasgupta <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: normalize CRLF line endings in htpasswd basic auth secrets (#8557) Fixes #8554 Signed-off-by: stekole <[email protected]> Signed-off-by: stekole <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: status for mirror backend (#8675) Signed-off-by: kkk777-7 <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: set HTTPRoute Accepted condition as true with mixed invalid and valid rules (#7625) * set HTTPRoute Accepted condition as true with mixed invalid and valid rules Signed-off-by: Huabing Zhao <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: basic auth validation (#8053) * fix basic auth validation Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * [release/v1.6] fix gen check Signed-off-by: Rudrakh Panigrahi <[email protected]> --------- Signed-off-by: Felipe Sabadini Facina <[email protected]> Signed-off-by: Isaac Wilson <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> Signed-off-by: Karol Szwaj <[email protected]> Signed-off-by: Huabing Zhao <[email protected]> Signed-off-by: Adam Buran <[email protected]> Signed-off-by: Arko Dasgupta <[email protected]> Signed-off-by: stekole <[email protected]> Signed-off-by: stekole <[email protected]> Signed-off-by: kkk777-7 <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]> Co-authored-by: Felipe Sabadini <[email protected]> Co-authored-by: Isaac Wilson <[email protected]> Co-authored-by: Karol Szwaj <[email protected]> Co-authored-by: Huabing (Robin) Zhao <[email protected]> Co-authored-by: aburanrbx <[email protected]> Co-authored-by: Arko Dasgupta <[email protected]> Co-authored-by: stekole <[email protected]> Co-authored-by: Kota Kimura <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, EG drops route rules with invalid filters, which results in 404 response when matching requests arrive. This PR changes the behavior to generate routes with a direct 500 response for those rules instead.
The new behavior aligns with the the Gateway API GET https://gateway-api.sigs.k8s.io/geps/gep-1364/
The GEP 1364 only mentions the case of InvalidKind custom filter, but other types of invalid filters should be treated in a similar way.
fix: #7604
release note: yes