Repository navigation
fix: prevent configuring requestMirror filter and directResponse/RequestRedirect filter together - #7474
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7474 +/- ##
==========================================
- Coverage 72.42% 72.32% -0.10%
==========================================
Files 234 234
Lines 34538 34550 +12
==========================================
- Hits 25013 24988 -25
- Misses 7737 7768 +31
- Partials 1788 1794 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9d8cf8c to
532a1f2
Compare
532a1f2 to
f7a0e10
Compare
07b6933 to
1983322
Compare
cd6cef5 to
66471dc
Compare
|
/retest |
| name: gateway-1 | ||
| sectionName: http | ||
| rules: | ||
| - matches: |
There was a problem hiding this comment.
can we add a mixed rule case, where one rule is valid and one isnt, to make sure the valid rule is not impacted
There was a problem hiding this comment.
According to the Gateway API specific, The HTTPRouteAccepted condition should be set to false with IncompatibleFilters reason when there are incompatible filters present on a route rule.
And EG skips the HTTPRoutes with Accepted status as False, which is reasonable as the entire HTTPRoute has been rejected.
gateway/internal/gatewayapi/route.go
Lines 147 to 149 in 36a23a6
There was a problem hiding this comment.
Checked the Gateway API spec again, it seems that we should set Accepted as true as long as at least one rule is valid and implemented, even if some other rules in the same HTTPRoute are invalid.
// A Route MUST be considered "Accepted" if at least one of the Route's
// rules is implemented by the Gateway.
Changing this behavior would require a global update and could affect other cases as well. We'd better handle it in a separate PR. If we agree on this, I can raise a PR to address it first.
There was a problem hiding this comment.
yeah can we tackle this as part of #7545 and then start adding more fail fast cases
3248085 to
88321e2
Compare
|
worth adding a release note around breaking change, something like will no longer work |
I might be missing somthing, but this PR doesn't touch the code for responseHeaderModifier validation logic. There is already a release note for the breaking change introduced in this PR: |
…ether Signed-off-by: Huabing Zhao <[email protected]> check redirect respose filter Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
a211d3c to
7abab91
Compare
…estRedirect filter together (envoyproxy#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: Matt Miller <[email protected]>
…estRedirect filter together (envoyproxy#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: 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]>
Fixes #7473
Release Notes: Yes