Skip to content

[DRAFT Security] Isolate deployment-gate lock in a root-owned control-plane volume - #211

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

mark-e-deyoung wants to merge 1 commit into
rdte/mvp-deployment-gate-r1-20261123from
security/mvp-protected-control-volume-r1-20261123

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

R040 independent security RDTE — partial mitigation only

Source: parent #207 exact 702eb98ec07cc7b17c49ebc01ad2690b776b5a0e, which already passed full CI, real 55-minute Wine11 HIL and dual-controller disposable qualification. Initial head 55593c91b4bb5d0191f283130a891ba7d166b93b. Owner branches unchanged.

What changed:

  • A separate eighth WINEBOT_CONTROL_VOLUME external volume is validated by preflight and required by Compose. The deployment controller only mounts it at /winebot-control. Wine runtime, guest, state-init and app-seed have no control-volume mount. Existing seven app/user/evidence external volumes are unchanged.
  • The root-owned service validates control volume root uid/gid=0:0 and exact permissions, reduces new 0755 volume permissions to 0700 as its owner, and holds .winebot-deployment-gate.lock with nonblocking flock without releasing it during state-init→runtime. The gate drops all Linux capabilities (no longer needs CAP_DAC_OVERRIDE), has no network, read-only root, bounded PIDs/memory.
  • Updated public disposable Docker qualifier: second independent controller lock contender must reject, forced release/reacquire must succeed, and a synthetic UID1000 guest deliberately given the protected volume still must FAIL to unlink controller lock. Real source-built Wine11 HIL asserts control volume does not exist in guest runtime and retains competing-Compose-project/55-min soak/SIGKILL replay. Source-only constraints and documentation updated; all output fixed domain, no raw credentials or host data.

Explicit nonclaims/release STOP: This isolates only the deployment-gate authority. The existing /artifacts/sessions/.winebot-active-writer.lock remains under a UID1000-writable directory, and api/core/persistent_owner.py still maintains CAS/pointer state in that namespace; a hostile Wine process may still bypass runtime writer or pointer integrity. The #210 split-inode adversarial counterexample remains VALID and a release STOP. To complete: trusted protected control service/volume for both writer/generation/pointer; guest vs supervisor UID/container isolation, authenticated scoped control IPC, wrong-volume/host mount attestation, crash/replay, independent critic. This PR by itself does not satisfy untrusted Wine guest admission.

Acceptance: require exact-head free-public full CI and real Wine11 composite HIL, adversarial access tests and control-volume provenance, no private GHA minutes, no protected merge/release/hardware. DRAFT only.

Copy link
Copy Markdown
Collaborator Author

R040 protected deployment-control custody, exact-head CI receipt — 2026-11-23

At source 55593c91b4bb5d0191f283130a891ba7d166b93b, this candidate adds eighth EXTERNAL WINEBOT_CONTROL_VOLUME, used only by the controller deployment-gate at /winebot-control. Runtime/guest and state-init do not mount it. The controller validates root UID/GID 0 and mode 0700 (reduces fresh root-owned 0755 volume mode), holds a 0600 single-link flock inode there with all capabilities dropped, no CAP_DAC_OVERRIDE and no network. Existing app/evidence data remain on original volumes.
Fresh free PUBLIC GHA disposable Docker qualifier #45194276203 TERMINAL SUCCESS, including independent lock contender, forced gate release/reacquire, and synthetic UID1000 guest denied rm on controller lock even when deliberately mounting the control volume. TLC #45194276434 terminal SUCCESS for previously modeled invariants, not a model of new host mounts. full CI #45194276606 and source-built Wine11 composite HIL #45194276124 still IN_PROGRESS at last read.
Release STOP remains: existing runtime writer_admission.py and Python persistent_owner.py still locate trust-bearing files within guest-UID1000-writable /artifacts/sessions; moving only gate authority does not protect writer/path or activate pointer. PR #210 same-UID inode swap remains authoritative negative. Do not promote or suggest production untrusted PE admission. Next protected owner prototype lives separately in draft #212. Protected main unchanged.

Copy link
Copy Markdown
Collaborator Author

R040 full CI qualified — isolated controller lock only

Exact 55593c91b4bb5d0191f283130a891ba7d166b93b: fresh full CI #45194276606 terminal SUCCESS; independent disposable Docker layer #45194276203 SUCCESS with genuine separate-controller and UID1000 denial controls, existing TLC #45194276434 SUCCESS. Source-built real Wine11 composite HIL #45194276124 remains in progress at readback. The full CI green does not establish secure runtime writer owner or guest principal isolation; #210 negative remains release STOP.
Independent children now #212 protected-control Go generation CAS prototype, #213 conservative volume-mount/driver/alias preflight. They do not modify this source head or cancel its HIL. No merge.

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