Skip to content

Add exec-server network policy callback types - #34620

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/65b0a0723d1abb6e4f504a41d3a0dd41f5f21bf7
Jul 21, 2026
Merged

Add exec-server network policy callback types#34620
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/65b0a0723d1abb6e4f504a41d3a0dd41f5f21bf7

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 21, 2026

Copy link
Copy Markdown

Add exec-server network policy callback types

What changed

  • Define the network/policyRequest RPC payloads for associating a network request with a process and returning an allow, deny, or ask decision.
  • Cover HTTP, HTTPS CONNECT, and SOCKS5 TCP/UDP requests, with shared size limits for callback fields.
  • Add the backward-compatible requestPolicyDecisions remote proxy option so executors can opt in to sending policy decisions to clients.
  • Re-export the new protocol types from codex-exec-server.

Testing

  • Verify the request and decision JSON shapes.
  • Verify that the proxy opt-in is omitted and defaults to false for legacy configurations, while an enabled value round-trips.

## What changed

- Define the `network/policyRequest` RPC payloads for associating a network request with a process and returning an `allow`, `deny`, or `ask` decision.
- Cover HTTP, HTTPS CONNECT, and SOCKS5 TCP/UDP requests, with shared size limits for callback fields.
- Add the backward-compatible `requestPolicyDecisions` remote proxy option so executors can opt in to sending policy decisions to clients.
- Re-export the new protocol types from `codex-exec-server`.

## Testing

- Verify the request and decision JSON shapes.
- Verify that the proxy opt-in is omitted and defaults to `false` for legacy configurations, while an enabled value round-trips.

GitOrigin-RevId: 65b0a0723d1abb6e4f504a41d3a0dd41f5f21bf7
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/65b0a0723d1abb6e4f504a41d3a0dd41f5f21bf7 branch from 68e8066 to d838ea0 Compare July 21, 2026 21:55
@copyberry
copyberry Bot merged commit d838ea0 into main Jul 21, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/65b0a0723d1abb6e4f504a41d3a0dd41f5f21bf7 branch July 21, 2026 21:56
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant