Skip to content

exec-server: materialize filesystem workspace roots#31892

Merged
pakrym-oai merged 1 commit into
mainfrom
pakrym/full-ci-fs-workspace-roots
Jul 9, 2026
Merged

exec-server: materialize filesystem workspace roots#31892
pakrym-oai merged 1 commit into
mainfrom
pakrym/full-ci-fs-workspace-roots

Conversation

@pakrym-oai

@pakrym-oai pakrym-oai commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Filesystem helper requests currently turn symbolic :workspace_roots permissions into a sandbox policy before applying the workspace roots from the filesystem sandbox context. This can accidentally broaden filesystem access to the cwd instead of limiting it to the selected workspace roots.

Materialize project-root permissions using the context workspace roots before deriving the filesystem sandbox policy. The same converted roots are then reused when constructing the sandbox command, keeping policy enforcement and process setup aligned.

Adds a remote filesystem integration test that verifies a file inside the selected workspace root is readable while a sibling under the cwd is denied.

Validation

  • just test -p codex-exec-server remote_read_file_materializes_environment_workspace_roots (macOS, outside the outer Seatbelt sandbox)

@pakrym-oai pakrym-oai force-pushed the pakrym/full-ci-fs-workspace-roots branch from aa1b8e8 to 1915f31 Compare July 9, 2026 20:45
@pakrym-oai pakrym-oai changed the base branch from pakrym/full-ci-environment-workspace-roots to main July 9, 2026 20:46
@pakrym-oai pakrym-oai marked this pull request as ready for review July 9, 2026 20:46
@pakrym-oai pakrym-oai requested a review from a team as a code owner July 9, 2026 20:46
@pakrym-oai pakrym-oai enabled auto-merge (squash) July 9, 2026 21:29
@pakrym-oai pakrym-oai disabled auto-merge July 9, 2026 21:34
@pakrym-oai pakrym-oai merged commit ac3da4f into main Jul 9, 2026
125 of 144 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/full-ci-fs-workspace-roots branch July 9, 2026 23:20
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 9, 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.

2 participants