You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DRAFT Security] Isolate deployment-gate lock in a root-owned control-plane volume - #211
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.
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 GHAdisposable 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.
R040 full CI qualified — isolated controller lock only
Exact 55593c91b4bb5d0191f283130a891ba7d166b93b: fresh full CI #45194276606terminal 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 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
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 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 head55593c91b4bb5d0191f283130a891ba7d166b93b. Owner branches unchanged.What changed:
WINEBOT_CONTROL_VOLUMEexternal 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.uid/gid=0:0and exact permissions, reduces new 0755 volume permissions to 0700 as its owner, and holds.winebot-deployment-gate.lockwith nonblockingflockwithout releasing it during state-init→runtime. The gate drops all Linux capabilities (no longer needsCAP_DAC_OVERRIDE), has no network, read-only root, bounded PIDs/memory.Explicit nonclaims/release STOP: This isolates only the deployment-gate authority. The existing
/artifacts/sessions/.winebot-active-writer.lockremains under a UID1000-writable directory, andapi/core/persistent_owner.pystill 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.