Repository navigation
Conversation
|
Codex review: found issues before merge. Reviewed August 3, 2026, 4:57 AM ET / 08:57 UTC. ClawSweeper reviewWhat this changesThe PR removes the retired Merge readinessThis documentation-only PR is still needed because current main still advertises the retired browser SSRF key, but the proposed replacement incorrectly says Priority: P2 Review scores
Verification
How this fits togetherBrowser configuration supplies SSRF exceptions before OpenClaw navigates browser-controlled requests to private or special-use destinations. The canonical operator setting, flowchart LR
A[Operator browser config] --> B[Strict config schema]
B --> C[Browser SSRF policy]
C --> D[Hostname exception check]
D --> E[Browser navigation]
F[Gateway security docs] --> A
Before merge
Findings
Agent review detailsSecurityNeeds attention: The docs-only patch introduces a security-relevant discrepancy between the advertised SSRF exception syntax and the browser policy enforced at runtime. PR surfaceDocs -2. Total -2 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Land a docs-only correction that removes the retired key while describing Do we have a high-confidence way to reproduce the issue? Yes. Source establishes the result: the browser policy checks Is this the best way to solve the issue? No. Removing the retired key is correct, but describing its replacement as wildcard-capable contradicts the current schema help and runtime check; exact host/IP wording is the narrowest maintainable solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2923ee40c48e. LabelsLabel justifications:
EvidenceSecurity concerns:
What 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
HistoryReview history (3 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper automerge |
|
🦞🧹
Draft PRs stay fix-only until GitHub marks them ready for review. Pause with Automerge progress:
|
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
|
Closing as superseded on Thanks for flagging and fixing this @AAliKKhan! #121336 also added a CI gate that schema-validates docs config examples, so retired keys like this one now fail CI automatically. |
What Problem This Solves
The browser SSRF policy docs in
docs/gateway/security/index.mdreferencehostnameAllowlistas an active config key, but it was renamed toallowedHostnames.Why This Change Was Made
browser.ssrfPolicy.hostnameAllowlistis listed as a dead config key indead-config-keys.test.ts:51. The zod schema atzod-schema.root-shape.ts:149only acceptsallowedHostnames. Doctor strips the old key.Evidence
src/config/dead-config-keys.test.ts:51:"browser.ssrfPolicy.hostnameAllowlist"src/config/zod-schema.root-shape.ts:149:allowedHostnames: z.array(z.string()).optional()src/commands/doctor/shared/legacy-config-migrations.runtime.retired-media.ts: strips hostnameAllowlist