Repository navigation
[mount-docs] Correct agent mount descriptions in architecture and chroot docs - #11575
Merged
Merged
Conversation
- architecture.md: the agent container no longer mounts the entire host filesystem and real $HOME; it binds selected paths only. Squid receives squid.conf via AWF_SQUID_CONFIG_B64, not a bind mount. - chroot-mode.md: list the direct /tmp bind alongside /host/tmp. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported, and the documentation updates align with the current selective mount and Squid configuration behavior.
No open issues 🎉
What changed in this PR
This documentation-only pull request aligns AWF’s architecture and chroot-mode documentation with the current selective mount behavior and Squid configuration injection.
Changes:
- Documents base64 environment-variable injection for
squid.confinstead of a bind mount. - Replaces the obsolete full-host-filesystem description with the selective agent mount model and Docker socket behavior.
- Documents both direct and
/hostbindings for/tmpin chroot mode.
| File | Description |
|---|---|
| docs/chroot-mode.md | Documents both direct /tmp:rw and /host/tmp:rw mount targets used in chroot mode. |
| docs/architecture.md | Corrects the Squid configuration delivery and agent filesystem mount descriptions. |
Review effort: Lite (dynamic)
Contributor
Author
|
✅ Copilot review passed with no inline comments. @github-actions[bot] Add the |
Contributor
Author
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit 7dfd777 |
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.
Summary
Documentation-only correction from the daily mount-docs audit. Two files changed, three lines total.
Audited commit:
bf0d16b21e5e18643240e5d20cb01e40b763cbca(recorded in/tmp/gh-aw/mount-docs/main-sha.txt).Discrepancies and corrections
docs/architecture.md(Agent Execution Container): said the agent "Mounts entire host filesystem at/hostand user home directory for full access". This is wrong. The compose agent binds only selected paths, never the real$HOME. Replaced with the actual set: read-only system dirs and/etcfiles under/host, the workspace,/tmp, an empty chroot home with allowlisted tool dirs, and AWF log/state dirs. The Docker socket is hidden behind a/dev/nulloverlay unless--enable-dindis set.workspace-mounts.tsL28,home-strategy.tsL16–51,system-mounts.tsL15–30,docker-socket.tsL44–48docs/architecture.md(Squid Container): said Squid "Mounts dynamically-generatedsquid.conffrom work directory". The config is injected as the base64AWF_SQUID_CONFIG_B64env var and is explicitly not bind-mounted, so Docker-in-Docker daemons can reach it.squid-service.tsL57–58, L180docs/chroot-mode.md(Read-Write Mounts): the/tmprow listed only/host/tmp:rw. Production also binds/tmp:/tmp:rwat the direct path, as the workspace row already notes for its own direct path.workspace-mounts.tsL28,system-mounts.tsL29What was checked
src/config/sandbox-mount-policy.jsonandsrc/config/mount-policy.ts, includingtoolSubdirs,narrowPaths,forbiddenSubdirs, and thedirentries withoutfiles.src/services/agent-volumes/(home, credential overlays, system, etc, workspace, Docker socket, write policy, volume builder), pluschroot-home-setup.tsandfs-utils.tsfor the0755placeholder and.copilottarget modes.sbx-manager.ts,nvx/*,enclave/mount-policy.ts, andagent-path-policy.ts.MicrovmWorkspaceImagehas no production instantiation, somount-policy.md's statement that it is test-only is correct.exports.ts(defaultworkspace-only;$HOMEnever exported;RUNNER_TEMP/gh-awand/tmp/gh-awconditional) andenclave-export-plan.ts.mount-policy.md,selective-mounting.md,sbx-integration.md,gvisor-integration.md, andcloud-hypervisor-foundation.mdwere re-verified and found consistent with the code. These docs are unchanged.git diff --checkis clean; the diff touches only the two files; relative links resolve.Limitations
architecture.mddescribes Squid logs as a "squid-logsvolume" when production uses a host path bind, anddocs/filesystem-sharing-contract.mdis a generated document, so it was not hand-edited.environment.mdwere not re-verified beyond checking that AWF's own error strings match.Review and merge are left to maintainers.