Skip to content

fix(sandbox): stop treating script strings as network targets - #815

Open
renaesop wants to merge 1 commit into
BaaRai:mainfrom
renaesop:codex/network-intent-fix
Open

renaesop wants to merge 1 commit into
BaaRai:mainfrom
renaesop:codex/network-intent-fix

Conversation

@renaesop

@renaesop renaesop commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Docker tasks can mistake URLs and IPs inside Bash or custom-script text for network requests. Even printing a string can trigger approval or DNS errors, leading agents to repeatedly diagnose the network.

  • Add network_access({host, reason}), reusing Task Scope and operator approval. Repeated requests reuse the pending record; approved destinations return in_scope.
  • Stop extracting targets from Bash and custom-script contents in mandatory Docker mode. Enforce scope and enabled block rules against actual connections at the proxy, refreshing policy before subsequent commands.
  • Separate policy refusals from DNS/connect failures. Tool guidance distinguishes pending approval from explicit denial and tells agents not to resubmit requests or attempt workarounds.

Validation

  • Docker tests: script literals do not trigger target checks; actual requests, redirects, block rules, and revoked access are enforced.
  • Agent/PostgreSQL tests: request deduplication, approval/revocation, policy refresh, and denied requests creating no approval record.
  • Relevant race tests, Go vet, frontend TypeScript and i18n checks passed.

Deploy the panel, runner, and egress-proxy together so the proxy receives and enforces the new block-rule field.

@renaesop
renaesop force-pushed the codex/network-intent-fix branch from dbe4486 to 576adb8 Compare December 2, 2026 05:13
@renaesop renaesop changed the title fix: declare network intent and enforce Docker egress at runtime fix: stop inferring Docker network targets from script text Dec 2, 2026
@renaesop
renaesop force-pushed the codex/network-intent-fix branch from 576adb8 to f8a480e Compare December 2, 2026 05:48
@renaesop renaesop changed the title fix: stop inferring Docker network targets from script text fix: prevent false network approvals in Docker tasks Dec 2, 2026
@renaesop renaesop changed the title fix: prevent false network approvals in Docker tasks fix(sandbox): stop treating script strings as network targets Dec 2, 2026
@renaesop
renaesop force-pushed the codex/network-intent-fix branch from f8a480e to c345a66 Compare December 2, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant