The privileges gate: the early warning for the box's catalog allow-list (R-971, D2 = A)
gates / gates (push) Successful in 7s
gates / gates (push) Successful in 7s
check-privileges.py (stdlib, --fast) judges every template and ladder step against the same classes the controller v0.328.0 refuses; scripts/privilege-allowlist.json is a byte-identical copy of the controller's list. Decoys + a reader-equals-PyYAML check in test_gate_decoys.py. Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
1af6ea7508
commit
d5a443dbd1
5 files changed
+619
No files matched your search
@@ -34,6 +34,8 @@ Gates, in order (all must pass; **non-zero exit on any failure**):
|
||||
14. guide-version static, instant, ADVISORY — a user guide's checked_version is not the image tag the app
|
||||
runs: a WARN naming both versions, and exit 0 always (it never fails a push)
|
||||
16. redis-persistence static, instant, whole repo — no template's Redis/Valkey service runs append-only (R-1096)
|
||||
17. privileges static, instant, whole repo — no template or ladder step asks for a container right the box's
|
||||
allow-list does not give (R-971); the box (controller >= 0.328.0) refuses on its own
|
||||
15. gate-decoys the decoy suite (test_gate_decoys.py) — each gate above still convicts its decoys
|
||||
(R-1115). ~3 minutes, needs PyYAML: the full run only, never --fast
|
||||
4. engine-major static, needs GIT HISTORY — no database engine pin crosses a MAJOR version
|
||||
@@ -155,6 +157,11 @@ GATES = [
|
||||
# R-1096 (2026-10-17): no catalog Redis runs append-only — a damaged AOF keeps Redis (and its app) down until a
|
||||
# person repairs it; snapshots are written by temp-file-and-rename. Static, stdlib only: the hook and CI.
|
||||
("redis-persistence", "check-redis-persistence.py", False, True, False),
|
||||
# R-971 (2026-10-17, operator decision D2 = A): no template or ladder step asks for a container right the BOX's
|
||||
# allow-list does not give (privileged, cap_add, devices, host namespaces, the Docker socket, binds outside the
|
||||
# data roots, ...). The box (controller >= 0.328.0) is the authority and refuses on its own; this is the early
|
||||
# warning, so a bad template fails here instead of on every box. Static, stdlib only: the hook and CI.
|
||||
("privileges", "check-privileges.py", False, True, False),
|
||||
# R-1115 (2026-10-17): the gates' OWN decoy suite — every gate above is red-proved against its decoys here. It
|
||||
# was not in this table, so a case that stopped convicting (a template edit removed its premise) failed for a
|
||||
# night with nobody looking. Static (a local clone, a stub docker), but ~3 minutes and it needs PyYAML, so NOT
|
||||
|
||||
Reference in new issue
Block a user