-
Notifications
You must be signed in to change notification settings - Fork 5.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
fix: rewrite Host header in dex reverse proxy #6183
Conversation
Signed-off-by: Alexey Khalyavka <[email protected]>
Signed-off-by: Alexey Khalyavka <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @akhalyavka !
I'm still seeing the issue in ArgoCD 2.4.11. Was this fix released? |
@alexef me too. I'm still seeing this issue on ArgoCD v2.4.14 |
+1 to this. |
I'm still seeing this issue in v2.4.12 |
I still face the issue in version 2.5.7 |
@ankitcharolia Hello, I have the same issue (I actually have an Nginx load balancer that listens on port 80 and proxies the connection to https://localhost:8080, where argocd-server resides), but I don't know what exactly to rename. All three port of argocd-dex-server are TCP already. Could you help me please? |
@NadgobKhan If you still waiting for the reply, You need to change the port name name from
to
This is in FYI: It is a workaround, |
@akhalyavka I Think this ticket needs to be opened again, the issue still exists, please check the previous messages Thanks in advance. |
Seeing this issue still. Renaming the port to |
With Related: |
Sorry for coming back to this so late. I must have screwed up my testing, it seems like there is at least one more place in the codebase where the header needs to be rewritten. I'll try to fix it next week. |
Still seeing this issue in v2.8.0 after this #13500 was merged in |
Fixes #3975
In Istio, HTTP traffic is routed to a cluster based on Host header. Dex reverse proxy does not rewrite Host header, so traffic does not get routed to
argocd-dex-server
cluster and no cluster-level configuration (e.g. mTLS) is applied. Because of this, request to dex-server fails in environments where strict mTLS is enabled or where outbound traffic policy is set toREGISTRY_ONLY
.Signed-off-by: Alexey Khalyavka [email protected]
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: