Repository navigation
fix(sandbox-jail): git trusts every repository the jail mounts - #779
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plain
gitin an Æven Cloud project clone failed with "dubious ownership": inside the jail's user namespace every owner outside the jail shows asnobody, 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'sinsteadOfrewrites. The jail is the account boundary, not Git's ownership check.tests/git-env.spec.tspins the entries with and without egress.envrow and the cloud workspace-sync Agent Note updated (en/zh).Gates:
AVN_GATE_FAIL_FAST=1 pnpm run check:ci56 passed;pnpm run test23224 passed.🤖 Generated with Claude Code