12 lines
2.0 KiB
Markdown
12 lines
2.0 KiB
Markdown
# 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 source-present negative assertions). **In Run #104 all 40 remained NOT EXECUTED** because strict service-secret-grant validation failed before `negative_cases()`. 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](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/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.
|
|
|
|
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](../../../notes/P05-OIDC-08.md).
|