Skip to content

fix(sandbox): grant the egress proxy web-port internet access - #379

Merged
Sam123ben merged 1 commit into
mainfrom
fix/sandbox-proxy-internet-egress
Aug 31, 2026
Merged

fix(sandbox): grant the egress proxy web-port internet access#379
Sam123ben merged 1 commit into
mainfrom
fix/sandbox-proxy-internet-egress

Conversation

@Sam123ben

Copy link
Copy Markdown
Member

The sandbox fence policy selects every pod carrying the sandbox label — including the egress proxy — so the proxy could enforce its allowlist but never reach the allowed domains: every proxied request to pypi/github timed out while direct internet stayed (correctly) blocked.

This adds a second, additive NetworkPolicy scoped to the proxy pod only, opening TCP 443/80 to 0.0.0.0/0 with the RFC1918 and link-local ranges excluded, so the proxy cannot be used to pivot into the VPC or cluster. The runner still has no direct route out; its only path remains the allowlisting proxy.

Verified live before the fix: in-sandbox probe showed example.com rejected 403 by the proxy (allowlist works) but pypi.org timing out through it. Unit suite green (2064 passed) with a regression test on the new policy shape.

@Sam123ben
Sam123ben merged commit e525430 into main Aug 31, 2026
8 checks passed
@Sam123ben
Sam123ben deleted the fix/sandbox-proxy-internet-egress branch August 31, 2026 09:07
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