Files
ZitPlane/tests/ci/production_contract/README.md
T

1.3 KiB

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 plus four additional nonempty command/entrypoint/build/config fixtures. 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.

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.