Replies: 1 comment 1 reply
-
I'm having the same problem too. Has this issue been resolved? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I have an application pod in my Istio mesh that is utilizing nginx to forward requests to an endpoint like /auth/login/ to a backend server for authentication. A couple notes about my mesh:
The Nginx config is similar to below:
As a side note, nginx does not seem to be setting the :authority header to proxy_pass and instead using the original application URL. I've tried using:
to no avail.
Within the pod, I can successfully send/curl requests to http://my-server.my.domain and I have a service entry in place allowing the traffic. However the proxy functions as expected sending requests to /auth/login to http://my-server.my.domain in another namespace without Istio.
I enabled debug level component logging on my istio-proxy container logs and see the successful curl request to http://my-server.my.domain. However I see a 502 for the proxied requests initiated by application through nginx. I get an output similar to:
This brings up a few questions:
I think I could work-around this utilizing a VirtualService to proxy requests to /auth/login instead of nginx but I'm trying to preserve the application design because it needs to run in different environments that may or may not have Istio.
Beta Was this translation helpful? Give feedback.
All reactions