feat(healing): add post-restart verification and heal outcome telemetry

This commit is contained in:
patrick committed 2026-02-10 21:55:43 -05:00
1 parent b2c489602a
commit 234224a5c6
3 files changed
+46 -2

No files matched your search

+2
View File
@@ -121,8 +121,10 @@ class FirewallAuditor:
try:
subprocess.run(["systemctl", "restart", "crowdsec-firewall-bouncer"], check=True)
logging.info("Heal: Bouncer restarted successfully.")
return True
except subprocess.CalledProcessError as e:
logging.error(f"Heal Failed: Could not restart bouncer: {e}")
return False
def reconcile(self):
truth_map = self.get_remote_lapi_truth()