Skip to content

[DRAFT RDTE] Root-owned control-plane generation CAS — Go stdlib, adversarial replay - #212

Closed
mark-e-deyoung wants to merge 3 commits into
security/mvp-protected-control-volume-r1-20261123from
rdte/protected-owner-cas-go-r1-20261123
Closed

mark-e-deyoung wants to merge 3 commits into
security/mvp-protected-control-volume-r1-20261123from
rdte/protected-owner-cas-go-r1-20261123

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

Independent R040 workcell: protected owner registry prototype (not runtime enabled)

Parent: security control-volume draft #211 source 55593c91b4bb5d0191f283130a891ba7d166b93b. Initial Go code 5a63861f...; current head 639a80a4b2d187b1267203c88016a8395dcb2f91 corrects a literal newline rune before CI. All four files in standalone rdte/protected-control/ and .github/workflows/protected-owner-cas-rdte.yml, no changes to the runtime/host/control service or owner PR.

Implementation: Go stdlib Linux CLI and internal package, fixed /winebot-control trusted root for CLI, root identity required in production CLI, source-only tests use synthetic t.TempDir() as their test user. claim(session_id,expected_generation,operation_id) and view are nonblocking syscall.flock protected, strict v1 JSON schema, exact keys/dup rejection, opaque bounded session/operation IDs, monotone generation, idempotency conditional on same identity/generation, symlink/alien owner/bad perms refused, 0600 regular single-link files, atomic same-directory rename + file and directory sync. No source/witness pointer logging or network.

Independent public workflow: GO111MODULE=off go vet, go test -race -count=1, go build on Ubuntu 24.04, no external Go modules, Docker/host runtime/install, publishing, artifacts or private Actions minutes. CI acceptance pending exact-head receipt.

Not integrated or release-safe: current api/core/persistent_owner.py is still stored below guest-writable /artifacts/sessions; the Wine process and API still share a principal, CLI has no authenticated IPC/human STOP/lease handoff, and production mode lacks adversarial host mount attestation. #210 same-UID lock inode replacement remains a release STOP. Prove secure control/guest UID and mounts plus CAS state-machine integration before connecting this reference to user-state startup or promotion. DRAFT / no merge / no release.

Copy link
Copy Markdown
Collaborator Author

R040 Go protected-owner standalone offline tests — 2026-11-23

Source current 01cf4c7d2b59a49d22563df56152b1c24455fc64, parent #211 55593c9.... Original independent Go CLI/generation CAS plus strict v1 parser and local atomic fsync+rename. First exact source Go #45195203170 FAILED at synthetic symlink test setup because after a legitimate owner-symlink negative case the fixture left the real lock file in place; not a CAS/untrusted security bypass. Test-fixture-only correction deletes that file inside the synthetic temp root before attempting the lock-symlink negative, no production source modification. New exact-head Go vet/-race/build #45195410806 now TERMINAL SUCCESS. BuildKit publication guard #45195410768 SUCCESS; full CI #45195411900 IN PROGRESS.
The binary's fixed trusted root is /winebot-control, requires euid0; record uses strict owner-UID, 0700 root/0600 regular single-link files, nonblocking flock, monotone CAS, replay idempotence, exact operation and object ID, bounded/duplicate-free JSON, no raw record stdout. Tests use t.TempDir only. This is reference RDTE, not live CAS activation. Current Python pointer under guest-writable artifacts is still unsafe; no authenticated IPC or supervisor guest principal separation, no cross-process host mount proof or release admission. DRAFT.

Copy link
Copy Markdown
Collaborator Author

R040 exact test corrections and bounded acceptance

Current 01cf4c7d2b59a49d22563df56152b1c24455fc64: public Go vet/race/unit/build #45195410806 terminal SUCCESS, BuildKit publication guard #45195410768 SUCCESS; full PR CI #45195411900 still pending terminal. No package downloads/modules/OCI artifacts, no privately accessible test data. This is a synthetic root-owned generation CAS reference and not integrated into the runtime control service. Parent #211 protected controller only, parent run HIL pending. Release held while old user-writable artifacts writer lock and Python owner pointer remain guest-accessible.

Copy link
Copy Markdown
Collaborator Author

R040 housekeeping — exact-source superseded, not released

This independent source draft is wholly carried forward by integration PR #214, exact f61c5ed45ccff505fcabf69268fcf05585d44500. All four original Go and workflow blobs are in a true two-parent commit; #214 full CI and dedicated Go checks have passed. #215 and #217 continue from #214.

Decision: close this redundant review surface as superseded without merge. No code from this PR is thereby accepted on protected main; all relevant release/security/provenance gates remain. Do not delete this source branch: a local-worktree census is still unavailable, and the immutable commit is referenced by the integration ancestry. Follow #214 and the authoritative winebot-research DLE #3 for new work. A hidden independent requirement can justify reopening with source evidence.

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