ci(oidc): add strict stdlib synthetic production policy validator and 25 fail-closed fixtures

This commit is contained in:
victorsteele428 committed 2026-11-23 12:35:57 +00:00
1 parent 45542609c6
commit 20fe2e51ea
3 files changed
+333

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
# 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 in-memory negative 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](../../../notes/P05-OIDC-08.md).