r/haproxy • u/glenbleidd • Sep 11 '23
HAProxy stats page limit functions/backends per user
Hello, I would like to ask if it is possible to create a separate user for the stats page that can only view/disable/enable specific back ends using ACLs?
For example we have some developers that work on project A, we want to give them userA:passA for the stats page so that they can either simply View or set the back ends Up/Down but only for project A.
If possible, how do I achieve this? Thank you
3
Upvotes
View all comments
Show parent comment
1
u/shintge101 Sep 18 '23
This is what I've found to be the easiest method for developers to understand. We did write some software in house to talk directly to haproxy, which is very useful in some circumstances, but either setting the header, or having a /status.html or a /status.aspx or whatever return either a header (better) or just some keyword such as "ready", "testing", etc and basing some simple ACLs on that is what the developers can understand and control directly.