Skip to content
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

help request: whether apisix supports changing :authority in the grpc protocol #7573

Closed
zuiyangqingzhou opened this issue Jul 29, 2022 · 5 comments · Fixed by #7939
Closed

Comments

@zuiyangqingzhou
Copy link
Contributor

Description

The requested link looks like this: GRPC -> apisix -> istio

At present, I need to change :authority in apisix layer and forward it to istio, istio does different work according to different :authority

Environment

  • APISIX version (run apisix version):
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@tokers
Copy link
Contributor

tokers commented Jul 31, 2022

Change the pseudo :authority should be same to change the host header. Try to use proxy-rewrite plugin.

@tokers
Copy link
Contributor

tokers commented Jul 31, 2022

Or just using the upstream_host field in Upstream object.

@zuiyangqingzhou
Copy link
Contributor Author

Change the pseudo :authority should be same to change the host header. Try to use proxy-rewrite plugin.

proxy-rewrite plugin does not work,the following is the OpenResty documentation

image

@zuiyangqingzhou
Copy link
Contributor Author

Or just using the upstream_host field in Upstream object.

This should only change the host, not the :authority ?

@tokers
Copy link
Contributor

tokers commented Aug 1, 2022

Or just using the upstream_host field in Upstream object.

This should only change the host, not the :authority ?

: authority should be identical with host, just try host.

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 a pull request may close this issue.

2 participants