haproxytech / kubernetes-ingress

HAProxy Kubernetes Ingress Controller
https://www.haproxy.com/documentation/kubernetes/
Apache License 2.0
717 stars 200 forks source link

allow list for authentication #349

Open bedis opened 3 years ago

bedis commented 3 years ago

Current auth feature is configured in the frontend section of HAProxy. This is fine for most cases. That said, some people may want to allow unauthenticated browsing for some conditions (mainly source IP range for example), and doing this per ingress rule.

This could be achieved by a config-snippet in the backend, coupled to a global config snippet in the configmap:

that said, the configmap part is usually not accessible to developper when they deploy their ingress rules.

To summarize, I need 2 things:

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Mo3m3n commented 2 years ago

To summarize, I need 2 things:

a way to set userlist per ingress rule a way to set a bypass condition for the authentication rule

The basic-auth annotations are available per ingress, so this should answer the first requirement.

I have added the "enhancement" label to add to the roadmap an annotation which value can be used as a haproxy acl to bypass authentication.