docs(oidc): synchronize null-field RCA and zero-replica blocker across developer and operator docs

This commit is contained in:
victorsteele428 committed 2026-11-23 13:00:55 +00:00
1 parent 0e30331a9c
commit c50c2da1de
8 files changed
+38

No files matched your search

+4
View File
@@ -192,3 +192,7 @@ New **manual** `.gitea/workflows/p05-production-contract-dry-run.yml` uses a dis
[Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) / Job #217, exact source `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a`, **COMPLETED FAILURE**: Compose parsing PASS `ZITPLANE_P08_COMPOSE_STATIC_CONFIG_PASS`; normalized security validator **FAIL `ZITPLANE_P08_FAIL_CLOSED_RUNTIME_BEHAVIOR`**; manually dispatched/no-resource-actions configured verification PASS; **25 in-memory negative cases NOT EXECUTED**. Normalized field name/type not logged, so the specific cause remains UNKNOWN. CI job container/task volumes/network removed by Gitea runner; this is not inspection of production resources. Existing imported custom Login V2 E2E [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) remains a separate accepted result.
Next independent **P05-OIDC-08-A01** should modify **only** `tests/ci/production_contract/validate.py` to classify the offending Compose-normalized service field without values/secrets and permit only independently proven inert defaults, while rejecting real commands/build/configs. Then one separately approved CI static run, no rerun in P05-OIDC-08.
## P05-OIDC-08-A01 — normalized Compose null RCA and next gate (one-run evidence)
Exactly one manual [Gitea Run #102](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/102) / Job #218 `completed/failure` on `07c91ea5bcb2037e3c7b76261e1eb106b49d223f`, workflow/Compose unchanged. `docker compose config --quiet` **PASS**. New safe diagnostics inside `tests/ci/production_contract/validate.py` showed **`command: null` and `entrypoint: null` for all five services**, proving the Compose-normalized defaults behind historical Run #101 `RUNTIME_BEHAVIOR`. The narrow null-allowlisting proceeded past that gate; the subsequent normalized `deploy.replicas` strict rule **FAILED** `ZITPLANE_P08_FAIL_CLOSED_DEPLOY_DISABLED`. Exact deploy/replica normalized type/value not logged. **Both original 25 and new four runtime negative fixtures NOT EXECUTED**, not accepted. `always()` manual-only/no Docker lifecycle action configuration check PASS; Gitea runner-owned task container/volumes/network removed. No application services, DNS/TLS/production or source changes after the run. Follow-up `P05-OIDC-08-A02` needs separate approved validator-only `deploy.replicas` RCA and one manual static CI. Previous custom Login V2 real OIDC Run #99 remains accepted.
+7
View File
@@ -220,3 +220,10 @@ Source-tested SHA `7d6b6d0704b9e39bcb6e74257dadf0b64a19fc0f`; documentation clos
- `notes/P05-OIDC-08.md`, `docs/P05-OIDC-08.md`: exact baseline/Scope Lock, Run #101 terminal failure and separately approved next RCA. No source files in `auth/**`, `users/**`, `core/**`, existing Compose, old workflows/tests/manifests/locks or runner changed.
Run #101 source `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a`: Compose parse PASS, normalized `RUNTIME_BEHAVIOR` FAIL; 25 negative fixtures NOT EXECUTED. Preserve exact historical results, no post-CI source repatch.
## P05-OIDC-08-A01 — exact source boundary and evidence
- **Only source changed:** `tests/ci/production_contract/validate.py`. Added allowlisted normalized runtime field/type-only RCA diagnostics and permitted inert null command/entrypoint and null/empty configs; original 25 negatives unchanged, four new executable-field negatives. No new source file or fixture.
- **Strictly unchanged:** `deployment/production-contract/compose.ci.yaml` and `routing-policy.json`, `.gitea/workflows/p05-production-contract-dry-run.yml`, all other existing CI/deployment files, imported `auth/**`, Account `users/**`, backend `core/**`, packages and runner.
- **New docs:** `notes/P05-OIDC-08-A01.md` pre-source Scope Lock and full [Run #102](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/102) evidence; `docs/P05-OIDC-08-A01.md` operator acceptance. This is **NOT** a working production config or proof of actual HTTPS.
- Next A02 proposal: validator-only zero-replica normalization safe-shape RCA/strict check and one separate CI run. No source patch after terminal FAIL.
+6
View File
@@ -173,3 +173,9 @@ Run #99 confirmed input `644 UID:GID 0:0`, copied output/image executable and ac
`validate_compose` accepts normalized JSON from Compose `config --format json` and enforces exact synthetic images, five services, private-only network, zero replicas, no ports/volumes/sockets/privileged fields, referenced-only external placeholder secrets and no embedded environment secrets. **In Run #101 it failed with `RUNTIME_BEHAVIOR`** while checking the normalized service dict; offending field/type not logged and cannot yet be assigned to Compose default vs true runtime field.
`negative_cases` contains **25 targeted in-memory mutation checks** that require a specific error class. Run #101's positive failure occurred **before** this function; negative coverage is **NOT EXECUTED**. `workflow_safety` allows only two `docker compose ... config` commands, manual trigger, and proves no Docker lifecycle actions configured; **PASS** in Run #101. `main` prints fixed status codes; no input/credential dumps, DNS, runtime containers or external contacts. A01 may diagnose/reconcile Compose normalized inert keys only with separate approval.
## P05-OIDC-08-A01 — changed validator-only function semantics
`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`.
+4
View File
@@ -115,3 +115,7 @@ Current deployment material is only a localhost HTTP developer Compose plus a CI
The new manual CI workflow installs Git, Python 3 stdlib, Docker CLI/Compose and uses `docker compose config --quiet` and `--format json`, passing normalized JSON to `tests/ci/production_contract/validate.py`. There are **no new npm/pnpm packages, manifests, lockfiles, images to release, secrets, production DNS/TLS dependencies or Docker daemon lifecycle commands**. The five `synthetic.invalid` Compose services and named external CI placeholder secrets are *contract objects only*, not runnable production infrastructure. The validator reads only checked-in local files and stdin and contains 25 in-memory malformed cases.
[Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) source `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a` proves Parse PASS and workflow safety PASS but normalized runtime-field guard **FAIL**, so no 25-negative acceptance. The runner job's tools may be installed through CI package sources, but this does not query proposed auth/account public endpoints. Future `P05-OIDC-08-A01` requires a separate one-file validator RCA and independent CI. Never attempt `docker compose up` with these fixtures.
## P05-OIDC-08-A01 — Compose normalization, not a new runtime dependency
The same manual-only Docker Compose `config` + Python stdlib pipeline was used in [Run #102](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/102), tested `07c91ea5bcb2037e3c7b76261e1eb106b49d223f`: CLI install/checkout/Compose static parse PASS, safe type-only diagnostic proved `command:null` and `entrypoint:null` for all five undeployable services. The new null compatibility rule was passed; `DEPLOY_DISABLED` then failed before issuer/routing success markers or 25+4 negative fixtures. No new package, image, application build, external endpoint, database, credential or production secret was introduced. Existing synthetic `deploy: {replicas: 0}` declarations and original workflow **untouched**; the exact normalized `deploy.replicas` representation remains unknown and needs read-only evidence before any acceptance. No local Docker/CI or production deployment performed.