Skip to content

Protect Git metadata in Windows sandboxes - #59799

Merged
cameron1024 merged 5 commits into
mainfrom
implement-windows-git-sandbox-access
Jun 29, 2026
Merged

Protect Git metadata in Windows sandboxes#59799
cameron1024 merged 5 commits into
mainfrom
implement-windows-git-sandbox-access

Conversation

@MartinYe1234

Copy link
Copy Markdown
Contributor

Summary:

  • Protect Git metadata in Windows/WSL sandboxes by passing Git policy into the WSL Bubblewrap wrapper.
  • Map protected Git paths and overlay them read-only, while allowing approved Git metadata paths to be writable.
  • Update tool descriptions and sandboxing docs for platform-specific Git metadata behavior.

Validation:

  • cargo check -p sandbox
  • cargo check -p sandbox --tests --target x86_64-pc-windows-msvc
  • cargo check -p agent -p acp_thread
  • git --no-pager diff --check

Release Notes:

  • Improved Windows agent sandboxing to protect Git metadata unless access is approved

@MartinYe1234 MartinYe1234 self-assigned this Jun 24, 2026
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 24, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jun 24, 2026
@MartinYe1234
MartinYe1234 marked this pull request as ready for review June 24, 2026 04:23
@cameron1024
cameron1024 added this pull request to the merge queue Jun 29, 2026
Merged via the queue into main with commit 3d1b26d Jun 29, 2026
34 checks passed
@cameron1024
cameron1024 deleted the implement-windows-git-sandbox-access branch June 29, 2026 09:58
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
Summary:

- Protect Git metadata in Windows/WSL sandboxes by passing Git policy
into the WSL Bubblewrap wrapper.
- Map protected Git paths and overlay them read-only, while allowing
approved Git metadata paths to be writable.
- Update tool descriptions and sandboxing docs for platform-specific Git
metadata behavior.

Validation:

- cargo check -p sandbox
- cargo check -p sandbox --tests --target x86_64-pc-windows-msvc
- cargo check -p agent -p acp_thread
- git --no-pager diff --check

Release Notes:

- Improved Windows agent sandboxing to protect Git metadata unless
access is approved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants