-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
External authentication causes 403 #2831
Comments
If I set the This tells me that something isnt quite right with the SSL validation/termination. |
That's fine. The call to /auth is internal to your cluster so should be http://service.namespace.svc.cluster.local:4180 |
Thanks @Stono. Following this, I encountered another issue with I will post back my working solution here for anyone with a similar setup. |
As promised heres my working example.
Also if you want to enforce SSL,
This has worked so far with Kubernetes Dashboard and few of my other applications
|
Nginx Ingress: 0.17.1
Baremetal K8: 1.11.1
Following this setup https://kubernetes.github.io/ingress-nginx/examples/auth/oauth-external-auth/README/ I have tried to setup my external authentication with
oauth2_proxy
as a proxy and google being the provider however I keep getting 403 before even reaching the proxy. Im not sure whats causing the issue at the moment.The Ingress of the application that I want to protect with oauth2,
And this is the Ingress of the
oauth2_proxy
,In the logs all I see is,
This has deviated from the example because I want to have a single point for oauth2 proxying so that I can protect multiple applications. i.e. with a single google client secret. I can authenticate fine if I navigate to
https://dev-oauth2.test.domain.com/oauth2/start
.In saying all this if I try to
curl
as below then it seems be working as expected with a302
.Nginx log shows,
Any help would be appreciated to figure this out.
The text was updated successfully, but these errors were encountered: