remove DFP filter#8655
Conversation
✅ Deploy Preview for cerulean-figolla-1f9435 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
f53b0dc to
9ebcf03
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8655 +/- ##
==========================================
- Coverage 74.35% 74.32% -0.04%
==========================================
Files 244 244
Lines 38792 38696 -96
==========================================
- Hits 28845 28761 -84
+ Misses 7950 7944 -6
+ Partials 1997 1991 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
do we need to backport this? if so, better to have a release note. |
Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
zirain
left a comment
There was a problem hiding this comment.
LGTM, it would be better to have an e2e ensure it worked as expected.
There is no special processing for the dynamic resolver host rewritten anymore, so a dedicated e2e test for this seems unnecessary for now. We can add one in the future if needed. |
|
/retest |
|
Are the envoy docs out-of-date? They imply that both filter and cluster are needed: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_proxy
Is there any implication of not using the filter and relying on the cluster to do this work, e.g. :
Also, does this work in the |
|
one note on this change: if previously downstream filters could access the upstream IP, this would no longer be the case. This can be useful in some scenarios: envoyproxy/envoy#43834. Since EG doesn't enable save_upstream_address by default, it's not likely that users relied on this behavior to access the address in extension filters. |
But this flow is still covered by an e2e, right? demonstrating that the rewrite actually happens and that it determines the host that would be looked up ? |
The doc is a bit confusing around the DFP filter vs. cluster.
The sub-clusters are created by the DFP filter, so it's required for the sub-cluster case. We can add the DFP filter for the sub-cluster path in the future if this feature is used.
Yes,
There is no e2e for the general |
Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
f0b0fb0 to
6eee2d5
Compare
a9de551 to
f849c83
Compare
f849c83 to
b347995
Compare
|
/retest |
* remove DFP filter Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> * release note Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> * add e2e test Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> * debugging Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> * debugging Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> * fix test Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> --------- Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> Signed-off-by: Jake Oliver <jake@truelayer.com>
This PR removes the DFP filter in the HCM filter chain and moves the host rewrite configuration to the route.
This works because the DFP cluster can resolve DNS asynchronously without the DFP filter.
This PR also fixes: #8353 because now the route can see the original host in the request headers.