Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

adleong
Copy link
Member

@adleong adleong commented Jun 30, 2023

The responseHeaderModifier filter is an Extended level feature:

https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io%2fv1beta1.HTTPRouteFilter

We add this filter to the outbound proxy-api.

@@ -125,6 +125,7 @@ message HttpRoute {
io.linkerd.proxy.http_route.HttpFailureInjector failure_injector = 1;
io.linkerd.proxy.http_route.RequestHeaderModifier request_header_modifier = 2;
io.linkerd.proxy.http_route.RequestRedirect redirect = 3;
io.linkerd.proxy.http_route.RequestHeaderModifier response_header_modifier = 4;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really appropriate to use the RequestHeaderModifier type here when handling response headers? Are we absolutely sure these types will remain the same? What is the cost of introducing a distinct type?

@adleong adleong merged commit f1598b4 into main Jul 5, 2023
@adleong adleong deleted the response-header-modifier branch July 5, 2023 22:41
adleong added a commit to linkerd/linkerd2-proxy that referenced this pull request Jul 19, 2023
Add support for the response header modifier, which was added to the proxy API in linkerd/linkerd2-proxy-api#251

Signed-off-by: Alex Leong <[email protected]>
hawkw added a commit to linkerd/linkerd2 that referenced this pull request Jul 26, 2023
Add support for the response header modifier, which was added to the proxy API in linkerd/linkerd2-proxy-api#251

Signed-off-by: Alex Leong <[email protected]>

---

* Add suport for response header filter (linkerd/linkerd2-proxy#2439)

Signed-off-by: Eliza Weisman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants