Repository navigation
Open
Labels
P3-hardeningDefence in depth. Meter-gated: only taken when the 7-day meter is under targetblockedWaiting on another issue or a release; the runner clears it when that closesenhancementNew feature or requestrefactorCode health / tech debt; no behavior changesecuritySecurity-sensitive issue or hardeningsize:LSized L against one local session
Milestone
Description
What's the problem
The privileged half of config apply is Bash: control_apply, _control_commit (atomic commit with fsync and backups), _control_claim_staged (symlink and ownership checks), _with_control_lock and util/control-guards.sh (6 h throttle, root-owned 0:0 700/600 modes, flock).
What it impacts
Remote config apply for every rig and the spool consumed from the control receiver. ADR 0001 is the boundary. Blocked on #713 and on any root handoff the #684 update API adds.
How I found it
Reading the functions above and the tests (tests/test-control-revocation.sh, test-control-replay.sh, test-config-apply-state.sh, the control phase of tests/e2e-real.sh) at ea41133.
How important is it
Medium to high for care: must not widen privilege.
Acceptance criteria
- With
RIGFORGE_IMPL=rust,control-applyruns natively under the same lock andmake test-suitepasses unchanged. - Each of these is refused as today, with a native test per refusal: symlink spool entry, wrong owner, wrong mode, throttle directory not 0:0 700.
- Config commit is atomic with file and directory fsync and backups; status records use exactly the vocabulary pinned in
tests/contract/v1/control-status.json(applied, busy, failed, noop, pending, rolled_back, rejected, started, throttled). - The Rust root code never reads a path a non-root user can write without the claim checks.
- A real apply under
RIGFORGE_IMPL=rustis linked from the PR (bench-ci job ormake e2e-realcontrol phase); if no lane exists, the ledger records not run and why. -
PARITY.mdupdated.make checkpasses.
Possible solutions
- Port claim and commit first, keep
flockas an external command. - Unknown: the Token-authenticated API to check for and perform an update, with scope, rate limit and single flight #684 update API may add a root handoff; follow its merged shape.
Metadata
Metadata
Assignees
Labels
P3-hardeningDefence in depth. Meter-gated: only taken when the 7-day meter is under targetblockedWaiting on another issue or a release; the runner clears it when that closesenhancementNew feature or requestrefactorCode health / tech debt; no behavior changesecuritySecurity-sensitive issue or hardeningsize:LSized L against one local session
Activity
pithead-architect commentedon Nov 27, 2026
Blocked by #713 and #714 (native links present).