HAProxy
loadbalancer.haproxy
Protects against destructive HAProxy load balancer operations like stopping the service or disabling backends via runtime API.
- 9blocking rules
- 5safe patterns
- 9High
[packs]
enabled = ["loadbalancer.haproxy"]Evaluated when a command contains haproxy, socat.
Blocking rules
Each rule ID is loadbalancer.haproxy:<name>. Use it in allowlists and [policy.rules].
Highhaproxy-config-deleteRemoving files from /etc/haproxy deletes HAProxy configuration.
Highhaproxy-hard-stophaproxy -st sends a hard stop signal, immediately terminating the load balancer.
Highhaproxy-service-stopservice haproxy stop stops the HAProxy service.
Highhaproxy-socat-disable-frontendDisabling a frontend via HAProxy runtime API stops accepting new connections.
Highhaproxy-socat-disable-serverDisabling a server via HAProxy runtime API removes it from the load balancer pool.
Highhaproxy-socat-shutdown-frontendShutting down a frontend via HAProxy runtime API terminates it immediately.
Highhaproxy-socat-shutdown-sessionsShutting down sessions via HAProxy runtime API terminates active connections.
Highhaproxy-soft-stophaproxy -sf sends a soft stop signal, terminating the load balancer gracefully.
Highhaproxy-systemctl-stopsystemctl stop haproxy stops the HAProxy service.
Safe patterns
Checked first. A command that matches one is never blocked by this pack.
haproxy-config-checkhaproxy-versionsystemctl-status-haproxyservice-status-haproxyhaproxy-socat-show