Skip to content

fix(sandbox-jail): git trusts every repository the jail mounts - #779

Merged
olibaron merged 1 commit into
mainfrom
fix/jail-git-safe-directory
Nov 23, 2026
Merged

olibaron merged 1 commit into
mainfrom
fix/jail-git-safe-directory

Conversation

@olibaron

Copy link
Copy Markdown
Contributor

Plain git in an Æven Cloud project clone failed with "dubious ownership": inside the jail's user namespace every owner outside the jail shows as nobody, including the .aeven-projects/<id> folder the Host places, so Git refused the repository for every agent command. Only workspace-git-sync's own runner passed -c safe.directory=*.

Every confined command now carries safe.directory=* in Git's command scope (GIT_CONFIG_COUNT/KEY/VALUE), appended after the egress proxy's insteadOf rewrites. The jail is the account boundary, not Git's ownership check.

  • tests/git-env.spec.ts pins the entries with and without egress.
  • README env row and the cloud workspace-sync Agent Note updated (en/zh).

Gates: AVN_GATE_FAIL_FAST=1 pnpm run check:ci 56 passed; pnpm run test 23224 passed.

🤖 Generated with Claude Code

Inside the jail's user namespace, owners outside the jail show as nobody,
so a cloud project clone the Host placed under .aeven-projects failed
Git's ownership check ("dubious ownership") for every agent git command.
Every confined command now carries safe.directory=* in Git's command
scope, appended after the egress URL rewrites; the jail is the boundary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@olibaron olibaron added kind/bug-fix Corrects incorrect behavior area/shell Bash and shell capabilities: Service Definition, providers, and shell consumers skip-ci Merge without starting the CI lanes labels Nov 23, 2026
@olibaron
olibaron merged commit a8d64c1 into main Nov 23, 2026
5 checks passed
@olibaron
olibaron deleted the fix/jail-git-safe-directory branch November 23, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/shell Bash and shell capabilities: Service Definition, providers, and shell consumers kind/bug-fix Corrects incorrect behavior skip-ci Merge without starting the CI lanes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant