Skip to content

fix(msteams): keep unresolved allowlists restrictive instead of collapsing to open - #184989

Merged
eleqtrizit merged 5 commits into
openclaw:mainfrom
eleqtrizit:1128
Oct 27, 2026
Merged

eleqtrizit merged 5 commits into
openclaw:mainfrom
eleqtrizit:1128

Conversation

@eleqtrizit

@eleqtrizit eleqtrizit commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

At monitor startup the Microsoft Teams plugin replaces the configured teams map and groupAllowFrom list with a stable-ID projection that drops mutable display names. When every configured entry was a name that did not resolve, the projection became {} or []. The route gate and the group sender gate both read an empty value as "no allowlist configured", so the restriction the operator wrote disappeared and the bot admitted senders it was meant to exclude. This change keeps a configured-but-unresolvable allowlist configured and makes it match nothing, so the gates deny. It is contained in extensions/msteams; no core change, no new config key, no default change.

Related: #99905 introduced the name-dropping projection, #115746 extended it to group conversation IDs, #112811 introduced the handler config reader.

What Problem This Solves

An operator who scopes the Teams bot with name-keyed entries (for example teams: { "Engineering": {} }, or groupAllowFrom: ["Bob Builder"]) expects unresolved names to be "kept as typed but ignored for routing" (docs/channels/msteams/access-control.md), i.e. to grant nothing. Instead the whole restriction is removed. A member or guest of the tenant who can message the bot outside the intended scope can then trigger the agent, bounded by the sender gate (see Evidence for which configurations are exposed).

What was wrong

  1. Name-keyed teams that do not resolve. projectStableMSTeamsTeamsConfig (extensions/msteams/src/resolve-allowlist.ts) drops every team key that is not *, a GUID, or a 19:...@thread id. monitor.ts keeps that projection when Graph resolution fails or finds nothing. resolveMSTeamsRouteConfig (policy.ts) computes allowlistConfigured = Object.keys(teams).length > 0, so {} means "not configured" and resolveNestedAllowlistDecision (src/channels/channel-config.ts) returns allowed.
  2. Name-only channels under a conversation-id or * team. projectStableMSTeamsChannels keeps only * and thread-id channel keys, so channels becomes {} and the inner gate reads "no channel allowlist". Graph state is irrelevant here; resolveMSTeamsTeamsConfig never looks up name channels under *.
  3. Names-only groupAllowFrom. projectStableMSTeamsGroupAllowlist returns []. effectiveGroupSenderAllowlist (src/channels/message-access/allowlist.ts) and resolveGroupAllowFromSources (src/channels/allow-from.ts) treat an empty group list as unset and substitute the DM allowFrom, which can be ["*"] with dmPolicy: "open".

Net effect: a configured restriction silently turns into either no restriction or the DM list.

Why this design

  • Fail closed at the owning boundary: the plugin's startup projection, not the shared gates, whose "empty means unset" behavior is correct for genuinely unset lists.
  • A configured list that projects to nothing is kept non-empty with a placeholder that cannot equal a real identifier or become a grant: a reserved 19:[email protected] key for teams, channels and senders. It is deliberately not an accessGroup: reference, because operators can define any access-group name; a regression test defines a same-named group and asserts it grants nothing.
  • Placeholders are dropped as soon as a real entry resolves beside them, so resolvable configurations are unchanged.
  • Genuinely unset (undefined), empty ([] / {}), and whitespace-only lists are left as they were, so the documented DM fallback for an unset groupAllowFrom still applies.
  • No config surface, no default change, no change to dangerouslyAllowNameMatching behavior.

Why this does not conflict with related PRs

PR Governed layer Relation
#99905 Name-dropping projection / conversation-read policy Kept: names still never become active identities. This change only stops the empty result from reading as "unconfigured".
#115746 Group conversation IDs in groupAllowFrom Kept: conversation IDs still pass through the projection and are not replaced by the placeholder.
#112811 Handler config reader across reloads Not touched. See "Boundary decisions requested".

This branch is based on current upstream/main; the touched files are all under extensions/msteams/src.

Evidence

Path Mode Before (base) After (this branch)
Names-only groupAllowFrom, dmPolicy: open, allowFrom: ["*"] (path c) Real Gateway + bundled Teams plugin + loopback Bot Framework connector (pnpm openclaw qa msteams, mock model, loopback-only network namespace) channel and group-chat probes answered (QA-COLLAPSE-C-CHANNEL, QA-COLLAPSE-C-GROUPCHAT); scenario fails no reply to either probe; an allowed DM liveness probe is still answered (QA-COLLAPSE-LIVE-C); scenario passes
Name-keyed teams: { Engineering: {} }, groupPolicy: open, nothing resolves (path a) same real Gateway lane channel and group-chat probes answered (QA-COLLAPSE-A-...); scenario fails no reply to either probe; DM liveness answered (QA-COLLAPSE-LIVE-A); scenario passes
teams: { "*": { channels: { Roadmap: {} } } }, groupPolicy: open (path b) same real Gateway lane channel and group-chat probes answered (QA-COLLAPSE-B-...); scenario fails no reply to either probe; DM liveness answered (QA-COLLAPSE-LIVE-B); scenario passes
Name-keyed teams, nothing resolves handler admission test unlisted channel admitted (fails) blocked: no dispatch, no conversation upsert
Name-only channels under * team handler admission test admitted (fails) blocked
Name-only channels under 19:..@thread team, probe inside the configured team handler admission test admitted (fails) blocked
Names-only groupAllowFrom with an operator-defined access group named like the old placeholder handler admission test n/a blocked: the group grants nothing (fails if the placeholder is an accessGroup: reference)
Monitor startup, Graph failure, name-only lists monitor.lifecycle.test.ts handler received groupAllowFrom: [] (fails) placeholder in the in-memory projection only; the operator's stored config is unchanged
Resolved / ID / * / unset / empty lists unit + existing suites unchanged unchanged

The three Gateway scenarios are local QA flow files (not part of this PR) that send channel and group-chat probes from an unlisted sender, wait 25s for no outbound message (no agent dispatch), then require a reply to an allowed DM so a dead pipeline cannot pass. Each was run on the base source (fails) and on this branch (passes). Revocation during preparation is not changed by this PR: the placeholder is fixed at startup, and the existing handler-time re-authorization suites pass unchanged.

Captured Gateway output

Each run: pnpm openclaw qa msteams --scenario <id> --allow-failures inside a loopback-only network namespace (unshare --user --map-root-user --net), real Gateway + bundled Teams plugin + loopback Bot Framework connector + mock model. "base" is the pre-fix resolve-allowlist.ts/monitor.ts; "fix" is this branch. Message and activity IDs are redacted to <id>; no credentials or endpoints are involved. The control run uses a stable 19:[email protected] channel ID: it behaves identically on base and fix (unlisted channel blocked, listed channel answered), i.e. existing ID-keyed settings are unchanged.

Captured suite summaries (a, b, c, ID control; base and fix)
[c/base] scenario='Startup allowlist collapse (c) names-only groupAllowFrom with open DMs' status=fail counts={'total': 1, 'passed': 0, 'failed': 1, 'skipped': 0}
  step='group probes get no reply; DM liveness does' -> fail
  details='expected no outbound messages for 25000ms, saw:\n<id>:\n<id>:<quoted messageId="qa-inbound-<id>"/> QA-COLLAPSE-C-CHANNEL\n<id>:<quoted messageId="qa-inbound-<id>"/> QA-COLLAPSE-C-GROUPCHAT'

[c/fix] scenario='Startup allowlist collapse (c) names-only groupAllowFrom with open DMs' status=pass counts={'total': 1, 'passed': 1, 'failed': 0, 'skipped': 0}
  step='group probes get no reply; DM liveness does' -> pass
  details='live=QA-COLLAPSE-LIVE-C'

[a/base] scenario='Startup allowlist collapse (a) name-keyed teams, groupPolicy open' status=fail counts={'total': 1, 'passed': 0, 'failed': 1, 'skipped': 0}
  step='group probes get no reply; DM liveness does' -> fail
  details='expected no outbound messages for 25000ms, saw:\n<id>:\n<id>:<quoted messageId="qa-inbound-<id>"/> QA-COLLAPSE-A-GROUPCHAT\n<id>:<quoted messageId="qa-inbound-<id>"/> QA-COLLAPSE-A-CHANNEL'

[a/fix] scenario='Startup allowlist collapse (a) name-keyed teams, groupPolicy open' status=pass counts={'total': 1, 'passed': 1, 'failed': 0, 'skipped': 0}
  step='group probes get no reply; DM liveness does' -> pass
  details='live=QA-COLLAPSE-LIVE-A'

[b/base] scenario='Startup allowlist collapse (b) wildcard team with name-only channels' status=fail counts={'total': 1, 'passed': 0, 'failed': 1, 'skipped': 0}
  step='group probes get no reply; DM liveness does' -> fail
  details='expected no outbound messages for 25000ms, saw:\n<id>:\n<id>:<quoted messageId="qa-inbound-<id>"/> QA-COLLAPSE-B-GROUPCHAT\n<id>:<quoted messageId="qa-inbound-<id>"/> QA-COLLAPSE-B-CHANNEL'

[b/fix] scenario='Startup allowlist collapse (b) wildcard team with name-only channels' status=pass counts={'total': 1, 'passed': 1, 'failed': 0, 'skipped': 0}
  step='group probes get no reply; DM liveness does' -> pass
  details='live=QA-COLLAPSE-LIVE-B'

[control/base] scenario='Stable-ID allowlist control (unchanged behavior)' status=pass counts={'total': 1, 'passed': 1, 'failed': 0, 'skipped': 0}
  step='unlisted channel blocked; listed channel answered' -> pass
  details='allowed=<quoted messageId="qa-inbound-<id>"/> QA-CONTROL-ALLOWED'

[control/fix] scenario='Stable-ID allowlist control (unchanged behavior)' status=pass counts={'total': 1, 'passed': 1, 'failed': 0, 'skipped': 0}
  step='unlisted channel blocked; listed channel answered' -> pass
  details='allowed=<quoted messageId="qa-inbound-<id>"/> QA-CONTROL-ALLOWED'

Latest stable release (v2026.10.7) as the pre-fix baseline

The same scenario files and the same stored settings were run against a checkout of the latest stable tag v2026.10.7 (its QA harness needed a four-line prepareFlow backport from main so the webhook URL resolves; no product code was changed). The stable-ID control passes there exactly as it does on this branch, so existing ID-keyed settings and valid ID access are unchanged by this fix. The names-only groupAllowFrom case reproduces on the stable release (probes answered) and is blocked on this branch.

Captured v2026.10.7 runs (ids redacted)
[v2026.10.7 / control (stable-ID channel allowlist)] status=pass counts={'total': 1, 'passed': 1, 'failed': 0, 'skipped': 0}
  step='unlisted channel blocked; listed channel answered' -> pass
  details='allowed=<quoted messageId="qa-inbound-<id>"/> QA-CONTROL-ALLOWED'

[v2026.10.7 / path c (names-only groupAllowFrom, open DMs)] status=fail counts={'total': 1, 'passed': 0, 'failed': 1, 'skipped': 0}
  step='group probes get no reply; DM liveness does' -> fail
  details='expected no outbound messages for 25000ms, saw:\n<id>:\n<id>:<quoted messageId="qa-inbound-<id>"/> QA-COLLAPSE-C-CHANNEL\n<id>:<quoted messageId="qa-inbound-<id>"/> QA-COLLAPSE-C-GROUPCHAT'

In-place upgrade on a clean VM

On a freshly restored clean-slate Linux VM, Node 26.12.1 and a fresh npm install -g [email protected] plus the official @openclaw/msteams 2026.10.7 plugin, I applied a stored configuration and started the Gateway on the stable release. The configuration had dmPolicy: open, allowFrom: ["*"], groupPolicy: allowlist, groupAllowFrom: ["Bob Builder"], and a teams map with one stable 19:[email protected] team (with a stable channel) next to the name key Engineering. I then stopped the Gateway and replaced the installed plugin's dist with a build of this branch's two source changes applied on top of the v2026.10.7 tree (the branch does not apply cleanly to that tag, so resolve-allowlist.ts needed a manual merge of the placeholder block; no other change), kept the stored configuration and state in place, and started the Gateway again.

core: OpenClaw 2026.10.7 (157d8c2)
msteams plugin:   "version": "2026.10.7", (dist swapped to fix build; marker files: 1)
openclaw.json sha256 before upgrade: 07fe21cb0c0accecce2298e7
openclaw.json sha256 after gateway start: 07fe21cb0c0accecce2298e7
register failures: 0
[msteams] starting provider (Gateway route /api/messages)
[gateway] ready
- Microsoft Teams default: enabled, configured, running, connected

What this shows: after the upgrade the stored configuration is byte-identical (same sha256), the Teams plugin registers without errors, the provider starts on the same route, and the channel reports running and connected with the existing settings. The VM has no Bot Framework connector, so this run does not send traffic; the allow/deny behavior is shown by the Gateway scenarios above. The plugin-only swap on a stable core is a proxy for a release upgrade, not a published release.

Data-model compatibility

No stored data, schema, config key or default changes. The placeholder exists only in the in-memory projection handed to the handler at startup; the stored configuration is never rewritten (asserted in monitor.lifecycle.test.ts and resolve-allowlist.test.ts). Existing ID-keyed, *, accessGroup: and resolved-name configurations project exactly as before (existing resolve-allowlist, lifecycle and conversation-allowlist suites pass unchanged).

Commands (Node 24.22.1): on this branch pnpm test extensions/msteams passes (16 + 91 test files); oxfmt --list-different, oxlint on the changed files, pnpm tsgo:extensions and pnpm tsgo:extensions:test pass. Against the base source the four handler admission rows, the new unit tests and the lifecycle test fail. Not run: node scripts/check-changed.mjs as a single aggregate (the host killed it); the assertion-safety ratchet was run on its own and passes.

Testing

  • New: 10 tests in resolve-allowlist.test.ts (projection, Graph-resolution path, placeholder cleanup, sender list, no config mutation), 1 in monitor.lifecycle.test.ts, 5 handler-level admission tests in monitor-handler/message-handler.authz.test.ts (including the access-group collision).
  • Unchanged and green: the full extensions/msteams suites, including the existing conversation-allowlist and policy tests.

Boundary decisions requested

  1. @steipete / Teams plugin owners: with a names-only groupAllowFrom, no group sender is now admitted until an ID is configured (previously the DM list was used). This restores the documented "only listed senders" behavior; please confirm that tightening is acceptable.
  2. On main, the handler reader (monitor-handler/config.ts) serves the raw configuration after an unrelated config reload. A name-keyed team that sits beside a * entry then falls through to the * entry. That is a separate mechanism from this fix and is not changed here; please decide whether it should be handled in a follow-up.

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: msteams Channel integration: msteams size: M labels Oct 26, 2026
@eleqtrizit eleqtrizit self-assigned this Oct 26, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Preserves unresolved Teams allowlists as restrictive in-memory projections instead of allowing unrestricted routes or DM-list fallback.

Example: groupAllowFrom is ["Bob Builder"], name resolution fails, and the DM allowlist is ["*"].

  • Before: The empty projected group list inherits the DM wildcard and admits unlisted group senders.
  • After: The projected group list remains configured and rejects those senders.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused authorization repair with production-boundary evidence and no actionable findings; draft workflow and skipped CI remain landing prerequisites.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): Supplied output exercises the changed startup projection through the real Gateway, Teams plugin, and loopback Connector: unlisted channel/group-chat probes stop producing replies while allowed DM and stable-ID controls still reply. Existing handler checks retain dispatch-time revocation enforcement. Evidence uses a mock model and loopback transport, not a live Microsoft tenant.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An unresolved Teams restriction can silently admit people or conversations outside the operator's intended scope.
Reason: Restores documented authorization behavior in the existing plugin owner; the host identifies maintainer-authored direction, so no renewed product approval is needed.

Merge readiness

✅ Ready for maintainer review

This PR fixes a current Teams authorization defect, and no actionable patch defect remains; keep it open through its draft and CI workflow.

Priority: P1
Reviewed head: db62171ce2f7e7df7327c63d54f3bb95a66add18

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Teams plugin projects operator settings at startup, then supplies sender and team/channel policies to inbound admission and dispatch authorization.

flowchart TD
  A[Stored Teams settings] --> B[Startup ID projection]
  C[Graph resolution] --> B
  B --> D[Account scoped runtime config]
  E[Incoming Teams activity] --> F[Sender and route authorization]
  D --> F
  F --> G[Agent dispatch or rejection]
Loading

Technical review

Best possible solution:

Keep configuredness in the existing Teams projection while preserving stable IDs, explicit wildcards, genuinely empty-list fallback, and stored settings.

Do we have a high-confidence way to reproduce the issue?

Current-main projection and policy source establish the fail-open path, corroborated by supplied pre-fix Gateway and v2026.10.7 traces; this review executed no target code.

Is this the best way to solve the issue?

The fix belongs at the Teams projection boundary because shared gates correctly treat genuinely unset lists as unset, and the new marker preserves that distinction without changing public configuration.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 50b9e88fd3c3.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Josh Avant: Raw commit fbd330b adds extensions/msteams/src/resolve-allowlist.ts:221 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fbd330b7aa4a; files: extensions/msteams/src/resolve-allowlist.ts)
  • Jimmy Puckett: Raw commit 19ac119 adds extensions/msteams/src/monitor-handler/config.ts:9 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 19ac11902cdc; files: extensions/msteams/src/monitor-handler/config.ts)

PR surface

Source +79, Tests +204. Total +283 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 87 8 +79
Tests 3 205 1 +204
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 292 9 +283

Review metrics

Metric Value Why it matters
Production versus test LOC Production +87/-8; tests +205/-1 Growth covers configuredness preservation, Graph-result cleanup, admission rejection, and stored-config isolation within existing owners.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P1: Current Teams startup can silently widen operator-configured authorization and admit unlisted group senders.
  • merge-risk: 🚨 compatibility: Names-only unresolved settings now deny instead of inheriting broader access; the maintainer-authored direction explicitly adopts this restoration of the documented restriction.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (7 earlier review cycles)
  • reviewed 2026-10-26T20:40:57.486Z sha 7ca341b :: needs real behavior proof before merge. :: [P2] Keep the deny-all marker outside the access-group namespace
  • reviewed 2026-10-26T21:41:50.873Z sha eb3976a :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-26T22:00:37.756Z sha 1574f10 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-26T22:07:20.443Z sha 1574f10 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-26T22:14:25.179Z sha db62171 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-26T22:21:11.793Z sha db62171 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-26T23:32:46.331Z sha db62171 :: needs maintainer review before merge. :: none

Reviewed October 26, 2026, 8:07 PM ET / October 27, 2026, 00:07 UTC (Revision 8).

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@eleqtrizit

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 27, 2026
@eleqtrizit
eleqtrizit marked this pull request as ready for review October 27, 2026 00:34
@eleqtrizit

Copy link
Copy Markdown
Contributor Author

Merge record

Summary: Fixes a Microsoft Teams authorization defect where a configured teams, channel, or groupAllowFrom allowlist made only of unresolvable names collapsed to an empty value that the route and sender gates read as "no allowlist". Unresolved allowlists now stay configured and match nothing, so they deny instead of admitting senders outside the intended scope. The change is confined to extensions/msteams, with no new config keys or default changes.

Decision Reason for Merge: Merged because the fix has real Gateway proof (names-only groupAllowFrom, name-keyed teams, and a name-only channel under a * team each fail on the pre-fix source and pass on this branch), CI and all required statuses are green on the final head, and ClawSweeper rated it ready for maintainer review with no findings. The merge instruction came from the maintainer.

Compatibility Checks Done: Stable-ID allowlist control scenario behaves identically before and after; a stored config is byte-identical across an in-place plugin upgrade on a clean VM running v2026.10.7, and the Teams provider starts and connects; full extensions/msteams suites (107 files), oxfmt, oxlint and both extension typechecks pass. One intentional tightening: a names-only groupAllowFrom no longer falls back to the DM allowlist.

@eleqtrizit
eleqtrizit merged commit 9c7f90a into openclaw:main Oct 27, 2026
93 checks passed
@eleqtrizit
eleqtrizit deleted the 1128 branch October 27, 2026 04:02
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…psing to open (openclaw#184989)

* fix(msteams): keep unresolved allowlists restrictive instead of collapsing to open

* fix(msteams): use a non-access-group deny marker for unresolved sender allowlists

* test(msteams): drop marker-representation test covered by handler regression

* test(msteams): drop projection-plus-route cases duplicated by handler admission table
RomneyDa added a commit that referenced this pull request Oct 28, 2026
…psing to open (#184989)

* fix(msteams): keep unresolved allowlists restrictive instead of collapsing to open

* fix(msteams): use a non-access-group deny marker for unresolved sender allowlists

* test(msteams): drop marker-representation test covered by handler regression

* test(msteams): drop projection-plus-route cases duplicated by handler admission table

(cherry picked from commit 9c7f90a)

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit aa6e9233bd452fd725848d72bc571c1b283137d9)
RomneyDa added a commit that referenced this pull request Oct 28, 2026
…psing to open (#184989)

* fix(msteams): keep unresolved allowlists restrictive instead of collapsing to open

* fix(msteams): use a non-access-group deny marker for unresolved sender allowlists

* test(msteams): drop marker-representation test covered by handler regression

* test(msteams): drop projection-plus-route cases duplicated by handler admission table

Beta.5 baseline adaptation: Retain the native beta.5 owners, fixtures and public contracts; add focused regression controls and bounded fixture extraction; apply checkout formatting.

(cherry picked from commit 9c7f90a)

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 813bffb454620f5222c62360c80d95eaa2935685)
RomneyDa added a commit that referenced this pull request Oct 29, 2026
…to extended stable (#187286)

* fix(msteams): keep unresolved allowlists restrictive instead of collapsing to open (#184989)

* fix(msteams): keep unresolved allowlists restrictive instead of collapsing to open

* fix(msteams): use a non-access-group deny marker for unresolved sender allowlists

* test(msteams): drop marker-representation test covered by handler regression

* test(msteams): drop projection-plus-route cases duplicated by handler admission table

(cherry picked from commit 9c7f90a)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 25265e4b23843946108fe75d6823cd4e3e64cfd7)

* refactor: keep Teams allowlist sentinel private (#185484)

The Microsoft Teams fail-closed allowlist sentinel now remains module-private while preserving its exact restrictive projection and lifecycle coverage.

(cherry picked from commit 59b1ddd)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 52a8609397572a37ae78544c11118704f8711f12)

* fix(msteams): backport restrictive unresolved allowlists to extended stable

OpenClaw-Publication: 0457935b-4ff7-4cd5-bf04-de5a5e46e7f3

* fix: satisfy focused backport lint requirements (#187286)

Co-authored-by: RomneyDa <[email protected]>

* test: resolve Teams config type from runtime API root

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: Agustin Rivera <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Shakker <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: msteams Channel integration: msteams merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant