Skip to content

docs(security): add safe Gmail reader setup - #116041

Merged
steipete merged 3 commits into
mainfrom
codex/docs-safe-gmail-reader
Jul 29, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/docs-safe-gmail-reader

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • document a complete restricted Gmail reader configuration before transport setup
  • make the CLI and configuration references explicit that the wizard does not create the reader or its session policy
  • correct linked multi-agent examples to the canonical keyed agent roster and current binding field

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-mdx
  • pnpm docs:check-links
  • pnpm docs:list
  • pnpm format:docs:check
  • git diff --check
  • Codex autoreview: clean

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime docker Docker and sandbox tooling size: XS maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete steipete self-assigned this Jul 29, 2026
@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. labels Jul 29, 2026
@steipete
steipete merged commit ca07207 into main Jul 29, 2026
53 of 54 checks passed
@steipete
steipete deleted the codex/docs-safe-gmail-reader branch July 29, 2026 19:07
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 3:05 PM ET / 19:05 UTC.

ClawSweeper review

What this changes

This 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 readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open for maintainer review. It is a documentation-only, security-sensitive guidance change and carries the protected maintainer label; the available context shows a focused attempt to prevent untrusted Gmail content from reaching the default agent, but a complete current-source verification of every configuration contract was not available in this read-only session.

Priority: P3
Reviewed head: a626d1db9d82d8e71ce217f6f90bbb6aad7f6e67
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused docs patch has useful safety intent and reported documentation validation, but the complete configuration-contract review remains necessary before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed 4 items PR scope: The supplied PR body and file list show only documentation files: Gmail cron/webhook setup, configuration reference, documentation map, and multi-agent sandbox examples.
Security guidance intent: The PR explicitly documents that per-message Gmail session keys isolate conversation context but do not themselves restrict tools or workspace access, and it directs untrusted inboxes to a dedicated restricted reader.
Protected review state: The supplied GitHub context includes the maintainer label and an assignment, so this item requires explicit maintainer handling rather than automated close or repair routing.
Findings None None.
Security None None.

How this fits together

Gmail 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]
Loading

Decision needed

Question Recommendation
Should this restricted Gmail-reader configuration become the repository’s recommended security baseline for untrusted inboxes, including its Docker prerequisite and model-specific example? Approve after contract check: Confirm the documented configuration fields and safety claims against current runtime behavior, then merge the focused docs guidance.

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

  • Resolve merge risk (P1) - The examples prescribe a security boundary for untrusted email; maintainers should confirm every documented agent, hook-session, sandbox, and tool-policy field against the current runtime schema before merging.
  • Complete next step (P2) - The protected maintainer label and the security-sensitive recommendation require maintainer confirmation of the supported configuration contract before merge.
Agent review details

Security

None.

PR surface

Docs +91. Total +91 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 5 125 34 +91
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 125 34 +91

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a focused documentation and operator-guidance update rather than a demonstrated runtime regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Label justifications:

  • P3: This is a focused documentation and operator-guidance update rather than a demonstrated runtime regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Evidence

What I checked:

  • PR scope: The supplied PR body and file list show only documentation files: Gmail cron/webhook setup, configuration reference, documentation map, and multi-agent sandbox examples. Public docs: docs/automation/cron-jobs.md. (docs/automation/cron-jobs.md:571, a626d1db9d82)
  • Security guidance intent: The PR explicitly documents that per-message Gmail session keys isolate conversation context but do not themselves restrict tools or workspace access, and it directs untrusted inboxes to a dedicated restricted reader. Public docs: docs/gateway/configuration-reference.md. (docs/gateway/configuration-reference.md:963, a626d1db9d82)
  • Protected review state: The supplied GitHub context includes the maintainer label and an assignment, so this item requires explicit maintainer handling rather than automated close or repair routing.
  • Available validation: The PR body reports documentation MDX, link, list, formatting, and whitespace checks; GitHub context also reports check-docs and the real-behavior-proof check as successful. (a626d1db9d82)

Likely related people:

  • steipete: Authored all three commits in the supplied PR history and assigned the PR, making this the clearest available routing candidate for the proposed Gmail safety guidance. (role: documentation and Gmail setup contributor; confidence: low; commits: 5f8ae2b03cc2, f9493fa5bca7, a626d1db9d82; files: docs/automation/cron-jobs.md, docs/cli/webhooks.md, docs/gateway/configuration-reference.md)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Verify each documented Gmail hook, agent roster, sandbox, tool-policy, and session-key field against the current schema and runtime behavior.
  • Confirm that the model and Docker-backend wording is intended as supported security guidance rather than an unnecessarily narrow prerequisite.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

vincentkoc added a commit to sunlit-deng/openclaw that referenced this pull request Jul 29, 2026
* 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
vincentkoc added a commit to masatohoshino/openclaw that referenced this pull request Jul 29, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Jul 29, 2026
* 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
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* docs(security): add safe Gmail reader setup

* docs: leave release notes to release flow

* docs: refresh documentation map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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