Commit Graph
37 Commits
Author SHA1 Message Date
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
patrick 461512f20a feat(config): wire runtime settings from env/config with sane defaults 2026-02-10 22:01:17 -05:00
patrick 6dac06c117 docs(readme): sync architecture and runtime flow with current agent behavior 2026-02-10 21:57:11 -05:00
patrick 234224a5c6 feat(healing): add post-restart verification and heal outcome telemetry 2026-02-10 21:55:43 -05:00
patrick b2c489602a fix(paths): switch agent log and state defaults 2026-02-10 21:53:41 -05:00
patrick e342d83a70 fix(reconcile): gate heal flapping by drift fingerprint instead of kernel count 2026-02-10 21:48:50 -05:00
patrick 3d7c1b3f2a fix(auditor): support flat and nested cscli decision JSON parsing 2026-02-10 21:45:37 -05:00
patrick 82352110a4 fix: incorrect decision pulling from CrowdSec locally 2026-01-25 22:49:19 -05:00
patrick d91cfc7e1f fix: file dir edit for state_file after merge with other branch 2026-01-26 03:33:01 +00:00
patrick 6e98117126 fix: add cscli decision list check for LAPI threat-agent 2026-01-26 03:30:42 +00:00
patrick 6f180753f2 fix: file dir update 2026-01-26 03:24:07 +00:00
patrick f0a70273d3 fix: quick node name update 2026-01-26 03:22:02 +00:00
patrick 42c25c145e fix: finalize merge with agent-node branch 2026-01-26 03:14:46 +00:00
patrick 9977a0d8cf fix: add *.log* to .gitignore 2026-01-26 03:12:21 +00:00
patrick b5722d2013 update: merge branches to integrate TTL awareness and drift detection 2026-01-26 03:11:05 +00:00
patrick 5990dddf5a Merge branch 'agent-node' 2026-01-26 03:10:21 +00:00
patrick 14c5ac758e feat: add TTL-aware drift detection and stabilize healing 2026-01-25 21:32:02 -05:00
patrick cc7bb36e97 update: inclusion of history to gitignore 2026-01-23 21:24:21 +00:00
patrick 19d983c36f update: remove state history file 2026-01-23 21:23:29 +00:00
patrick c23f2b7a47 fix: dual-stack ipv6 audit and cleanup unused lapi function 2026-01-23 13:29:23 -05:00
patrick b08e4bec29 feat: implement dual-stack IPv4/IPv6 auditing and updated logs 2026-01-23 13:18:55 -05:00
patrick 884860ab17 update: add SERVER_NAME to .env.example 2026-01-23 11:42:44 -05:00
patrick f7e7b8f100 feat: add node name to .env 2026-01-23 11:36:21 -05:00
patrick 4e3ac06c1c feat: add .env.example template for deployment 2026-01-23 11:25:54 -05:00
patrick b48dabed85 fix: remove errant line, not used 2026-01-23 11:20:07 -05:00
patrick 4446b5c3d8 docs: README cleanup 2026-01-23 11:01:53 -05:00
patrick 672e821738 feat: implement self-healing auditor with remote LAPI sync 2026-01-23 10:58:35 -05:00
patrick 68b8125279 docs: README cleanup 2026-01-23 04:04:37 +00:00
patrick 63a47d4c95 fix: incorrect state file (wrong dir) 2026-01-22 22:58:09 -05:00
patrick 848a29543d initial commit: Threat Engine Agent 2026-01-22 20:22:00 -05:00