ZDDC/zddc/internal/policy
ZDDC 88ef2dd921 docs(server): correct overstated WORM/config-edit comment; pin two-step demotion
The decider comment claimed standing config-edit "only ever grants VerbA, so it
can never write/delete/create WORM records." True for a single decision, but it
overstated the guarantee: a config-editor who administers a WORM zone can edit
that zone's .zddc (inherit:false drops the embedded worm:), after which ordinary
writes are no longer clamped. That two-step demotion is intended — owning a
subtree's policy includes its worm: marker, and the edit is access-logged — so
WORM is tamper-EVIDENT to its policy owner, not tamper-PROOF.

Rewrite the comment to say so (and note where to gate worm: relaxation behind
elevation if a deployment needs tamper-proof markers), and add
TestStandingConfigEdit_WormDemotionIsTwoStep pinning the boundary (direct WORM
write denied unelevated), the lever (config-edit allowed), and the consequence
(post-demotion write allowed). Surfaced by the deferred-findings triage.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 19:57:13 -05:00
..
rego fix(server): fail-close the reference Rego; stop claiming internal-decider parity 2026-06-09 19:30:09 -05:00
federal_parity_test.go refactor(audit): pre-release cleanup pass 2026-05-18 16:28:07 -05:00
parity_test.go refactor(audit): pre-release cleanup pass 2026-05-18 16:28:07 -05:00
policy.go docs(server): correct overstated WORM/config-edit comment; pin two-step demotion 2026-06-09 19:57:13 -05:00
policy_test.go refactor(audit): pre-release cleanup pass 2026-05-18 16:28:07 -05:00
principal_test.go feat(policy): config-edit is a standing permission, not elevation-gated 2026-06-05 17:00:54 -05:00
rego.go fix(server): fail-close the reference Rego; stop claiming internal-decider parity 2026-06-09 19:30:09 -05:00
rego_failclosed_test.go fix(server): fail-close the reference Rego; stop claiming internal-decider parity 2026-06-09 19:30:09 -05:00
standing_config_test.go docs(server): correct overstated WORM/config-edit comment; pin two-step demotion 2026-06-09 19:57:13 -05:00