Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
07e66e7
Add Windows AppContainer sandbox helper
iceweasel-oai Oct 7, 2025
3ac00da
windows compilation fixes.
iceweasel-oai Oct 8, 2025
0fac1ff
rework to avoid unstable raw_attribute_list
iceweasel-oai Oct 8, 2025
4537c76
avoid unstable features altogether
iceweasel-oai Oct 8, 2025
11bf9f0
simplify to use AppContainerToken.
iceweasel-oai Oct 8, 2025
3faa35b
hardening tweaks.
iceweasel-oai Oct 8, 2025
17d9a2d
build fixes.
iceweasel-oai Oct 8, 2025
99a55fc
fix windows crate location
iceweasel-oai Oct 8, 2025
e9c3d97
update token generation.
iceweasel-oai Oct 8, 2025
7a5c7a7
fix build errors.
iceweasel-oai Oct 8, 2025
dd75adb
extern is always unsafe
iceweasel-oai Oct 8, 2025
20c0403
fix some clippy issues.
iceweasel-oai Oct 8, 2025
30cceef
fix some clippy issues.
iceweasel-oai Oct 8, 2025
bf623df
give AppContainer perms to TEMP/TMP too
iceweasel-oai Oct 8, 2025
a7333da
use std::env
iceweasel-oai Oct 8, 2025
c76652d
inherit stdout/stderr handles
iceweasel-oai Oct 8, 2025
2f5ec7b
inherit stdout/stderr handles
iceweasel-oai Oct 8, 2025
942fb89
clippy fix
iceweasel-oai Oct 8, 2025
8ff193f
build errors
iceweasel-oai Oct 8, 2025
d91453f
build errors
iceweasel-oai Oct 8, 2025
55786ff
build errors
iceweasel-oai Oct 8, 2025
dbeaae1
restricted token approach.
iceweasel-oai Oct 9, 2025
33343ba
build errors
iceweasel-oai Oct 9, 2025
3144971
build errors
iceweasel-oai Oct 9, 2025
1ff9d36
build errors
iceweasel-oai Oct 9, 2025
1a68c88
build errors
iceweasel-oai Oct 9, 2025
58ade58
build errors
iceweasel-oai Oct 9, 2025
66f1be2
build errors
iceweasel-oai Oct 9, 2025
f2e9cfa
allow read anywhere
iceweasel-oai Oct 9, 2025
77a2e39
sandbox take 3
iceweasel-oai Oct 10, 2025
769556c
windows fixes for v3
iceweasel-oai Oct 10, 2025
5e2cb3b
v4
iceweasel-oai Oct 10, 2025
2e3161a
build errors, easier specification of policy
iceweasel-oai Oct 13, 2025
ab3cd2b
fix warning
iceweasel-oai Oct 13, 2025
65e764b
gate impl on Windows.
iceweasel-oai Oct 14, 2025
7f289ac
forgot new windows module.
iceweasel-oai Oct 14, 2025
f94baa2
restricted v2
iceweasel-oai Oct 14, 2025
24bbda6
restricted python version.
iceweasel-oai Oct 14, 2025
bb473f0
updated python v3
iceweasel-oai Oct 15, 2025
d5731bd
sandbox tests.
iceweasel-oai Oct 15, 2025
c46933d
hookup python as windows sandbox.
iceweasel-oai Oct 16, 2025
ad81fc0
get rid of bad rust impl
iceweasel-oai Oct 16, 2025
90c199a
remove windows-sandbox rust dir
iceweasel-oai Oct 16, 2025
287faf0
add env_utils
iceweasel-oai Oct 16, 2025
8860e3e
python performance improvement.
iceweasel-oai Oct 16, 2025
19eac75
always print some error when a cmd fails.
iceweasel-oai Oct 16, 2025
0b76a5d
windows setup ps script.
iceweasel-oai Oct 16, 2025
26fc8eb
latest round of python sandbox improvements.
iceweasel-oai Oct 17, 2025
99f66a1
rust sandbox impl
iceweasel-oai Oct 17, 2025
9e34745
hook up rust sandbox
iceweasel-oai Oct 20, 2025
76483f5
use Everyone SID and do directory audit for world-writable directories
iceweasel-oai Oct 21, 2025
57444ef
prune unused code
iceweasel-oai Oct 21, 2025
ca47114
sorta kinda working-ish
iceweasel-oai Oct 22, 2025
db80210
fix false positives for everyone writable directory detection.
iceweasel-oai Oct 22, 2025
8bd44ef
skip symlinks
iceweasel-oai Oct 22, 2025
2e1d2c5
fix build issues.
iceweasel-oai Oct 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions codex-rs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions codex-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ members = [
"file-search",
"git-tooling",
"linux-sandbox",
"windows-sandbox",
"login",
"mcp-client",
"mcp-server",
Expand Down Expand Up @@ -59,6 +60,7 @@ codex-exec = { path = "exec" }
codex-file-search = { path = "file-search" }
codex-git-tooling = { path = "git-tooling" }
codex-linux-sandbox = { path = "linux-sandbox" }
codex-windows-sandbox = { path = "windows-sandbox" }
codex-login = { path = "login" }
codex-mcp-client = { path = "mcp-client" }
codex-mcp-server = { path = "mcp-server" }
Expand Down Expand Up @@ -189,6 +191,15 @@ webbrowser = "1.0"
which = "6"
wildmatch = "2.5.0"
wiremock = "0.6"
windows = { version = "0.61.3", default-features = false, features = [
"Win32_Foundation",
"Win32_Security",
"Win32_Security_Authorization",
"Win32_Security_Isolation",
"Win32_Storage_FileSystem",
"Win32_System_Memory",
"Win32_System_Threading",
] }
zeroize = "1.8.1"

[workspace.lints]
Expand Down
28 changes: 28 additions & 0 deletions codex-rs/windows-sandbox/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
edition = "2024"
name = "codex-windows-sandbox"
version = { workspace = true }

[[bin]]
name = "codex-windows-sandbox"
path = "src/main.rs"

[lib]
name = "codex_windows_sandbox"
path = "src/lib.rs"

[lints]
workspace = true

[target.'cfg(target_os = "windows")'.dependencies]
clap = { workspace = true, features = ["derive"] }
codex-protocol = { workspace = true }
tokio = { workspace = true, features = ["process", "rt", "rt-multi-thread"] }
tracing = { workspace = true }
windows = { workspace = true }

[target.'cfg(target_os = "windows")'.dependencies.serde_json]
workspace = true

[target.'cfg(target_os = "windows")'.dependencies.serde]
workspace = true
4 changes: 4 additions & 0 deletions codex-rs/windows-sandbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# codex-windows-sandbox

A standalone helper executable that can launch commands inside a Windows AppContainer
sandbox using the same `SandboxPolicy` JSON representation used across Codex.
10 changes: 10 additions & 0 deletions codex-rs/windows-sandbox/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#[cfg(target_os = "windows")]
mod windows_appcontainer;

#[cfg(target_os = "windows")]
pub use windows_appcontainer::run_main;

#[cfg(not(target_os = "windows"))]
pub fn run_main() -> ! {
panic!("codex-windows-sandbox is only supported on Windows");
}
3 changes: 3 additions & 0 deletions codex-rs/windows-sandbox/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() -> ! {
codex_windows_sandbox::run_main()
}
Loading
Loading