Skip to content

Prototype runner-wide network policies - #802

Draft
zaniebot wants to merge 7 commits into
mainfrom
zb/runner-network-policy
Draft

Prototype runner-wide network policies#802
zaniebot wants to merge 7 commits into
mainfrom
zb/runner-network-policy

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

The domain policies in agents/codex/config.toml only constrain Codex processes, while other CI tools and action hooks can still make unrestricted network requests. This adds an early-job proxy prototype that imports those rules, combines them with reviewed per-job service lists, and applies a default-deny network policy to disposable Linux runners.

The action redirects DNS, HTTP, and HTTPS through a root-owned policy service, rejects other external and forwarded traffic, and can remove sudo and container-daemon access before later action hooks. HTTPS remains end-to-end encrypted. The first rollout candidates are formatting, linting, and lockfile checks; normal workflows are not changed yet. Privileged jobs, unsupported runner types, traffic before the first pre hook, and application-level access through allowed hosts remain explicit limits.

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.

2 participants