Repository navigation
[mount-docs] Correct mount-policy consumer table for compose deny lists - #11929
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The security-sensitive documentation spans multiple mount-policy and runtime paths whose consumer semantics cannot be fully validated through automated review alone.
No open issues 🎉
What changed in this PR
This documentation-only PR updates the mount-policy consumer table to better reflect production usage of forbidden home directories and credential entries across runtime components.
Changes:
- Adds Compose consumers for
home.forbiddenSubdirsandcredentials.entries. - Updates the documented consumers for credential-related policy entries.
- Clarifies sbx's handling of policy-managed automatic home mounts.
| File | Description |
|---|---|
| docs/mount-policy.md | Corrects the mount-policy consumer table and clarifies runtime-specific handling of forbidden home directories and credential entries. |
Review effort: Lite (adaptive)
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 04c8c1e |
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.
Audited commit:
f7114d2bb2cf79fd335baabaca471e59c3a6860f(from/tmp/gh-aw/mount-docs/main-sha.txt).Discrepancy corrected
docs/mount-policy.md("What the policy contains" table) saidhome.forbiddenSubdirswas consumed by compose + sbx + NVX but only by invariant tests and NVX modules. It also omitted production compose consumers ofcredentials.entries.Production callers at the audited commit:
home.forbiddenSubdirs:agent-home.ts: rejects a--homecontaining unmaskable credential dirs.services/agent-path-policy.ts:hiddenHostRoots()for--container-workdir.exposed-home-secrets.ts: rejects binds exposing forbidden dirs under an alternate--home.nfs-home-exclusions.ts: excluded from NFS home staging.credentials.entries: the same four modules, in addition to the already-listedcredential-hiding.tsand the sbx/NVX/microVM modules.sbx/credential-scrub.tsandsbx/sandbox-create.tsdo not importHOME_FORBIDDEN_SUBDIRS; sbx simply never mounts those dirs because they are absent fromtoolSubdirs. The row now says so, instead of listing sbx as a consumer.Checked
Compared the docs in the allowlist against:
sandbox-mount-policy.json,mount-policy.ts,agent-volumes/*(system/etc/home/workspace/docker-socket/credential-hiding/write-policy),sbx/sandbox-create.ts,cloud-hypervisor/exports.ts,enclave-export-plan.ts, the sbx runtime backend,runner-tool-cache.ts,chroot-home-setup.ts,sysroot-service.ts/optional-services.ts, andagent-service.tstmpfs. All other mount claims examined (system/etc lists, tool dirs,.gemini/.copilotconditions, tool cache, tmpfs, Docker socket, CH exports, sbx mounts) matched.Limitations
Documentation-only change (
git diff --checkclean). Did not run tests, containers, or the documented examples. Dynamic/dev/shmtmpfs and init-signal mounts are documented infilesystem-sharing-contract.mdand were not audited further.