Repository navigation
[DRAFT Security] Fail closed on aliased or unsupported external Docker volumes - #213
Draft
mark-e-deyoung wants to merge 1 commit into
Conversation
Collaborator
Author
R040 first exact-head bounded qualification — 2026-11-23Candidate |
This was referenced Nov 23, 2026
Draft
This branch has not been deployed
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.
R040 independent volume-custody admission workcell
Base: protected control-plane volume #211
55593c91b4bb5d0191f283130a891ba7d166b93b; this child does not alter #211, the unrelated Go owner-CAS #212, or protected main. Initial source2d73be45361be8fa379c39d0a77083f9379c79e9.Why: distinct Compose volume names do not necessarily imply distinct underlying persistent storage.
localdriver bind options can alias a guest-writable artifacts path to a purported control volume. Previous preflight verified distinct names only.Implementation:
scripts/layers/preflight.shcontinues fail-closed digest and all-eight-name validation, then before runtime checks every external volume's Docker-reported Driver, Options and Mountpoint. Accepts only ordinary driverlocal, null/empty Options and distinct reported absolute mountpoints. Unknown drivers/options, bind-device aliases and duplicate mountpoints fail with fixed-domainLAYERED_PREFLIGHT stage=volume_alias_or_driverand no raw host paths. Does not auto-recreate or prune existing volumes.Independent public negative controls:
tests/test_layered_volume_preflight.pyinvokes actual Bash preflight against an executable temporary fake Docker CLI. Tests unique local success, duplicate backing mountpoint, driver option/bind alias, unsupported driver and missing control volume failures, without Docker/host volumes or private data. Registered with mandatory unit manifest. Separate.github/workflows/layered-volume-identity-rdte.ymlruns Python stdlib unittests and syntax check on a disposable public runner; full CI/disposable Docker positive qualification separate.formal/LAYERED_VOLUME_IDENTITY.mdrecords exact scope/limits.Nonclaims and release STOP: Docker-reported mountpoints and driver metadata are not cryptographic host mount attestation; underlying plugin/host root can lie. This conservative local-driver policy may exclude legitimate TrueNAS/ZFS or bind deployment paths until independently qualified. Runtime
/artifacts/sessions/.winebot-active-writer.lockand Python persistent owner are STILL guest-writable; no untrusted-PE production admission, CAS activation or IPC authorization. #210 negative counterexample remains binding. DRAFT; no release, private GHA minutes, user host or protected merge.