secubox-deb/packages/secubox-waf/api
CyberMind-FR e5f0d22dc6
Some checks are pending
License Headers / check (push) Waiting to run
fix(waf-api): crowdsec overlay must not crash the warm refresh (ref #744)
_overlay_crowdsec_stats received the already-decorated stats (top_countries as a
list of {country,count} dicts, not a dict) and did sorted(key=lambda x:-x[1]) →
TypeError on a str → aborted _refresh_warm_caches, freezing the warm cache and
zeroing the WAF dashboard's per-IP/vhost/tracked-attacker panels. Accept the
list shape, coerce counts to int, and wrap the overlay call defensively so a
CrowdSec hiccup can never wipe the WAF stats.
2026-06-26 16:18:58 +02:00
..
__init__.py
main.py fix(waf-api): crowdsec overlay must not crash the warm refresh (ref #744) 2026-06-26 16:18:58 +02:00