You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to HaProxy and therefore this plugin. I need some help to protect certain backends with auth-request. Let say I want to protect the subdomain v2.example.org.
From your documentation, I understand how to protect a single path for one backend.
Actually the example in the README does not explain how to protect a single path, it makes the authentication request for all requests. Are you confusing this with the /is-allowed which is the path of the authentication service?
Yes sorry, I mixed this up. For clarification is it possible to protect a single backend with authentication, without spamming the authentication backend if other resources are accessed?
Activity
TimWolla commentedon Jan 10, 2021
Actually the example in the README does not explain how to protect a single path, it makes the authentication request for all requests. Are you confusing this with the
/is-allowedwhich is the path of the authentication service?aHVzY2g commentedon Jan 10, 2021
Yes sorry, I mixed this up. For clarification is it possible to protect a single backend with authentication, without spamming the authentication backend if other resources are accessed?
TimWolla commentedon Jan 10, 2021
Sure, either put the
http-request lua.auth-requestline into the backend or add anifat the end.aHVzY2g commentedon Jan 15, 2021
All right got it working, anyone looking for examples check out https://www.authelia.com/docs/deployment/supported-proxies/haproxy.html .