Nodes were stuck in DESYNC_DETECTED with missing=1 extra=1 and the same fingerprint every time. On zephyrus the cause is a cscli RANGE_ESCALATION decision for 195.178.110.0/24. crowdsec-blacklists-cscli has only the timeout flag (no interval), so nft keeps just 195.178.110.0 as a single host. Each heal restarted the bouncer, which inserted the same address again, so the heal never held and the flap guard kept suppressing repeats. The /24 itself is not blocked.
Changes
auditor: when a missing LAPI range's network address is in the kernel, match the two up. The range goes into unenforceable_ranges with its own warning and stays out of the missing/extra counts and the fingerprint, so it no longer triggers a heal that can't work. A /32 or /128 stored as a plain address counts as in sync.
auditor:Desync: log lines now list missing_values / extra_values (up to 10, then "+N more").
reporter: new unenforceable_range_count field. A node that's otherwise in sync reports DEGRADED instead of HEALTHY.
main / healing: pass the count through to the state file, including after a heal.
Testing
54 unit tests pass, including new ones for: a range alone, a range alongside real drift, a range whose network address is also banned on its own, /32 and /128 entries, the new log values, and the DEGRADED status.
Ran the patched auditor against live zephyrus state. Result: in_sync with unenforceable_ranges=['195.178.110.0/24'].
Notes
Anything reading the state file that only expects HEALTHY or DESYNC_DETECTED will need to handle DEGRADED.
The /24 is still not blocked. That needs a fix on the enforcement side: individual IP bans, or interval-capable sets.
## Problem
Nodes were stuck in `DESYNC_DETECTED` with `missing=1 extra=1` and the same fingerprint every time. On zephyrus the cause is a cscli `RANGE_ESCALATION` decision for `195.178.110.0/24`. `crowdsec-blacklists-cscli` has only the `timeout` flag (no `interval`), so nft keeps just `195.178.110.0` as a single host. Each heal restarted the bouncer, which inserted the same address again, so the heal never held and the flap guard kept suppressing repeats. The /24 itself is **not** blocked.
## Changes
- **auditor:** when a missing LAPI range's network address is in the kernel, match the two up. The range goes into `unenforceable_ranges` with its own warning and stays out of the missing/extra counts and the fingerprint, so it no longer triggers a heal that can't work. A `/32` or `/128` stored as a plain address counts as in sync.
- **auditor:** `Desync:` log lines now list `missing_values` / `extra_values` (up to 10, then "+N more").
- **reporter:** new `unenforceable_range_count` field. A node that's otherwise in sync reports `DEGRADED` instead of `HEALTHY`.
- **main / healing:** pass the count through to the state file, including after a heal.
## Testing
- 54 unit tests pass, including new ones for: a range alone, a range alongside real drift, a range whose network address is also banned on its own, `/32` and `/128` entries, the new log values, and the `DEGRADED` status.
- Ran the patched auditor against live zephyrus state. Result: `in_sync` with `unenforceable_ranges=['195.178.110.0/24']`.
## Notes
- Anything reading the state file that only expects `HEALTHY` or `DESYNC_DETECTED` will need to handle `DEGRADED`.
- The /24 is still not blocked. That needs a fix on the enforcement side: individual IP bans, or interval-capable sets.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
A LAPI range decision (e.g. 195.178.110.0/24) inserted into an nft set
without the interval flag is stored as its bare network address. The
string diff saw that as one missing and one extra entry, and every heal
re-added the same address, so nodes stuck in DESYNC_DETECTED with the
flap guard suppressing repeat heals.
Pair such ranges with their network address, report them as
unenforceable_ranges with a dedicated warning, and keep them out of the
drift counts and fingerprint. The reporter records
unenforceable_range_count and shows DEGRADED for a node that is
otherwise in sync. Desync log lines now name the missing and extra
values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
patrick
merged commit 88d3c57ab0 into main2026-10-23 13:44:58 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
Nodes were stuck in
DESYNC_DETECTEDwithmissing=1 extra=1and the same fingerprint every time. On zephyrus the cause is a cscliRANGE_ESCALATIONdecision for195.178.110.0/24.crowdsec-blacklists-csclihas only thetimeoutflag (nointerval), so nft keeps just195.178.110.0as a single host. Each heal restarted the bouncer, which inserted the same address again, so the heal never held and the flap guard kept suppressing repeats. The /24 itself is not blocked.Changes
unenforceable_rangeswith its own warning and stays out of the missing/extra counts and the fingerprint, so it no longer triggers a heal that can't work. A/32or/128stored as a plain address counts as in sync.Desync:log lines now listmissing_values/extra_values(up to 10, then "+N more").unenforceable_range_countfield. A node that's otherwise in sync reportsDEGRADEDinstead ofHEALTHY.Testing
/32and/128entries, the new log values, and theDEGRADEDstatus.in_syncwithunenforceable_ranges=['195.178.110.0/24'].Notes
HEALTHYorDESYNC_DETECTEDwill need to handleDEGRADED.🤖 Generated with Claude Code