feat(relay): automatic storm/replay quarantine with auto-release#84
Open
iceice400 wants to merge 2 commits into
Open
feat(relay): automatic storm/replay quarantine with auto-release#84iceice400 wants to merge 2 commits into
iceice400 wants to merge 2 commits into
Conversation
Extend RelayConfig and PUT /api/config/relay with blocklist, priority_list, and dedup_ttl_seconds. RelayManager applies filters with hot reload; priority nodes bypass burst gate. Configuration Advanced tab adds Relay filters card.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
relay.storm_guard— detects identicalpacket_idbursts or high per-node packet rates in a rolling window and temporarily blocks relay TX (feed unchanged)GET /api/relay/quarantine,POST .../release,POST .../blocklist(promote to permanent blocklist + hot-reload)Risks / notes
rate_threshold_per_minute— tune for your mesh densityquarantine_duration_secondsCONFIGURATION.mdstorm_quarantinedonlyDependency
Stacks on PR #71 (relay filter controls). Merge #71 first, then rebase this branch onto
mainif needed.Test plan
python -m unittest tests.test_storm_guard tests.test_relay_filters -v(14 pass, 4 skipped — jwt)relay.storm_guard.enabled: trueon test Pi; trigger replay storm from fast TX nodestorm_quarantinedrejections