docs(oidc): sync source-backed production preflight and 13 phase dependencies in project/operator docs
This commit is contained in:
1 parent
67c33156c1
commit
ac50c4e80a
10 files changed
+53
No files matched your search
@@ -55,3 +55,11 @@ See `docs/PHASES.md`, `docs/P02-EVIDENCE.md`, `docs/P03-SOURCE-IMPORT.md` and `d
|
||||
## P05-OIDC-08 — synthetic contract vs real production architecture
|
||||
|
||||
The new `deployment/production-contract/compose.ci.yaml` and `routing-policy.json` are **not deployable** or active ingress; they model the proposed HTTPS issuer `https://auth.vib.tools`, `https://account.vib.tools` separate Account origin, exact callback, ZITADEL h2c private API/Console, Login V2 private 3000, edge Host/Forwarded sanitization and secret references. All images are `synthetic.invalid`, replicas zero, private network and no ports. They are separate from untouched `deployment/docker/compose.backend.dev.yaml`, existing real Account/Auth.js, imported Login V2 source and production infrastructure. [Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) passed Compose structural parse but **FAILED** strict normalized Compose `RUNTIME_BEHAVIOR` validation; no negative fixtures ran, so the contract is **NOT security accepted**. Existing real custom Login CI [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) remains accepted in its original development-only boundary. See `notes/P05-OIDC-08.md`.
|
||||
|
||||
## P05-OIDC-09 — 2026-11-23 production release preflight (current evidence supersedes older acceptance status)
|
||||
|
||||
Repository-backed **SOURCE VERIFIED**: official Go ZITADEL is referenced by `deployment/docker/compose.backend.dev.yaml` version tag `v4.20.4` and is not vendored; it is a development-only HTTP localhost Compose. Imported upstream Login v4.20.4 has tracked Dockerfile, frozen PNPM source lock, CI build helper; the **only imported custom image accepted** is disposable Run #99 and has been cleaned, not a signed/published release. Account Portal has a checked-in **`users/ui/package-lock.json`**, a standalone Next.js config and confidential Auth.js provider, but no tracked Account production OCI Dockerfile or released image. Earlier P04-era claims of no lock/build acceptance here are historical, NOT current.
|
||||
|
||||
**CI VERIFIED only:** [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) imported custom Login real browser OIDC/PKCE/Auth.js in disposable localhost CI, and [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) manual synthetic static proposed production contract, 48/48 malformed-case rejects PASS. **LIVE NOT VERIFIED/BLOCKED**: public `auth.vib.tools` canonical HTTPS issuer and `account.vib.tools` callback, valid TLS/Host+forwarded/h2c routing, immutable signed image registry releases, secure master key/PAT/secret custody, independent IAM_OWNER, matching encrypted PG restore, Console/MFA/passkeys/recovery, second-app SSO and monitoring. The `deployment/production-contract` files are reserved `synthetic.invalid` zero-replica data, NOT real production topology.
|
||||
|
||||
An independently approved phased implementation is mandatory; no production go-live decision follows from static CI. See `notes/P05-OIDC-09.md` forensic matrix/stop gates and `docs/P05-OIDC-09.md` operator sequence. No code/CI/deployment changed in P05-OIDC-09.
|
||||
@@ -212,3 +212,7 @@ The unchanged **manual-only** `.gitea/workflows/p05-production-contract-dry-run.
|
||||
**RCA verified:** `docker compose config --format json` yields **seven** per-service secret grant dictionary entries with approved symbolic `source` and exact canonical `target` under `/run/secrets/<source>`, not the earlier same-name target assumption. Safe diagnostics verified 7 `OBJECT` + `TARGET_CANONICAL_MOUNT` + `SOURCE_EXPECTED` markers, no sensitive values. Validator now enforces exact six external registry refs/required per-service sets, default-root/read-only mount grant metadata, no duplicates or extra/unknown source/target/fields. Normalized deploy `resources:{}, placement:{}, replicas:int 0` and runtime `command:null, entrypoint:null` remain narrowly allowed inert defaults.
|
||||
|
||||
**All static positive policy gates PASS**: proposed canonical HTTPS issuer/separate Account callback/OIDC policy, Login V2/Console/API h2c route policy, Host/forwarded trust/TLS policy, private internal-only networking, no exposed ports, inline creds, socket, privileged/build/active runtime. **48/48 negative fixtures PASS with exact rejection classes** (25 original, 4 runtime, 3 replica, 8 deploy, 8 new secret grants). Inert-positive and canonical-grant-positive cases PASS. Manual-only/no configured Docker lifecycle action check PASS in validator and `always()` step, job task container/two volumes/network cleanup evidenced. No CI rerun. **This is static synthetic-contract acceptance, not live production HTTPS, image, backup, MFA/passkey or SSO verification.** Prior isolated imported custom Login browser OIDC [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) stands separately. Next proposed P05-OIDC-09 docs-only release preflight requires separate approval.
|
||||
|
||||
## P05-OIDC-09 — CI evidence versus unreleased production artifact boundary
|
||||
|
||||
Read-only reviewed accepted [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) job #221, source `daaa8b259a519ae0290ba28936ef2279b3a9172c`: `COMPLETED SUCCESS` **static** nondeliverable Compose `config --quiet`, normalized security policy and 48/48 negative fixture checks, manual-only resource-action safety, cleanup of owned runner job resources. There is no signed registry image, live issuer or Console/MFA/SSO proof from that workflow. Independent [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) source-built **temporary** custom Login image/Chromium OIDC and cleanup accepted; no image was retained as a production artifact. Historical [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89) accepted Login frozen PNPM/build/1219 units/then-current zero Moderate+ registry advisories; Account [Run #87](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/87) frozen npm build/security accepted. Fresh pre-release risk/advisory/SBOM/signature checks remain **BLOCKED**. Current six `.gitea/workflows/*.yml` are CI-specific; no signed/published production release workflow evidenced. Next individually approvable `P05-OIDC-10` is a **new separate CI-only** Login image provenance gate, not a replacement/rerun of accepted workflows. No new CI dispatched in P05-OIDC-09. Operator failure/rollback thresholds in `notes/P05-OIDC-09.md`.
|
||||
@@ -91,3 +91,7 @@ This phase **does not modify** `auth/ui/v2/pnpm-workspace.yaml`, `pnpm-lock.yaml
|
||||
## P05-OIDC-07 — production artifact supply-chain design only
|
||||
|
||||
Historical [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89) reported accepted imported Login frozen build/unit and then-current zero Moderate/High/Critical audit; [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) built an **ephemeral local-only** Login image using unchanged `node:24-alpine`-tagged upstream Dockerfile and verified runtime real OIDC; there was **no production dependency security refresh, registry publication, SBOM, signature, image digest pin at deployment or reproducible release provenance check**. Production release contract requires immutable digest locking for Go/Login/Account, a current vulnerability scan with explicit severity policy, SBOM and signed artifact/attestation verification, secretless CI logs, no mutable tag drift, and rollback to a previously verified digest. P05-OIDC-07 performed read-only review only.
|
||||
|
||||
## P05-OIDC-09 — historical advisories versus current release provenance (read-only)
|
||||
|
||||
[Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89) on the approved Login source graph verified pinned `pnpm@10.30.3` frozen install, 1219 upstream unit cases and at-that-time **zero Moderate/High/Critical production audit**. Account [Run #87](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/87) verified frozen npm build and then-current Account audit. `users/ui/package-lock.json` now **exists** in tracked repository. These results are **CI VERIFIED historical**, not proof of today/future third-party advisory status, actual production OCI image base/package CVEs or signed/SBOM provenance. Login Dockerfile `FROM node:24-alpine` and CI temporary builder `node:22-bookworm` are tag-based and not proven immutable; dev backend Go/Postgres/Traefik likewise reference tags. The custom Login Run #99 image was erased and not published as a digest. Release gates: immutable pinned OCI bases/dependencies, fresh reproducible source-to-image proof, package/container SCA at release, SBOM for each component, cryptographic signature and verification at deployment, retained roll-back digest; registry publish only by separate approval, no production keys in build. **P05-OIDC-09 changed no manifest, lockfile or runtime source, ran no CI.** Next recommended separate `P05-OIDC-10` Login OCI CI-only provenance gate. Full exact Scope Locks `notes/P05-OIDC-09.md`.
|
||||
@@ -248,3 +248,12 @@ Run #101 source `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a`: Compose parse PASS,
|
||||
- **Preserved read-only:** `deployment/production-contract/compose.ci.yaml` Git blob `930c0b0fbfb518555436acd6f0b4bb3bdd421937`, `deployment/production-contract/routing-policy.json`, `.gitea/workflows/p05-production-contract-dry-run.yml`, `auth/**`, `users/**`, `core/**`, all other tests and package locks; no production/runner edits.
|
||||
- **Documentation:** new `notes/P05-OIDC-08-A04.md` scope-first forensic acceptance and `docs/P05-OIDC-08-A04.md` operator guide, synchronized relevant notes/project/docs/README/MINIFEST and tracked inventory.
|
||||
- **Accepted static evidence:** [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) / Job #221 **SUCCESS**, all positive static OIDC/routing/host/secret/internal/no-runtime checks and **48/48 security-negative cases** PASS, manual-only check PASS, runner temporary job resource cleanup PASS. **Live production is not accepted**. Proposed next P05-OIDC-09 production release preflight is doc-only under separate approval.
|
||||
|
||||
## P05-OIDC-09 — production-readiness source map (docs-only audit)
|
||||
|
||||
- Dev-only backend + Traefik: `deployment/docker/compose.backend.dev.yaml`, local initializer `core/backend/zitadel/dev.py`; no production Go source/vendor artifact, persistent production release or DNS logic.
|
||||
- Imported Login: `auth/ui/v2/apps/login/{Dockerfile,package.json,scripts/entrypoint.sh}`, locked `auth/ui/v2/{pnpm-lock.yaml,package.json}`, temporary CI `tests/ci/login_image/{build.sh,cleanup.sh}`. Dockerfile `FROM node:24-alpine` is tag-based; disposable builder `node:22-bookworm`; Run #99 corrected copied entrypoint 644→755 only in temporary image context; no signed registry artifact.
|
||||
- Account: `users/ui/{package.json,package-lock.json,next.config.ts,src/auth.ts,src/lib/{env.ts,identity.ts}}`; `output:standalone`, origin HTTPS guard, provider PKCE/state/nonce, protected user identity; no tracked Account `Dockerfile` or production release workflow.
|
||||
- Undeployable contract: `deployment/production-contract/{compose.ci.yaml,routing-policy.json}`, `tests/ci/production_contract/validate.py`, unchanged `.gitea/workflows/p05-production-contract-dry-run.yml`; [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) static 48/48 negative cases only.
|
||||
- **New documentation-only** `notes/P05-OIDC-09.md` (scope-first release blockers/phases) and `docs/P05-OIDC-09.md` (operator checklist). No other application/CI/deployment source modified.
|
||||
- Exact 13 proposed narrow phase Scope Locks for OCI provenance, Account packaging, backend pin, signing, vault/recovery, backup, private runtime, HTTPS proxy, Console, live OIDC, MFA, second SaaS SSO and final release in `notes/P05-OIDC-09.md`.
|
||||
@@ -131,3 +131,7 @@ A03 retains **the exact existing manual workflow**: a temporary Gitea Node Alpin
|
||||
## P05-OIDC-08-A04 — static-only no new runtime dependencies, accepted CI
|
||||
|
||||
[Gitea Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) source `daaa8b259a519ae0290ba28936ef2279b3a9172c` uses original manually triggered workflow and installed runner Compose CLI + Python stdlib (no manifest or package-lock changes). The standalone validator now classifies exact symbolic secret grant `target` as `/run/secrets/<source>` and rejects unsafe permissions, duplicates, missing and extra grants; normalized seven canonical grants and original source's six symbolically external placeholders are **STATIC VERIFIED**. The fixture remains deliberately **non-deployable**, no real secret source or `docker compose up/build/pull/run` exists in workflow. All 48 negative cases, positive canonical OIDC issuer/Account callback/h2c/Host+Forwarded/no ports and zero-replica policy, workflow-safety checker PASS in one Gitea run. CI runner ephemeral job cleanup observed; no external DNS/TLS, production images/registry/volumes or keys were tested. Subsequent live production rollout must use a separately approved vetted real deployment design and independent security/backup validation.
|
||||
|
||||
## P05-OIDC-09 — actual installed-source prerequisites versus production release blockers
|
||||
|
||||
The read-only source inventory verifies tracked Account npm **package-lock.json** (the older P04 discussion that Account lacks a lockfile predates P05 dependency remediation), `next@16.4.6`, `next-auth@5.0.0-beta.32` and locked Login `pnpm@10.30.3` at the root imported workspace. The nested Login package declares PNPM `10.28.2`; CI uses `10.30.3`, which was accepted at its historical source and must be reconciled as part of release provenance. Imported Login original Dockerfile `node:24-alpine` and temporary builder `node:22-bookworm` are mutable image **tags**; official ZITADEL Go `v4.20.4`, Postgres `17.10-alpine` and Traefik `v3.7.7` are version tags in dev Compose, NOT a vetted immutable production digest set. Historical Run #89 Login frozen build/audit and Run #99 disposable actual image/browse PASS, and Run #105 synthetic static contract 48/48 PASS, do **not** replace current per-artifact pinned OCI digest, SBOM, verified signature, vulnerability review, production secret/DB recovery or TLS proof. P05-OIDC-09 performs **no install, build, test, DNS query or deployment**, only source/docs verification. Future `P05-OIDC-10` CI-only provenance gate is a separate authorization, `notes/P05-OIDC-09.md`.
|
||||
Reference in new issue
Block a user