Files
ZitPlane/tests/ci/production_contract

CI-only synthetic production security contract validator

Owner: ZitPlane CI/security maintainers. New P05-OIDC-08 folder; update only under separately approved Scope Lock and synchronize this README, MINIFEST and notes/project/docs.

validate.py --compose-json-stdin accepts normalized JSON from docker compose -f deployment/production-contract/compose.ci.yaml config --format json, validates a strict source-controlled policy and all service/secret/network constraints, then runs 25 original in-memory negative fixtures, four runtime-override fixtures, three replica/deployment-mode fixtures and eight unsafe extra-deploy metadata fixtures (40 preserved original negative assertions), plus eight new secret-grant negative fixtures. In Gitea Run #105, all 48 ran and PASSed with their exact expected rejection class, after normalized grant source/target policy PASS. The earlier Run #104 failure (40 NOT EXECUTED) remains historical evidence. Each deliberately malformed issuer, exact callback, wildcard, Login/Console/API route, h2c, Host/Forwarded, public ports, missing secret reference, embedded credential, Docker socket, privileged mode and deployability must be rejected by the exact expected rule.

validate.py --workflow-safety checks that the manual Gitea workflow includes only two Docker Compose config commands and no Docker resource lifecycle. This is static evidence of no resource actions configured, not a read of live daemon state.

P05-OIDC-08-A03 actual status: Gitea Run #104 / Job #220 FAILURE: Compose config PASS, five source and normalized int-zero replicas PASS, five resources:{} + placement:{} inert defaults VERIFIED; previous deployment metadata rejection cleared, next SERVICE_SECRET_REFS FAIL before any negative fixture executed. Only validator code changed; Compose, JSON policy and manual workflow unchanged. Next A04 validator-only grant-shape diagnostics requires separate approval.

P05-OIDC-08-A04 accepted: Run #105 / Job #221 COMPLETED SUCCESS on daaa8b259a519ae0290ba28936ef2279b3a9172c. Seven normalized service grant objects use symbolic approved source names and canonical /run/secrets/<source> mount targets (classified without printing values). Exact sources by service, root/read-only grant metadata, zero replicas, inert deploy/runtime, issuer, h2c, Host/forwarding, private ports/secret registry and all 48 negative security fixtures PASS. Manual-only/no Docker resource lifecycle commands and runner task cleanup PASS. Source-only fix in validator; workflow, YAML fixture and policy unchanged. See notes/P05-OIDC-08-A04.md and docs/P05-OIDC-08-A04.md.

No production DNS, real HTTPS/TLS, login/user/client, secrets/keys, production server or deployment is reached by test logic; no Compose up/build/pull/run. See P05-OIDC-08.