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

ingress-nginx example #86

Open
clrxbl opened this issue Jun 23, 2024 · 1 comment
Open

ingress-nginx example #86

clrxbl opened this issue Jun 23, 2024 · 1 comment
Assignees
Labels
type: documentation This involves updating, adding or removing godoc or other documentation

Comments

@clrxbl
Copy link

clrxbl commented Jun 23, 2024

Hi.

Thanks for creating this project. While it was intended to be used for Traefik, this project seems to work well when using ingress-nginx (and presumably other ingress controllers) aswell. I think it would be beneficial to provide an example for other reverse proxies, or at least ingress-nginx as it tends to be a pretty popular ingress controller.

For ingress-nginx, an ingress can be annotated with

nginx.ingress.kubernetes.io/auth-url: "http://kani.kube-system.svc.cluster.local:3000/<AUD>"

With an invalid AUD set, it will 401 as expected. Headers can probably be forwarded aswell with an auth-snippet of some sort, but haven't looked into it yet as I don't have a usecase for it.

@joshuasing joshuasing added the type: documentation This involves updating, adding or removing godoc or other documentation label Jun 24, 2024
@joshuasing
Copy link
Member

@clrxbl Hi, thank you so much!

I wasn't aware that the Nginx ingress also supported a similar concept, as I have primarily used Traefik.
Thank you for bringing this to my attention, I will add an example for Nginx soon, and if I can figure out the header forwarding, I'll try to include an example with that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation This involves updating, adding or removing godoc or other documentation
Projects
None yet
Development

No branches or pull requests

2 participants