Repository navigation
docs(security): add safe Gmail reader setup - #116041
Conversation
|
Merged via squash.
|
|
Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 3:05 PM ET / 19:05 UTC. ClawSweeper reviewWhat this changesThis PR adds a complete restricted Gmail-reader setup, warns that the Gmail setup wizard only configures transport, and refreshes linked multi-agent configuration examples to current field names. Merge readinessKeep this PR open for maintainer review. It is a documentation-only, security-sensitive guidance change and carries the protected Priority: P3 Review scores
Verification
How this fits togetherGmail Pub/Sub delivers inbound mail to OpenClaw webhook mappings, which select an agent and session key before an agent run begins. The new guidance aims to route untrusted email to a dedicated sandboxed reader instead of allowing the default agent’s workspace and tools to handle it. flowchart TD
A[Gmail inbox] --> B[Gmail Pub/Sub transport]
B --> C[OpenClaw webhook]
C --> D[Hook mapping and session policy]
D --> E[Restricted mail reader agent]
E --> F[Sandbox and minimal tools]
F --> G[Safe email summary outcome]
Decision needed
Why: This is a security-oriented operator workflow and the protected maintainer label requires an explicit owner decision on the recommended product guidance rather than automated disposition. Before merge
Agent review detailsSecurityNone. PR surfaceDocs +91. Total +91 across 5 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one end-to-end, schema-verified Gmail reader example that makes the default-agent fallback and the required sandbox, tool, and session-key controls unambiguous to operators. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes documentation rather than proposing a runtime bug fix. The relevant review task is verifying that the documented Gmail, hook, and agent-policy path matches current behavior. Is this the best way to solve the issue? Unclear: the end-to-end restricted-reader approach directly addresses the stated unsafe-default-agent path, but the full current runtime contract for every example field still needs maintainer/source verification before calling it the best supported setup. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 6beaff450e6e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
* origin/main: fix(ui): explain unavailable MCP tool catalogs (openclaw#115994) fix(skills): run experience review outside released request roots (openclaw#116040) docs(security): add safe Gmail reader setup (openclaw#116041) chore: refresh browser gateway runtime (openclaw#116043) test: isolate gateway sequence lifecycle coverage docs: note gateway reconnect sequence fix test: cover gateway sequence reset on restart test: cover gateway sequence reset on reconnect fix: reset gateway event sequence on reconnect
* origin/main: (151 commits) feat(plugins): allow per-turn tool narrowing in prompt hooks (openclaw#114151) docs(hooks): mark pairing hook observation-only (openclaw#116055) docs(control-ui): document composer capability menu (openclaw#115858) fix(build): bound declaration memory use (openclaw#116021) fix: Slack replies recover after gateway startup replay (openclaw#115991) fix(azure-speech): keep valid voices from malformed catalogs (openclaw#115067) fix(agents): prevent model runtime startup timeout (openclaw#116039) fix(ui): explain unavailable MCP tool catalogs (openclaw#115994) fix(skills): run experience review outside released request roots (openclaw#116040) docs(security): add safe Gmail reader setup (openclaw#116041) chore: refresh browser gateway runtime (openclaw#116043) test: isolate gateway sequence lifecycle coverage docs: note gateway reconnect sequence fix test: cover gateway sequence reset on restart test: cover gateway sequence reset on reconnect fix: reset gateway event sequence on reconnect fix(codex): avoid transcript mirror snapshot churn (openclaw#115070) fix(test): stop cross-file state leaks in media suites (openclaw#116027) feat(hooks): add persistent hook session mode (openclaw#75918) fix(memory): return early for blank searches (openclaw#116034) ...
* origin/main: (39 commits) feat(apple): media renditions, Now Playing, video upload (#116051) feat(android): media renditions, MediaSession, video upload (#116037) feat(cli): run agent exec against the ambient config, composed in memory (#116038) fix #95351: [Feature]: Generic JSONL line-parsing hook for CliBackendPlugin (native tool-card support beyond claude-stream-json) (#95386) feat(plugins): allow per-turn tool narrowing in prompt hooks (#114151) docs(hooks): mark pairing hook observation-only (#116055) docs(control-ui): document composer capability menu (#115858) fix(build): bound declaration memory use (#116021) fix: Slack replies recover after gateway startup replay (#115991) fix(azure-speech): keep valid voices from malformed catalogs (#115067) fix(agents): prevent model runtime startup timeout (#116039) fix(ui): explain unavailable MCP tool catalogs (#115994) fix(skills): run experience review outside released request roots (#116040) docs(security): add safe Gmail reader setup (#116041) chore: refresh browser gateway runtime (#116043) test: isolate gateway sequence lifecycle coverage docs: note gateway reconnect sequence fix test: cover gateway sequence reset on restart test: cover gateway sequence reset on reconnect fix: reset gateway event sequence on reconnect ...
* docs(security): add safe Gmail reader setup * docs: leave release notes to release flow * docs: refresh documentation map
Summary
Why
The existing docs warned that Gmail's per-message session does not restrict tools or workspace access, but did not provide an end-to-end safe configuration. A reader following the recommended transport wizard could still route untrusted mail to the default agent.
Proof
pnpm docs:check-mdxpnpm docs:check-linkspnpm docs:listpnpm format:docs:checkgit diff --check