cool-waitress-85601
11/20/2025, 2:24 PM502 bad gateway when my oidc provider callsback on flyte at /callback . flyteadmin is running and ingress is setup correctly. What could be wrong?ancient-wolf-19325
11/20/2025, 2:24 PM502 bad gateway on the /callback endpoint during OIDC authentication is often caused by a misconfiguration in the ingress routing or a mismatch between the OIDC redirect URI and the ingress/service setup. Ensure that your ingress routes /callback (and /callback/*) to the correct flyteadmin service and port, typically port 80 for HTTP traffic. Also, verify that the OIDC client’s redirect URI exactly matches the public URL exposed by your ingress for `/callback`—any mismatch will cause the OIDC provider to fail the callback, resulting in a 502 error. See the ingress examples in deployment/eks/flyte_helm_controlplane_generated.yaml and deployment/gcp/flyte_helm_controlplane_generated.yaml.
If you are using Istio or another service mesh, ensure that the VirtualService or Gateway also routes /callback to flyteadmin as shown in flytekit-identity-aware-proxy/README.md. Double-check that TLS termination and backend protocols are set up correctly, as protocol mismatches can also cause 502 errors.
Would you like a step-by-step checklist to debug this further?
Sources:
- flytekit-identity-aware-proxy/README.md
- deployment/eks/flyte_helm_controlplane_generated.yaml
- deployment/gcp/flyte_helm_controlplane_generated.yaml 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.cool-waitress-85601
11/20/2025, 4:58 PMkubectl edit -n nginx-ingress cm nginx-config
data:
proxy-buffering: "on"
proxy-buffers: 4 "512k"
proxy-buffer-size: "256k"ancient-wolf-19325
11/20/2025, 4:58 PMproxy-buffering, proxy-buffers, or proxy-buffer-size. If you are encountering this issue, it may be due to large headers (such as big cookies or tokens) being sent by Flyte or your OIDC provider, and increasing these buffer sizes in the NGINX config—as you described—can help mitigate the problem. If you can provide more details about your OIDC token size or any custom authentication setup, that may help further refine the solution. If this doesn't help, please reach out to the Flyte support team for further assistance. 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.