openclaw/extensions/googlechat
Joel Cooper 513f3556e7 fix: enforce allowlist for explicit sends across all channels
Explicit-mode sends (agent tool calls, gateway send command) bypassed
the allowFrom allowlist on every channel adapter. An agent hallucination
or prompt injection could send messages to arbitrary recipients despite
dmPolicy: "allowlist" being configured.

Fix by:
- Adding allowlist enforcement to the default fallback in targets.ts,
  covering all channels without a custom resolveTarget (Discord, Slack,
  Matrix, MS Teams, etc.)
- Fixing WhatsApp (core + extension), Twitch, and Google Chat adapters
  to reject explicit sends to non-allowlisted targets
- Enforcing allowlist on WhatsApp group JIDs (previously unguarded)

Implicit and heartbeat modes still fall back to allowList[0] as before.

AI-assisted (Claude). Tested locally.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 14:34:19 -07:00
..
src fix: enforce allowlist for explicit sends across all channels 2026-01-29 14:34:19 -07:00
clawdbot.plugin.json feat: add beta googlechat channel 2026-01-24 23:30:45 +00:00
index.ts refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
package.json chore(release): bump versions to 2026.1.29 2026-01-29 16:48:13 +00:00