-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add back rewrite authority in destination headers section #34181
Comments
Still relevant |
Just confirming, it does seem like this is still an issue. We are unable to rewrite authority via the actual rewrite block or setting the request header on a virtualservice. |
seems to work in 1.17, can you show the config you are using |
@howardjohn I work with @jwineinger and can provide some examples and context. We are trying to use a ServiceEntry to create a short one-word alias for a destination service. But the destination will only accept requests when the host header is set to the cluster FQDN. So we want to use a VirtualService to transform the short alias to the FQDN before the request reaches the destination. Here's a minimum proof-of-concept that demonstrates the issue we're having followed by example output from a couple of commands. In the PoC here I'm running an httpbin container as the destination service so we can easily see the request headers.
In this second command, I would expect the host header to be rewritten to the destination FQDN, but it is not:
Maybe we have something misconfigured in our global config? I tested this with Istio 1.17.1. In the VirtualService, I've also tried setting the destination to the full FQDN instead of the alias, but that made no difference. |
This is possible now that we have envoyproxy/envoy#16775. Need to be careful to only set this on newer envoys.
The text was updated successfully, but these errors were encountered: