mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add Windows sandbox client authentication (#42348)
## Why Sandbox provisioning IPC must authenticate callers before request handling can be enabled. ## What changed - Authorize named-pipe clients against the Codex package identity and keep the client process open through authentication. - Impersonate the caller and require its token to match the client process user, belong to an interactive named user, and not belong to the sandbox group. - Prepare and pin the requested Codex home, then validate machine policy with the impersonated token. - Allow known Codex package families when running an unpackaged debug service in foreground mode. Provisioning IPC remains disabled until this authentication is connected to the transport. ## Testing - Add a Windows test that verifies an unpackaged pipe client is rejected before it sends a provisioning request. GitOrigin-RevId: b0e87450c06f8de3eca6cb77daa9b11ef80699a9
This commit is contained in:
1 parent
c4ea7294b9
commit
4fdf4c1113
6 files changed
+466
No files matched your search
@@ -7,6 +7,9 @@ mod ipc;
|
||||
#[allow(dead_code)]
|
||||
mod machine_policy;
|
||||
#[cfg(windows)]
|
||||
#[allow(dead_code)]
|
||||
mod package_identity;
|
||||
#[cfg(windows)]
|
||||
mod service;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
|
||||
Reference in new issue
Block a user