Traefik
loadbalancer.traefik
Protects against destructive Traefik load balancer operations like stopping containers, deleting config, or API deletions.
- 9blocking rules
- 6safe patterns
- 5Critical
- 4High
[packs]
enabled = ["loadbalancer.traefik"]Evaluated when a command contains traefik, ingressroute.
Blocking rules
Each rule ID is loadbalancer.traefik:<name>. Use it in allowlists and [policy.rules].
Criticaltraefik-compose-downdocker-compose down on Traefik stops and removes the load balancer.
Explanation
Running docker-compose down stops and removes Traefik containers, networks, and optionally volumes. All traffic routing stops and any non-persisted state is lost. To stop without removing: docker-compose stop traefik To restart cleanly: docker-compose restart traefik
Criticaltraefik-config-deleteRemoving Traefik config files disrupts load balancer configuration.
Explanation
Deleting Traefik configuration files removes entrypoint definitions, middleware chains, TLS settings, and provider configurations. Traefik will fail to start or lose routing rules on the next reload. Back up config first: cp traefik.yml traefik.yml.backup Validate config before changes: traefik healthcheck
Criticaltraefik-docker-rmRemoving the Traefik container destroys the load balancer.
Explanation
Removing the Traefik container deletes it entirely, including any runtime state, Let's Encrypt certificates stored in the container, and dynamic configuration. The container must be recreated from scratch. Stop without removing: docker stop traefik Back up certificates first if stored in container volume.
Criticaltraefik-docker-stopStopping the Traefik container halts all traffic routing.
Explanation
Stopping or killing the Traefik container immediately halts all HTTP/HTTPS traffic routing. Every service behind this load balancer becomes unreachable until Traefik is restarted. Check container status first: docker inspect traefik View logs for issues: docker logs traefik
Criticaltraefik-kubectl-delete-podDeleting Traefik pods/deployments disrupts traffic routing.
Explanation
Deleting Traefik pods or deployments removes the load balancer from the cluster. If managed by a Deployment, pods will be recreated but with downtime. Deleting the Deployment itself stops all traffic routing until it is redeployed. Check pod status: kubectl get pods -l app=traefik Restart pods without deleting: kubectl rollout restart deployment traefik
Hightraefik-api-deleteDELETE operations against Traefik API can remove routing configuration.
Explanation
Sending DELETE requests to the Traefik API removes routers, services, or middleware from the running configuration. Depending on the provider, these changes may be permanent or reverted on restart. Use GET to inspect before deleting: curl -X GET http://traefik:8080/api/overview
Hightraefik-kubectl-delete-ingressrouteDeleting IngressRoute CRDs removes Traefik routing rules.
Explanation
IngressRoute custom resources define how Traefik routes traffic to backend services. Deleting them removes those routing rules, making the associated services unreachable through the load balancer. List current routes first: kubectl get ingressroute Describe a route before deleting: kubectl describe ingressroute <name>
Hightraefik-service-stopservice traefik stop stops the Traefik service.
Explanation
Stopping Traefik via the legacy service command terminates the load balancer. All traffic routing stops until the service is manually restarted. Check status first: service traefik status Prefer systemctl on systemd systems: systemctl status traefik
Hightraefik-systemctl-stopsystemctl stop traefik stops the Traefik service.
Explanation
Stopping the Traefik systemd service shuts down the load balancer process. All HTTP/HTTPS traffic routing ceases until the service is restarted. Check status first: systemctl status traefik To restart instead: systemctl restart traefik
Safe patterns
Checked first. A command that matches one is never blocked by this pack.
traefik-versiontraefik-healthchecktraefik-api-gettraefik-api-readdocker-traefik-inspectkubectl-traefik-get