Skip to content

[DRAFT Security] Fail closed on aliased or unsupported external Docker volumes - #213

Draft
mark-e-deyoung wants to merge 1 commit into
security/mvp-protected-control-volume-r1-20261123from
security/mvp-volume-alias-preflight-r1-20261123
Draft

mark-e-deyoung wants to merge 1 commit into
security/mvp-protected-control-volume-r1-20261123from
security/mvp-volume-alias-preflight-r1-20261123

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

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 source 2d73be45361be8fa379c39d0a77083f9379c79e9.

Why: distinct Compose volume names do not necessarily imply distinct underlying persistent storage. local driver bind options can alias a guest-writable artifacts path to a purported control volume. Previous preflight verified distinct names only.

Implementation: scripts/layers/preflight.sh continues 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 driver local, null/empty Options and distinct reported absolute mountpoints. Unknown drivers/options, bind-device aliases and duplicate mountpoints fail with fixed-domain LAYERED_PREFLIGHT stage=volume_alias_or_driver and no raw host paths. Does not auto-recreate or prune existing volumes.

Independent public negative controls: tests/test_layered_volume_preflight.py invokes 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.yml runs Python stdlib unittests and syntax check on a disposable public runner; full CI/disposable Docker positive qualification separate. formal/LAYERED_VOLUME_IDENTITY.md records 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.lock and 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.

Copy link
Copy Markdown
Collaborator Author

R040 first exact-head bounded qualification — 2026-11-23

Candidate 2d73be45361be8fa379c39d0a77083f9379c79e9 new dedicated offline fake-Docker alias/driver/options/missing-volume tests #45196489591 TERMINAL SUCCESS, and real Docker disposable source/replay #45196489150 TERMINAL SUCCESS. Existing TLC #45196489227, BuildKit publication guard #45196489648 and public disclosure/privacy safeguards independently SUCCESS. full CI #45196489513 and real Wine11 composite HIL #45196489364 still IN PROGRESS at readback. Conservative local/no-options/distinct Docker-reported mountpoint checks are source-fail-closed; not host-root cryptographic mount attestation or substitute for protected runtime writer/owner. Production/untrusted-PE release held.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant