Repository navigation
Require auth for sandbox browser CDP relay [AI] - #81002
Conversation
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: no. high-confidence live reproduction yet. Source inspection on current main shows the relay relies on source-range filtering, but there is no before/after Docker proof showing unauthorized CDP access before the patch and rejection after it. Real behavior proof Next step before merge Security Review detailsBest possible solution: Land a relay-auth fix only after live Docker sandbox verification proves unauthenticated CDP HTTP/WS access is rejected and authenticated bridge CDP operations still work, while keeping explicit Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction yet. Source inspection on current main shows the relay relies on source-range filtering, but there is no before/after Docker proof showing unauthorized CDP access before the patch and rejection after it. Is this the best way to solve the issue? Unclear as merge-ready. A per-container relay token is a plausible narrow fix, but the best path is to prove the HTTP and WebSocket CDP relay behavior in a real sandbox container before maintainer approval. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against c9ec1dea716f. |
|
Not applicable to this automation stage; changelog/release-note and external real behavior proof requirements are handled outside auto-pr stages. Quoted comment from @clawsweeper:
|
* fix: require auth for sandbox browser cdp relay * addressing review-skill * addressing review-skill * addressing review-skill * addressing codex review * addressing claude review * docs: add changelog entry for PR merge
* fix: require auth for sandbox browser cdp relay * addressing review-skill * addressing review-skill * addressing review-skill * addressing codex review * addressing claude review * docs: add changelog entry for PR merge
* fix: require auth for sandbox browser cdp relay * addressing review-skill * addressing review-skill * addressing review-skill * addressing codex review * addressing claude review * docs: add changelog entry for PR merge
Summary
cdpSourceRangesupport as an additional filter remain in place.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
bash -n scripts/sandbox-browser-entrypoint.sh; embedded relay Python block compiled withcompile(..., "exec").Root Cause (if applicable)
Regression Test Plan (if applicable)
src/agents/sandbox/browser.create.test.ts,extensions/browser/src/browser/cdp.helpers.test.ts.OPENCLAW_BROWSER_CDP_AUTH_TOKEN, the bridge uses an authenticated CDP URL, gateway-derived source ranges are not auto-injected, existing containers without relay auth are recreated, and URL credentials become request auth headers without being passed to fetch URLs.User-visible / Behavior Changes
Sandbox browser containers without the relay auth environment are recreated. The default sandbox browser CDP relay now requires an internal credential. Explicit
cdpSourceRangeremains supported as an additional relay filter, but OpenClaw no longer injects a Docker-gateway-derived source range by default.Diagram (if applicable)
Security Impact (required)
Yes, explain risk + mitigation: the sandbox browser container now receives a generated relay token via environment and the bridge embeds that credential in its internal CDP URL. CDP fetch helpers convert URL credentials into an auth header while stripping credentials from the fetch URL. The relay rejects unauthenticated requests before forwarding to Chromium.Repro + Verification
Environment
Steps
Expected
Actual
Evidence
Human Verification (required)
cdpSourceRangeremains passed through;network=noneno longer gets an implicit source range; URL credentials are stripped before guarded fetch.Review Conversations
Compatibility / Migration
OPENCLAW_BROWSER_CDP_AUTH_TOKEN.Risks and Mitigations