Native scoped admission with authenticated receivers and child isolation #666
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mausbot-native-admission"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Change
Adds optional, default-empty native admission for dedicated
allocation_read/executor_scopedprincipals. Each use checks the exact reconciled owner/allocation/session/workspace/sandbox/generation/executor/site/root/live-lease tuple. Canonical route/operation allowlists and independent executor receipt/process ownership checks deny adjacent or unattributed authority without effects.Native TLS terminates directly at the receiver, with exact issuer/host verification at the proxy. Optional Linux child isolation requires a root receiver, valid nonzero child UID/GID, separate session, cleared groups/capabilities and
no_new_privs. Key/token/config/data/issuer custody covers every symlink hop and excludes workspace traversal; protected hardlinks are required. API-created files/dirs remain usable by dropped children. Isolation rejects unisolated helper launch/restart/pair/login-status and active/unknown legacy helpers. Legacy configurations and #665 runtime_auth/private-slot implementation remain intact.CI4316 failure and correction
At
19a40cd99c7de3c34d231db92940a31f709d6e89,test-session-platformjob 0 failed: six new native TLS tests panicked withreceiver trust files require trusted directory ancestry(9 passed, 6 failed, 0 ignored). Genuine Solstice request1c7c85f8-cf98-48c9-a88a-c2329923e3faexplicitly checks out that SHA and exits 101. Forgejo's job-log download was not used for diagnosis.Cause: the new TLS fixtures depended on default filesystem modes. The retained round-2 executable reproduces all 15 tests passing under umask
0022and the identical six failures under0002. This demonstrates an environment-sensitive fixture defect, not a claimed flake. The original guest's exact umask/offending component was not logged and remains unknown.The correction at
612fd6a4977868fb2f057f3e77bc0ae126d61da1requests certificate/projected-generation directories with mode0700and sets generated public CA/leaf files to0644; private leaf keys stay0600. A new regression reexecutes the real trust/symlink test under child-only umask0000, retaining positive TLS/projected-key checks and writable-ancestry denials without racing the parent harness. This correction changes only fixtures/tests and evidence: production receiver/TLS/child/admission code, #665 runtime_auth and default-empty native_admission are unchanged.Failure, cause, validation limits and exact compressed logs · Provenance and SHA256 receipt.
Validation and review
03d34cc8-ff64-4edf-afed-6f5a0412e05fcompleted both receiver-isolation tests at19a40cd9, with structured receipttests_executed=2,tests_ignored=0. Probes include key/broad-token reads, same-filesystem hardlink, proc memory/fds, process_vm_readv, ptrace, signal/session, UID/GID/groups/caps/no_new_privs, CLOEXEC/setuid, API ownership, helper denials, endpoint failure/child rebind/no-bearer and rightful restart. This is old-head disposable-VM fixture proof only.akhrtd,akh-runtime-auth), client-only and final executor/sandbox checks. #665 runtime_auth fixtures: 13 passed; the real-backend case remains in CI. Full-diff independent static review against main closed the custody, identity sentinel, helper, hardlink, API ownership and session-signal findings. Round-2 evidence · Round-2 review.Fresh exact-head CI is required: all 16 native-admission tests (including the umask regression), remaining platform/transcript/Roman/real-backend checks, both Linux receiver-isolation tests and a new exact-head
RECEIVER_ISOLATION_CI_RECEIPTwith 2 executed / 0 ignored. Old-head passes do not validate this head. Parent owns CI watching and merges; this implementation child watches none.Post-merge acceptance (parent/operator)
Operator-approved live activation remains with the parent after merge and green exact-head CI:
Detailed acceptance and rollback.
No merge, deployment, live mutation, enrollment, grant issuance, activation, Board use or blind rerun was performed. #644 was untouched. WAITING-CI: this exact head is not merge-ready until its checks pass.
[WIP] Native scoped allocation and executor admissionto Native scoped admission with authenticated receivers and child isolation