Skip to content
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

OpenID #874

Closed
eicnix opened this issue Jun 16, 2017 · 7 comments
Closed

OpenID #874

eicnix opened this issue Jun 16, 2017 · 7 comments

Comments

@eicnix
Copy link

eicnix commented Jun 16, 2017

Are there any plans to add OpenID support in the nginx ingress controller like: https://github.com/pingidentity/lua-resty-openidc ?

@aledbf
Copy link
Member

aledbf commented Jun 16, 2017

No. That is out of the scope of the nginx ingress controller.

@aledbf aledbf closed this as completed Jun 16, 2017
@aledbf
Copy link
Member

aledbf commented Jun 16, 2017

You can use a custom nginx configured with that module and try to use the external auth example https://github.com/kubernetes/ingress/tree/master/examples/external-auth/nginx as reference to see if it is possible to make it work like the oauth2 proxy

@eicnix
Copy link
Author

eicnix commented Jun 16, 2017

Ok. Thanks for the info.

@styk-tv
Copy link

styk-tv commented Aug 23, 2018

@aledbf @eicnix wouldn't it make sense to make this available at the ingress decorator level? essentially plugin would check with server like keycloak if the jwt token is valid, and then based on group membership it would be able to allow or deny access to unprotected kube services. this would allow for having a single ingress grid with mapping of very many individual container protected by nginx oidc plugin in various group membership configurations all configured with decorators. swagger openapi does that perfectly https://swagger.io/docs/specification/authentication/openid-connect-discovery/ but no-one clued into making that into an ingress controller yet.

@bcmedeiros
Copy link

You can use a custom nginx configured with that module and try to use the external auth example https://github.com/kubernetes/ingress/tree/master/examples/external-auth/nginx as reference to see if it is possible to make it work like the oauth2 proxy

@aledbf link is broken. Do you know where is the relevant documentation now?

It's really sad that ingress-nginx won't have support for Oidc, even if just enabling the necessary plugins and letting us configure it via config snippet.

@godofdream
Copy link

New Link of the documentation is:
https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/auth/external-auth

@ElvinEfendi
Copy link
Member

With the new ingress-nginx plugin system you can achieve this yourself. In https://www.elvinefendi.com/2019/11/22/ingress-nginx-openidc-plugin.html I describe how to use the plugin system to add OpenID Connect support to ingress-nginx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants