feat: add support for ResponseHeaderModifier Filter#717
feat: add support for ResponseHeaderModifier Filter#717arkodg merged 2 commits intoenvoyproxy:mainfrom
Conversation
|
wow that was fast @Xunzhuo :) |
|
worth noting theres an existing upstream conformance test for this filter that is currently broken so maybe hold off on enabling it, being fixed in kubernetes-sigs/gateway-api#1520 |
|
Thanks @arkodg and @sunjayBhatia, this PR is WIP, I will set @AliceProxy as a reviewer after it is ready:) |
3a1ed0c to
6b4d7a6
Compare
e537ca1 to
baf4c49
Compare
Codecov Report
@@ Coverage Diff @@
## main #717 +/- ##
==========================================
+ Coverage 61.12% 61.89% +0.77%
==========================================
Files 46 46
Lines 5674 5850 +176
==========================================
+ Hits 3468 3621 +153
- Misses 1978 1996 +18
- Partials 228 233 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
fe333a3 to
8b61fcb
Compare
8b61fcb to
ace87cd
Compare
|
Hey @AliceProxy, this one is mostly ready, just some blockers from GWAPI v0.6.0 release. PTAL when you have some time : ) I have applied latest crds of GWAPI to run the conformance test of ResponseHeaderModifier Filter locally, and it passed : ) I added a doc to explain how to use ResponseHeaderModifier: https://github.com/envoyproxy/gateway/blob/ace87cd7d307e6fc3371e291a94224fe8ffe9895/docs/latest/user/http-response-headers.md And cc @skriss @youngnick @arkodg @danehans. |
ha amazing ! recommended performing the GWAPI bump in a separate PR |
|
this PR is blocked until #716 is completed |
89e779d to
4610578
Compare
Signed-off-by: bitliu <bitliu@tencent.com>
72b4f27 to
2e6be16
Compare
| ) | ||
| } | ||
| case v1beta1.HTTPRouteFilterResponseHeaderModifier: | ||
| // Make sure the header modifier config actually exists |
There was a problem hiding this comment.
can this code be moved into a function so it can be reused by request headers as well ?
There was a problem hiding this comment.
I suggest keeping this for now, and raise another pr to refactor the processing http routes. Not only the response header modifier, but also other filters could be moved to a func.
There was a problem hiding this comment.
sounds good, can you please raise a issue to track this
|
hey @Xunzhuo the PR looks good, thanks for also enabling the conformance tests ! |
Signed-off-by: bitliu <bitliu@tencent.com>

Resolves: #657
Signed-off-by: bitliu bitliu@tencent.com