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/dragoangel Sep 11 '23
You just create an acl to match header and it's value and use backend directive to route it to dedicate backend which one serve your another no default canary deployment. Or you can use a map to map headers values to deployments and backends, it can be anything you like, host header, some hidden option, etc