docs(oidc): synchronize Run 103 normalized extra-deploy blocker across project and operator docs

This commit is contained in:
victorsteele428 committed 2026-11-23 13:14:50 +00:00
1 parent 087660f4e4
commit 81dfc46aec
8 files changed
+38

No files matched your search

+6
View File
@@ -179,3 +179,9 @@ Run #99 confirmed input `644 UID:GID 0:0`, copied output/image executable and ac
`tests/ci/production_contract/validate.py::diagnose_normalized_runtime_fields` is NEW: only five known service IDs and four predefined fields (`build`, `command`, `entrypoint`, `configs`) with a category such as `NULL`/`EMPTY_LIST`/`NONEMPTY_LIST` are printed; no untrusted key/value, environment, full Compose JSON or secret. Run #102 observed null `command` + null `entrypoint` on every service. `validate_compose` now allows only inert normalized `command=None`, `entrypoint=None`, `configs=None/[]`; still rejects `build` of any kind, non-null executable override and nonempty configs, with exact other port/image/secret/privilege/zero-replica checks preserved.
`negative_cases` preserves original 25 security fixtures and adds four targeted `NONEMPTY_COMMAND`, `NONEMPTY_ENTRYPOINT`, `BUILD_CONTEXT`, `NONEMPTY_CONFIGS` rejects plus a safe inert-null acceptance fixture. **None of these 29 negative checks ran in Run #102**, because `validate_compose` hit `DEPLOY_DISABLED` first. No claim of their acceptance. Safe next diagnostic should inspect only type/category of normalized deploy/replicas and preserve nonzero prohibition, without altering YAML/workflow. See `notes/P05-OIDC-08-A01.md`.
## P05-OIDC-08-A02 — validator-only new source functions and terminal limits
`tests/ci/production_contract/validate.py::verify_tracked_zero_replica_fixture()` reads ONLY the checked-in `deployment/production-contract/compose.ci.yaml` as text, requires exact five service blocks and one `deploy: replicas: 0` per block, prints a static PASS marker. Confirmed **PASS** in Run #103. `diagnose_normalized_deploy()` examines only recognized five service IDs, `deploy` mapping presence/type, unexpected extra field **existence** and `replicas` zero/nonzero TYPE classes without printing arbitrary keys/values. In Run #103, all 5 `deploy` mappings were OBJECT with `REPLICAS_INT_ZERO` and `UNEXPECTED_FIELDS_PRESENT`. Actual unknown key names were intentionally not logged.
`validate_compose()` continues to reject build/executable overrides, public ports, Docker socket, privilege, unexpected images, nonzero replicas and unfamiliar `deploy` keys, with conditional handling of proven source-zero normalized omission. The **actual** normalized mapping had extra keys, so strict `DEPLOY_DISABLED` **FAIL**, before final positive marker or `negative_cases()`. All original 25, prior 4 runtime and 3 additional replica negatives remain **SOURCE PRESENT / NOT CI EXECUTED**. The unchanged `workflow_safety()` checker **PASS**. Future A03 must first identify extra normalized deploy key name/safe type and only narrow-allow inert defaults if truly proven, retaining fail-closed security. No app/backend/Compose/workflow/source other than validator changed.