Commit Graph
12 Commits
Author SHA1 Message Date
patrick c698d01c40 feat(auditor): add startup enforcement sanity check and dedupe set-mismatch warnings 2026-03-05 20:32:29 -05:00
patrick 172f5d7ced fix(auditor): fail open when configured enforcement sets do not match nft state 2026-03-05 20:23:00 -05:00
patrick bffe28485d feat(config): enforce runtime nft targets and managed sets from config.yaml 2026-03-05 20:19:31 -05:00
patrick 9b53a4c491 fix(healing): handle post-heal verify exceptions without crashing loop 2026-03-01 21:14:59 -05:00
patrick 9edce6b31d perf(healing): scan heal history from file tail instead of full read
- add tail-based HEAL line lookup to avoid O(file-size) reads in should_heal()
- keep a safe fallback full scan when no HEAL marker is found in tail window
- add regression test for large history files with recent HEAL marker
2026-03-01 21:12:55 -05:00
patrick 55cc29071e Add nft handle fallback when flushing CrowdSec sets with slash-based names 2026-02-26 14:14:20 -05:00
patrick 716468901c Harden metadata heal across nft table variants and non-fatal flush errors 2026-02-26 13:37:48 -05:00
patrick aae920fb73 fix: metadata drift false positives - corrected by normalizing nft TTL and skipping unverifiable expiry 2026-02-25 15:02:24 -05:00
patrick 0f7f03f005 Fix metadata-drift healing by flushing CrowdSec nft sets before restart
Add drift-aware heal path in FirewallAuditor to remediate metadata drift by discovering and flushing
  *-cscli sets in crowdsec/crowdsec6 tables, then restarting the bouncer.

Update execute_heal_and_verify to pass drift context to heal_with_drift when supported, keeping
  backward compatibility via heal().

Add unit tests covering metadata-drift flush+restart behavior, non-metadata restart-only behavior,
  and drift context propagation.
2026-02-25 14:59:44 -05:00
patrick 28267a0cf4 fix(auditor): heal on decision-duration drift, not just IP membership/count 2026-02-23 22:20:16 -05:00
patrick 480eea8095 refactor(agent): split orchestration into config, healing, and main modules 2026-02-10 22:11:33 -05:00
patrick 5fc5b8c114 test(agent): add coverage for drift gating and post-heal verification; remove bare except 2026-02-10 22:04:57 -05:00