Skip to content

Honor the configured Windows sandbox level for managed networking - #37875

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/308858652d7b629af623d22896dafde3a23d3758
Aug 10, 2026
Merged

Honor the configured Windows sandbox level for managed networking#37875
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/308858652d7b629af623d22896dafde3a23d3758

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 10, 2026

Copy link
Copy Markdown

Honor the configured Windows sandbox level for managed networking

Why

Managed networking implicitly selected the elevated Windows sandbox backend,
even when the sandbox was configured to use a restricted token.

What changed

  • Select the Windows sandbox backend solely from WindowsSandboxLevel.
  • Reject managed networking with a restricted-token sandbox before spawning a
    process, since managed networking requires the elevated backend.
  • Cover the rejection through sandbox preparation, unified exec, and Windows
    sandbox session tests.

…7875)

## Why

Managed networking implicitly selected the elevated Windows sandbox backend,
even when the sandbox was configured to use a restricted token.

## What changed

- Select the Windows sandbox backend solely from `WindowsSandboxLevel`.
- Reject managed networking with a restricted-token sandbox before spawning a
  process, since managed networking requires the elevated backend.
- Cover the rejection through sandbox preparation, unified exec, and Windows
  sandbox session tests.

GitOrigin-RevId: 308858652d7b629af623d22896dafde3a23d3758
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/308858652d7b629af623d22896dafde3a23d3758 branch from 31c5f94 to a603d7c Compare August 10, 2026 19:58
@copyberry
copyberry Bot merged commit a603d7c into main Aug 10, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/308858652d7b629af623d22896dafde3a23d3758 branch August 10, 2026 19:59
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 10, 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.

3 participants