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
@@ -67,3 +67,5 @@ Future feature additions need an evidence-backed status update here, an exact de
|
||||
**P05-OIDC-08 (2026-11-23) static contract result:** CI-only synthetic proposed issuer/routing policy, 5 zero-replica `synthetic.invalid` services and stdlib validator **IMPLEMENTED**. [Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) Job #217 **FAILURE**: Compose `config --quiet` **PASS**; strict normalized `RUNTIME_BEHAVIOR` validation **FAIL** (unknown normalized field), so 25 negative security fixtures **NOT EXECUTED**; manual-only/no-resource-action workflow safety **PASS**. Nothing was deployed and no real DNS/TLS/keys or users verified. Earlier source-built custom Login real OIDC [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) **PASS** remains a separate disposable HTTP localhost acceptance; public HTTPS/Console/MFA/SSO/backup **BLOCKED**. [P05-OIDC-08 report](P05-OIDC-08.md).
|
||||
|
||||
**P05-OIDC-08-A01 (2026-11-23) latest synthetic contract status:** [Run #102](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/102) / Job #218 **FAIL** after `docker compose config` PASS; diagnostics **VERIFIED** null `command` and `entrypoint` on all five services, correcting previous Run #101 runtime-default false positive. Next strict normalized zero-replica `DEPLOY_DISABLED` rule **FAIL** with exact field/type UNKNOWN, so all 25 original and four added runtime security negative checks **NOT EXECUTED**. Manual-only/no-resource-action policy PASS and runner job cleanup observed. Full synthetic production-config gate **BLOCKED**; no real TLS/DNS/secrets/deploy or actual Login/MFA/Console acceptance. Prior source-built imported Login V2 real **disposable** Run #99 remains SUCCESS. [A01 report](P05-OIDC-08-A01.md).
|
||||
|
||||
**P05-OIDC-08-A02 (2026-11-23) synthetic security acceptance status:** Gitea [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) Job #219 **FAILURE**; Compose `config --quiet` PASS, source five `replicas: 0` PASS, normalized `deploy.replicas` **integer zero in all five** VERIFIED, but **all five contain additional deploy fields**, name/type/effect UNKNOWN. Strict `DEPLOY_DISABLED` rejects extra keys; **25+4+3 negative fixtures NOT EXECUTED**. Manual-only/no Docker resource action safety PASS, runner task cleanup observed. Full static contract **BLOCKED**, production HTTPS/domains/keys/backups/Console/MFA/SSO NOT VERIFIED. Earlier real disposable custom Login V2 Run #99 **SUCCESS** unaffected. [A02 operator guide](P05-OIDC-08-A02.md).
|
||||
@@ -171,3 +171,10 @@ Approved baseline `b3841d8c05d6b47ceaf1dbc5f7103b8de4f256e6`, accepted [Run #96]
|
||||
- **Exactly one** [Run #102](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/102) / Job #218 `COMPLETED FAILURE`: tooling/checkout and static `docker compose config --quiet` PASS; safe diagnostic markers show Compose added `command: null` + `entrypoint: null` to **each of 5 services**. This proves previous Run #101 `RUNTIME_BEHAVIOR` root cause and new narrow compatibility passed. Next zero-replica `ZITPLANE_P08_FAIL_CLOSED_DEPLOY_DISABLED` **FAIL**, its precise normalized representation **UNKNOWN**.
|
||||
- Original 25 plus four new runtime negative assertions **NOT EXECUTED**. Workflow-safety `always()` PASS; runner-owned task container/two volumes/network removed. No application service lifecycle, local tests, production DNS/SSL/secret access, registry or deployment.
|
||||
- **P05-OIDC-08-A01 terminal status: PARTIAL RCA PASS / FULL SYNTHETIC CONTRACT ACCEPTANCE BLOCKED.** No rerun or post-run source patch. Next new approval `P05-OIDC-08-A02`: validator-only safe normalized `deploy.replicas` evidence/zero enforcement, all 29 negatives/positive acceptance in one manual CI run. See [full report](../notes/P05-OIDC-08-A01.md), [operator summary](P05-OIDC-08-A01.md).
|
||||
|
||||
## P05-OIDC-08-A02 — Integer-zero deploy replicas verified; normalized metadata blocker (2026-11-23)
|
||||
|
||||
- Approved baseline `eaf299f36ff12e625657521f97bd1d269904eaec`, pre-source Scope Lock first committed at `798f87864414c81ecf50b9fc58f078ac338e5747`. Only `tests/ci/production_contract/validate.py` changed; unchanged synthetic fixture/JSON/workflow/Auth.js/Login/backend/deployment/packages. Exactly one Gitea [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) / Job #219 tested source `45a2edb854acd98546e60a68482075bc5f742bd2`, **COMPLETED FAILURE**; no local app tests or repeated CI.
|
||||
- `docker compose config --quiet` PASS, source checked five `replicas:0` PASS. New type-only diagnostics: **all five normalized deploy mappings are objects with integer `replicas:0`, plus extra unknown fields**. Strict `DEPLOY_DISABLED` rule rejects the additional fields, hence CI terminal FAIL. Normalized replicas are **not** missing, string or nonzero. Extra key names/semantics **UNKNOWN**.
|
||||
- Workflow-safety `always()` PASS and runner task cleanup observed. **All 25 original, 4 runtime and 3 replica negatives NOT EXECUTED**. No actual HTTPS/DNS/production secret/login or image/server deploy.
|
||||
- Phase outcome **PARTIAL RCA PASS / OVERALL CONTRACT ACCEPTANCE BLOCKED**. Next separately approved `P05-OIDC-08-A03`: validator-only safe extra deploy-key classification and evidence-proven narrow inert-default handling, then exactly one independent static CI run to reach positive and negative checks. [Forensic notes](../notes/P05-OIDC-08-A02.md), [operator report](P05-OIDC-08-A02.md).
|
||||
@@ -154,3 +154,7 @@ For a later separately approved production rollout, plan **one** HTTPS ZITADEL i
|
||||
## P05-OIDC-08-A01 — security contract status, not production instructions
|
||||
|
||||
Existing `deployment/production-contract/compose.ci.yaml` remains purposely non-deployable and MUST NOT be run with `up`/`pull`/`build`. [Run #102](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/102) parsed its schema and independently verified the normalized `command:null`/`entrypoint:null` defaults; runtime override restriction now passes, but the stricter **zero-replica normalized shape** gate still FAILS (`DEPLOY_DISABLED`). No positive end-to-end policy marker and none of 29 synthetic security negative fixtures are accepted. Do not alter proposed `auth.vib.tools`/`account.vib.tools` DNS, run public TLS, reuse dev bootstrap/secrets or deploy the fixture. Future separately approved A02 must diagnose normalized `deploy.replicas` without printing values or starting services. [Operator status](P05-OIDC-08-A01.md).
|
||||
|
||||
## P05-OIDC-08-A02 — static result, not an installation instruction
|
||||
|
||||
The unchanged `deployment/production-contract/compose.ci.yaml` is *non-deployable* (`synthetic.invalid` images, zero replicas, private network, name-only external secrets); never start/build/pull it or apply it to real Coolify/VPS. [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) checked five source and five JSON normalized integer-zero replicas, but extra normalized `deploy` object fields failed the strict security allowlist. Names/types unknown; all 32 planned invalid fixtures NOT EXECUTED. Do not loosen `DEPLOY_DISABLED`, alter DNS/TLS/keys or call a real deployment. Later A03 is validator-only normalization RCA, separately approved.
|
||||
@@ -113,3 +113,7 @@ If master-key or DB recovery is needed, preserve existing key/volumes and use an
|
||||
## P05-OIDC-08-A01 — normalized command/entrypoint root verified; new replicas blocker
|
||||
|
||||
[Gitea Run #102](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/102) proves Docker Compose `config --format json` emits `command: null` and `entrypoint: null` on each of the five synthetic services. The strict original `RUNTIME_BEHAVIOR` validator had rejected these inert absent-execution defaults; the narrowly scoped check now accepts only null values (actual nonempty commands/builds/configs still disallowed). The static pipeline next printed `ZITPLANE_P08_FAIL_CLOSED_DEPLOY_DISABLED`. **No normalized `deploy.replicas` shape/value was logged**, so do not claim that replicas were omitted or stringified, or loosen zero-replica safety based on a guess. All 29 malformed fixture checks remain **NOT EXECUTED**; manual-only safety PASS. The synthetic fixture is **not deployable**. Any diagnostic must remain value-free, single new approval/CI only, without editing Compose/workflow, contacting real DNS/TLS or starting containers. [A01 details](P05-OIDC-08-A01.md).
|
||||
|
||||
## P05-OIDC-08-A02 — normalized replicas are integer zero; unknown extra deploy fields
|
||||
|
||||
In [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103), `ZITPLANE_P08_SOURCE_ALL_FIVE_REPLICAS_ZERO_PASS` proves the canonical fixture's five explicit zero declarations; all five `ZITPLANE_P08_NORMALIZED_DEPLOY_*_REPLICAS_INT_ZERO` markers prove the normalized JSON retained integer zero. But `*_UNEXPECTED_FIELDS_PRESENT` on all five precedes `ZITPLANE_P08_FAIL_CLOSED_DEPLOY_DISABLED`. **Do not troubleshoot this as a replica type/string/missing problem** or allow arbitrary deploy keys; actual extra field names were not logged, so no confident classification of their harmlessness exists. Only next independently approved A03 can add safe finite-allowlist key/type diagnostics and adjust inert metadata narrowly if proven; preserve fail-closed rejection of actual deployment behavior, all 32 negatives, HTTP/wildcard/ports/secrets guardrails. Never output raw normalized JSON/credentials or run synthetic Compose `up`/build/pull. [Detailed report](P05-OIDC-08-A02.md).
|
||||
@@ -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