nginxinc / kubernetes-ingress

NGINX and NGINX Plus Ingress Controllers for Kubernetes
https://docs.nginx.com/nginx-ingress-controller
Apache License 2.0
4.67k stars 1.97k forks source link

SSO in ingress nginx with Github not working as expected #6468

Closed nguyenphu123 closed 1 month ago

nguyenphu123 commented 1 month ago

I am using this example to set up SSO for my ingress controller: ingress-nginx/docs/examples/auth/oauth-external-auth/oauth2-proxy.yaml at main · kubernetes/ingress-nginx · GitHub and I am facing two issues: If I used the same hostname for both ingresses, one ingress will lose all IPs. If I switch to a different hostname, the SSO work but I can still access the service even when I am not logged in.

I tried with two public hosts on cloudflare but can still access the service with or without login. My system is an on-premise which is running on metallb ARP mode. Thanks in advanced.

github-actions[bot] commented 1 month ago

Hi @nguyenphu123 thanks for reporting!

Be sure to check out the docs and the Contributing Guidelines while you wait for a human to take a look at this :slightly_smiling_face:

Cheers!

vepatel commented 1 month ago

hi @nguyenphu123, looks like you're using k8s community Ingress Controller not Nginx Ingress Controller (this project), please open an issue in https://github.com/kubernetes/ingress-nginx/ or feel free to give a try to this one.