Skip to content

Enable exec-server network policy callbacks - #34770

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/60e658102c50036589ca9de844760a8bffaa53b0
Jul 22, 2026
Merged

Enable exec-server network policy callbacks#34770
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/60e658102c50036589ca9de844760a8bffaa53b0

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 22, 2026

Copy link
Copy Markdown

Enable exec-server network policy callbacks

What changed

  • Let exec-server issue JSON-RPC requests to its client and correlate responses, with bounded concurrency, timeouts, and connection cleanup.
  • When request_policy_decisions is enabled, forward proxy policy requests with the process ID and network destination, then apply the client's allow, deny, or ask decision.
  • Fail closed for invalid inputs, unavailable or malformed responses, timeouts, process shutdown, and disconnects. Keep callbacks active while inherited process streams keep the proxy alive.

Testing

  • Cover response correlation, request limits, timeouts, disconnect cleanup, validation boundaries, decision forwarding, and process lifecycle behavior.

## What changed

- Let `exec-server` issue JSON-RPC requests to its client and correlate responses, with bounded concurrency, timeouts, and connection cleanup.
- When `request_policy_decisions` is enabled, forward proxy policy requests with the process ID and network destination, then apply the client's allow, deny, or ask decision.
- Fail closed for invalid inputs, unavailable or malformed responses, timeouts, process shutdown, and disconnects. Keep callbacks active while inherited process streams keep the proxy alive.

## Testing

- Cover response correlation, request limits, timeouts, disconnect cleanup, validation boundaries, decision forwarding, and process lifecycle behavior.

GitOrigin-RevId: 60e658102c50036589ca9de844760a8bffaa53b0
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/60e658102c50036589ca9de844760a8bffaa53b0 branch from 027ed36 to 32f4687 Compare July 22, 2026 15:22
@copyberry
copyberry Bot merged commit 32f4687 into main Jul 22, 2026
15 of 26 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/60e658102c50036589ca9de844760a8bffaa53b0 branch July 22, 2026 15:23
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 22, 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