Repository navigation
feat(security): warn on inert mutable allowFrom entries - #131129
Merged
Merged
Conversation
Report configured entries that cannot authorize with name matching disabled, and preview lockout counts before disabling mutable matching. Distinguish mutable aliases from exact identifiers with unproven ownership in audit text. Reuse channel ingress declarations through one SDK classifier without changing admission policy. Keep Discord audit findings redacted and exclude symbolic access-group references from mutable-identifier warnings. Refs #131099.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 27, 2026 18:59
Contributor
Author
|
Merged via squash.
|
This was referenced Aug 27, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 28, 2026
) * feat(security): warn on inert mutable allowFrom entries Report configured entries that cannot authorize with name matching disabled, and preview lockout counts before disabling mutable matching. Distinguish mutable aliases from exact identifiers with unproven ownership in audit text. Reuse channel ingress declarations through one SDK classifier without changing admission policy. Keep Discord audit findings redacted and exclude symbolic access-group references from mutable-identifier warnings. Refs openclaw#131099. * test(security): keep entry-authentication audit coverage in its lanes
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.
Closes #131099. RFC stage 5 of the sender-authentication-strength design (openclaw/rfcs#51), following the landed kernel (#123782 → d561469) and SDK contract (#123793 → ea552df).
What Problem This Solves
An
allowFromentry that only matches through a mutable-class alias (display name, tag, email-as-alias) can never authorize a sender while name matching is disabled — the shipped default — and nothing tells the operator: the entry is silently inert, the worst failure class this repo tracks. In the opposite direction, an operator who enableddangerouslyAllowNameMatchinghas no way to see how many entries would stop authorizing before turning it back off. The existing audit wording also conflates the two weak identifier classes the landed scale distinguishes.Why This Change Was Made
ChannelSecurityDmPolicygains an optionalclassifyEntryAuthentication; channels derive it in one line from their existing ingress identity via the newidentityEntryAuthenticationClassifierhelper (exported throughopenclaw/plugin-sdk/channel-ingress-runtime, +1 export and +1 callable budget with in-line justification; packaged consumer imports and calls it). The helper reuses the kernel's canonical per-field strength resolution — one resolution path, no duplicate policy.security audit(the inert warning also reachesdoctorthrough the existing seam):channels.<id>.allowFrom.mutable_entries_inert(warn, default path): "N of M entries in<path>allowFromonly match mutable identifiers … silently inert", remediation: use stable sender IDs.dangerous_name_matching_enabledinfo finding now carries the lockout preview ("N of M entries … would stop authorizing if disabled") and widened wording distinguishing mutable aliases from asserted-but-unauthenticated identifiers, naming both rejection reason codes.ingress-identity.tsowner modules so security adapters stop importing monitor/send implementations (~380 lines moved, not new logic). Teams (noresolveDmPolicy), Feishu (no mutable fields), and Twitch (no security adapter) are ineligible and unchanged.name_based_entriesfinding printed raw configured names/tags — it now reports counts by source path (net-negative fix); and symbolicaccessGroup:references were falsely classified as mutable by both the new audit and the older shared detector — the canonical parser now excludes them in both owners, with failing-before regressions.No new config, no schema change, no admission behavior change.
User Impact
openclaw security audit(andopenclaw doctor, for the inert case) now tells operators which allowlist entries silently do nothing and what the cost of disabling name matching would be — before it locks anyone out. Plugin authors get one supported helper to classify their own entries.Evidence
pnpm plugin-sdk:surface:check(exports 4348, callables 2584, exactly +1 each), fullcheck:changed(42 steps),pnpm buildwith packaged-consumer compile, plugin startup profiling for the five touched channels.