docs(oidc): synchronize Run 103 normalized extra-deploy blocker across project and operator docs
This commit is contained in:
1 parent
087660f4e4
commit
81dfc46aec
8 files changed
+38
No files matched your search
@@ -196,3 +196,7 @@ Next independent **P05-OIDC-08-A01** should modify **only** `tests/ci/production
|
||||
## 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.
|
||||
|
||||
## P05-OIDC-08-A02 — five normalized zero replicas confirmed, unknown extra deploy keys
|
||||
|
||||
Exactly one existing manual Gitea [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) / Job #219 `completed/failure` at source `45a2edb854acd98546e60a68482075bc5f742bd2`. Unchanged synthetic `compose.ci.yaml` parses under `docker compose config --quiet` **PASS**. Stdlib validator independently confirmed all five tracked source `deploy.replicas: 0` declarations and read the canonical Compose JSON: **each** of five service `deploy` mappings retained a true JSON/Python **integer zero** `replicas` property, **but each also contained additional unknown top-level deploy keys**. Strict `set(deploy).issubset({"replicas"})` therefore fail-closed with `ZITPLANE_P08_FAIL_CLOSED_DEPLOY_DISABLED`. Extra key **names, types and effects NOT VERIFIED**; do not infer harmlessness. Source original 25 + four runtime + three new replica negatives **NOT EXECUTED**; separate `always()` manual-only/no Docker lifecycle action checker **PASS**. Runner task container/two volumes/network removed. No application service or production DNS/TLS/secret/deployment touched. Next independently approved `P05-OIDC-08-A03`: validator-only safe exact extra-key classification and evidence-proven inert-default narrowing, one manual CI; do not change Compose/workflow. Prior real imported Login V2 OIDC Run #99 separate success.
|
||||
@@ -227,3 +227,10 @@ Run #101 source `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a`: Compose parse PASS,
|
||||
- **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.
|
||||
|
||||
## P05-OIDC-08-A02 — exact changed source and unmapped normalized metadata
|
||||
|
||||
- **Only source change:** `tests/ci/production_contract/validate.py`, source-tested SHA `45a2edb854acd98546e60a68482075bc5f742bd2`. New tracked-file source replicas assertions, safe allowlisted normalized `deploy` presence/type/zero diagnostics and 3 additional malformed-deploy targeted fixtures; prior 25+4 retained.
|
||||
- **Strict read-only:** `deployment/production-contract/compose.ci.yaml` and `routing-policy.json`, existing `.gitea/workflows/p05-production-contract-dry-run.yml`, all other tests and Login/Auth.js/backend, lockfiles, runner and infrastructure.
|
||||
- **CI Run #103 terminal:** Compose config and five original-zero fixture declarations PASS; five normalized `replicas` int zero PASS; **five unexpected extra deploy fields PRESENT**, exact name unknown; `DEPLOY_DISABLED` rejection FAIL; all 32 negative fixture cases NOT EXECUTED. Existing `notes/P05-OIDC-08-A02.md`, `docs/P05-OIDC-08-A02.md` record honest security-blocking result.
|
||||
- Next source edit only with separately approved `P05-OIDC-08-A03`; no post-dispatch patch in this phase.
|
||||
@@ -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.
|
||||
@@ -119,3 +119,7 @@ The new manual CI workflow installs Git, Python 3 stdlib, Docker CLI/Compose and
|
||||
## 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.
|
||||
|
||||
## P05-OIDC-08-A02 — static Compose normalization evidence, not production dependencies
|
||||
|
||||
[Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) uses **unchanged** manual workflow, Git/python3 stdlib/Docker Compose CLI only; no new external app dependencies, images, credentials or actual production endpoint. Source `45a2edb854acd98546e60a68482075bc5f742bd2` verified original five `replicas: 0` declarations and normalized Docker Compose JSON integer-zero `replicas` for every synthetic service. The strict `deploy` keys check failed only because **additional unknown metadata fields** were present in all normalized objects. Do **not** infer those fields' names, allow production behavior, use the synthetic fixture as actual Compose, or start services. CI safety passed; 32 malformed contract assertions were NOT EXECUTED. Production TLS, secret vault and encrypted restore continue to require separate authorization.
|
||||
Reference in new issue
Block a user