Skip to content

Enable authenticated Windows sandbox provisioning - #42351

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/68e9d546dcada88ff162ea4f98c0f4d748706b34
Sep 2, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/68e9d546dcada88ff162ea4f98c0f4d748706b34

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Enable authenticated Windows sandbox provisioning

Why

The Windows sandbox service had provisioning policy and client authentication in place, but its IPC listener was still disabled.

What changed

  • Serve framed provisioning requests over a local named pipe, authenticate packaged clients, validate requests and machine policy, and report provisioning outcomes through bounded responses and Windows event logging.
  • Return unavailable for configuration parse failures so clients can fall back to the elevated setup helper.
  • Keep validated directory handles alive in the setup helper so path protections survive an unexpected service exit.
  • Make connection recovery and shutdown wakeups tolerate clients that disconnect before the listener accepts them.

Testing

Added Windows tests for response framing, configuration-error classification, pipe security and reconnect behavior, shutdown wakeups, and retained helper handles.

## Why

The Windows sandbox service had provisioning policy and client authentication in place, but its IPC listener was still disabled.

## What changed

- Serve framed provisioning requests over a local named pipe, authenticate packaged clients, validate requests and machine policy, and report provisioning outcomes through bounded responses and Windows event logging.
- Return `unavailable` for configuration parse failures so clients can fall back to the elevated setup helper.
- Keep validated directory handles alive in the setup helper so path protections survive an unexpected service exit.
- Make connection recovery and shutdown wakeups tolerate clients that disconnect before the listener accepts them.

## Testing

Added Windows tests for response framing, configuration-error classification, pipe security and reconnect behavior, shutdown wakeups, and retained helper handles.

GitOrigin-RevId: 68e9d546dcada88ff162ea4f98c0f4d748706b34
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/68e9d546dcada88ff162ea4f98c0f4d748706b34 branch from 5a03337 to 7e45bdb Compare September 2, 2026 20:27
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot merged commit 7e45bdb into main Sep 2, 2026
12 of 30 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/68e9d546dcada88ff162ea4f98c0f4d748706b34 branch September 2, 2026 20:28
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 7e45bdb5 Deployed Sep 2, 2026 by vivekbhoye via Generate label suggestions #41773
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.

2 participants