docs(oidc): synchronize null-field RCA and zero-replica blocker across developer and operator docs
This commit is contained in:
1 parent
0e30331a9c
commit
c50c2da1de
8 files changed
+38
No files matched your search
@@ -65,3 +65,5 @@ Future feature additions need an evidence-backed status update here, an exact de
|
||||
**P05-OIDC-07 production readiness status (2026-11-23):** Imported **custom source-built** Login V2 / real Chromium OIDC→Auth.js protected Account/session/negative/logout and dual cleanup **VERIFIED in disposable Run #99** (unchanged). Account `validatedUrl()` production HTTPS-origin guard, PKCE/state/nonce, subject/expiry checks and existing UI/identity API **IMPLEMENTED**. Proposed `auth.vib.tools` single issuer and `account.vib.tools` RP, secure TLS/h2c ingress, trusted headers, registered exact callback/real HTTPS Secure/SameSite cookies, Console cutover, production secret manager/32-byte master-key escrow, backups+isolated restore, SMTP, immutable image release and monitoring **UNVERIFIED / BLOCKED**. MFA/passkey, federated logout and second-app SSO **NOT EXECUTED**. These domain names are hypothetical, and this read-only phase made **no new source/CI/deployment changes**. [Audit](P05-OIDC-07.md).
|
||||
|
||||
**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).
|
||||
@@ -164,3 +164,10 @@ Approved baseline `b3841d8c05d6b47ceaf1dbc5f7103b8de4f256e6`, accepted [Run #96]
|
||||
- New manual workflow `p05-production-contract-dry-run.yml` and five-service `synthetic.invalid`, zero-replica, private-network, no-host-port Compose contract are **non-deployable**. Proposed `https://auth.vib.tools` issuer and `https://account.vib.tools` origin/callback NOT live checked.
|
||||
- Exactly one [Gitea Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) / Job #217 **COMPLETED FAILURE**: toolchain+checkout PASS, `docker compose ... config --quiet` PASS, strict Python normalized service validator **FAIL** at `ZITPLANE_P08_FAIL_CLOSED_RUNTIME_BEHAVIOR`; offending field/type not exposed; all 25 in-memory negative cases **NOT EXECUTED**. `always()` workflow static manual-only/no-resource-action check PASS. Gitea job container/volumes/network removed; no application services deployed.
|
||||
- **Phase outcome: SOURCE IMPLEMENTED / STATIC COMPOSE PARSE PASS / FULL SECURITY CONTRACT ACCEPTANCE BLOCKED**. No local tests, reruns, live DNS/SSL, real secrets/users, image pulls/build, production deployment. Next separately approved `P05-OIDC-08-A01` limits source writes to `tests/ci/production_contract/validate.py` for safe normalized-key RCA and narrow inert-default normalization, retaining actual behavior rejection. See [notes](../notes/P05-OIDC-08.md) and [operator guide](P05-OIDC-08.md).
|
||||
|
||||
## P05-OIDC-08-A01 — Normalized runtime-field RCA (2026-11-23; overall CI FAILURE)
|
||||
|
||||
- Approved baseline `f3528841f444d1bc119bc067db2e044269141555`; pre-source Scope Lock note commit `b235a39078a80464aaf01ee9fa1aca1f1f3e5c15`. One narrowly edited source file `tests/ci/production_contract/validate.py`, tested SHA `07c91ea5bcb2037e3c7b76261e1eb106b49d223f`; all Compose, deployment, existing workflows, Auth.js/Login/Go/package source read-only.
|
||||
- **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).
|
||||
@@ -150,3 +150,7 @@ For a later separately approved production rollout, plan **one** HTTPS ZITADEL i
|
||||
`deployment/production-contract/compose.ci.yaml` contains only reserved-domain synthetic images, zero replicas, private network, no ports and external *placeholder names* for secrets. **NEVER run `docker compose up`, `run`, `build` or `pull` against it; never use this fixture as a production Coolify/VPS installer.** `routing-policy.json` specifies *proposed* HTTPS issuer `https://auth.vib.tools`, separate `https://account.vib.tools` and exact callback but does not configure a real reverse proxy. The manual Gitea workflow is limited to Compose `config` and Python-only static checks.
|
||||
|
||||
[Gitea Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) on `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a` confirmed Compose syntax PASS but **FAILED** its normalized service runtime-field security validator, before 25 deliberately malformed cases were run. Workflow static no-lifecycle policy PASS; this is not live TLS/credential/backup acceptance. Wait for separately approved `P05-OIDC-08-A01` normalized JSON key-only RCA; do not disable security checks or invoke production endpoints. [Full operator status](P05-OIDC-08.md).
|
||||
|
||||
## 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).
|
||||
@@ -109,3 +109,7 @@ If master-key or DB recovery is needed, preserve existing key/volumes and use an
|
||||
## P05-OIDC-08 — synthetic Compose parsed but normalized validator refused it
|
||||
|
||||
[Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) printed `ZITPLANE_P08_COMPOSE_STATIC_CONFIG_PASS` followed by `ZITPLANE_P08_FAIL_CLOSED_RUNTIME_BEHAVIOR` in the `validate.py` stage. This class means a **normalized Compose service field** intersected the validator's disallowed runtime-behavior keys (`build`, `command`, `entrypoint`, `configs`). It does **not** identify which field was present or prove an unsafe runtime; no normalized JSON/secret values were logged. Don't claim a specific null/default cause or edit the production source/Compose/workflow to work around the guard. The manual-only/no-resource-action `always()` check PASS and the runner cleaned its job environment. 25 negative cases were **NOT EXECUTED**. A separately approved A01 phase may report only safe field name/type classification, accept only evidence-proven inert defaults and reverify all negatives once. Never run the synthetic Compose or access live production for troubleshooting. [Report](P05-OIDC-08.md).
|
||||
|
||||
## 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).
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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`.
|
||||
@@ -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.
|
||||
Reference in new issue
Block a user