Add public/channel content filtering to simple_repeater#2733
Draft
disq wants to merge 9 commits into
Draft
Conversation
Lets a repeater decrypt channels it holds the key for (incl. the built-in public channel) and drop messages matching blocked keywords or sender names before forwarding. Configured via new "filter" CLI commands and persisted to /channel_filter. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds a MESH_DEBUG line on each dropped message, plus "filter stats" and "filter stats reset" commands to view/clear the filtered counter. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Folds look-alike codepoints (fullwidth, math alphanumerics, circled/ squared letters, regional indicators, Cyrillic/Greek homoglyphs, accented Latin) to plain ASCII and strips zero-width/combining marks before matching keywords and sender names. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Feature is now fully compiled out unless built with -D WITH_CHANNEL_FILTER. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Demote to a Configuration subsection with a "(When ... compiled in)" heading, matching the GPS/Sensors/Bridge sections, and drop the explicit build-flag callout. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ross whole message Guard data[len]=0 against an over-long crafted payload (OOB store), and match keywords against the whole folded message so a blocked word can't be hidden in the self-declared sender name. Also drop the unguarded ctype.h. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Lets a repeater decrypt channels it holds the key for (incl. the built-in public channel) and drop messages matching blocked keywords or sender names before forwarding. Configured via new "filter" CLI commands and persisted to /channel_filter.
(slop warning - untested/unreviewed as of now)