docs(oidc): sync source-backed production preflight and 13 phase dependencies in project/operator docs

This commit is contained in:
victorsteele428 committed 2026-11-23 16:55:31 +00:00
1 parent 67c33156c1
commit ac50c4e80a
10 files changed
+53

No files matched your search

+4
View File
@@ -36,3 +36,7 @@ Each external SaaS authenticates through ZITADEL using OIDC authorization code +
## P05-OIDC-08 — intended synthetic routing topology (not live or accepted) ## P05-OIDC-08 — intended synthetic routing topology (not live or accepted)
The dedicated `deployment/production-contract/routing-policy.json` models exactly one **proposed** `https://auth.vib.tools` OIDC issuer: Login prefix `/ui/v2/login` → synthetic private `zitadel-login:3000`, Console `/ui/console` and API `/` → synthetic `zitadel-api:8080` requiring **h2c**, plus `https://account.vib.tools` → synthetic private Account service, exact confidential OIDC callback. Strict Host reject and trusted Forwarded strip/replace are **declarative policy values, not running proxy behavior**. The associated Compose service images resolve to reserved `synthetic.invalid`, replicas are zero, no ports or real credentials. [Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) parsed Compose successfully but normalized validation failed; full 25 negative checks not run, so policy gate NOT ACCEPTED. Real production DNS/SSL infrastructure remains unverified. See `notes/P05-OIDC-08.md`. The dedicated `deployment/production-contract/routing-policy.json` models exactly one **proposed** `https://auth.vib.tools` OIDC issuer: Login prefix `/ui/v2/login` → synthetic private `zitadel-login:3000`, Console `/ui/console` and API `/` → synthetic `zitadel-api:8080` requiring **h2c**, plus `https://account.vib.tools` → synthetic private Account service, exact confidential OIDC callback. Strict Host reject and trusted Forwarded strip/replace are **declarative policy values, not running proxy behavior**. The associated Compose service images resolve to reserved `synthetic.invalid`, replicas are zero, no ports or real credentials. [Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) parsed Compose successfully but normalized validation failed; full 25 negative checks not run, so policy gate NOT ACCEPTED. Real production DNS/SSL infrastructure remains unverified. See `notes/P05-OIDC-08.md`.
## P05-OIDC-09 — production release preflight update (not deployed)
Read-only review at `d3ee3fa4de62463c53d5213c532d097278f928c6` distinguishes **development-only backend Compose** and **non-deployable synthetic contract** from a real production ingress. Proposed public single issuer `https://auth.vib.tools` TLS443: Login prefix `/ui/v2/login/**` private 3000; Console `/ui/console/**` and ZITADEL API/discovery private Go 8080 **h2c**; Account relying party `https://account.vib.tools` exact `/api/auth/callback/zitadel`. Reject untrusted Host and forwarded headers, no public DB/API ports or plaintext login. [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) **PASSED** 48/48 security-negative static policy cases for the synthetic-only config; [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) accepted real custom Login/Account OIDC only on disposable localhost. All real-domain DNS/TLS/issuer/cookies, signed images, masterkey/PAT/IAM_OWNER, encrypted restore, Admin Console/MFA/SSO and production monitoring remain **LIVE NOT VERIFIED/BLOCKED**. Account package lock is now tracked, but a release OCI image is absent. 13 narrowly separated proposed phase boundaries and operator stops: [preflight](P05-OIDC-09.md) and [forensic evidence](../notes/P05-OIDC-09.md). Historical sections above preserve original as-of-date findings and should not be mistaken for latest Run #105 status.
+8
View File
@@ -73,3 +73,11 @@ Future feature additions need an evidence-backed status update here, an exact de
**P05-OIDC-08-A03 (2026-11-23) static production-config contract latest:** [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) / Job #220 **FAILURE**. Docker Compose static config PASS. Normalized all five `replicas` int zero, with exactly **empty `resources: {}` and `placement: {}`** in deploy mappings (safe diagnostics VERIFIED); previous `DEPLOY_DISABLED` blocker passed. Next `SERVICE_SECRET_REFS` FAIL, exact normalized secret grant source/target semantics UNKNOWN. The original 25 + runtime 4 + replica 3 + deploy 8 negative cases are **NOT EXECUTED**, not accepted. Manual-only/no-resource-action step and runner job cleanup PASS. Full synthetic contract and real production HTTPS/DNS/secrets/backup/Console/MFA/SSO still BLOCKED; imported custom Login V2 real disposable browser OIDC [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) remains previously accepted. [A03 details](P05-OIDC-08-A03.md). **P05-OIDC-08-A03 (2026-11-23) static production-config contract latest:** [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) / Job #220 **FAILURE**. Docker Compose static config PASS. Normalized all five `replicas` int zero, with exactly **empty `resources: {}` and `placement: {}`** in deploy mappings (safe diagnostics VERIFIED); previous `DEPLOY_DISABLED` blocker passed. Next `SERVICE_SECRET_REFS` FAIL, exact normalized secret grant source/target semantics UNKNOWN. The original 25 + runtime 4 + replica 3 + deploy 8 negative cases are **NOT EXECUTED**, not accepted. Manual-only/no-resource-action step and runner job cleanup PASS. Full synthetic contract and real production HTTPS/DNS/secrets/backup/Console/MFA/SSO still BLOCKED; imported custom Login V2 real disposable browser OIDC [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) remains previously accepted. [A03 details](P05-OIDC-08-A03.md).
**P05-OIDC-08-A04 current static configuration acceptance:** exactly one [Gitea Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) / Job #221 **SUCCESS** on source `daaa8b259a519ae0290ba28936ef2279b3a9172c`. Non-deployable synthetic contract static Compose parse PASS; seven canonical normalized secret mount grants VERIFIED; proposed canonical HTTPS issuer/Account callback, PKCE/state/nonce, Login V2/Console/API h2c routes, Host/forwarded-header/TLS policy, zero replicas/private network, secret registry and no-public-port/no-unsafe-Docker policy PASS. **48/48 malformed security fixture rejects PASS**, manual-only/no Docker lifecycle action checker PASS and runner task cleanup evidenced. **Only static configuration is accepted**; real production HTTPS/certificates/DNS/users/login/Console/MFA/passkeys/SSO/masterkey/PG encrypted restore/release build/deployment remain **NOT VERIFIED**. Previously accepted real *disposable* custom imported Login V2 Chromium/Auth.js OIDC [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) remains separate accepted evidence. [A04 acceptance](P05-OIDC-08-A04.md). **P05-OIDC-08-A04 current static configuration acceptance:** exactly one [Gitea Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) / Job #221 **SUCCESS** on source `daaa8b259a519ae0290ba28936ef2279b3a9172c`. Non-deployable synthetic contract static Compose parse PASS; seven canonical normalized secret mount grants VERIFIED; proposed canonical HTTPS issuer/Account callback, PKCE/state/nonce, Login V2/Console/API h2c routes, Host/forwarded-header/TLS policy, zero replicas/private network, secret registry and no-public-port/no-unsafe-Docker policy PASS. **48/48 malformed security fixture rejects PASS**, manual-only/no Docker lifecycle action checker PASS and runner task cleanup evidenced. **Only static configuration is accepted**; real production HTTPS/certificates/DNS/users/login/Console/MFA/passkeys/SSO/masterkey/PG encrypted restore/release build/deployment remain **NOT VERIFIED**. Previously accepted real *disposable* custom imported Login V2 Chromium/Auth.js OIDC [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) remains separate accepted evidence. [A04 acceptance](P05-OIDC-08-A04.md).
## P05-OIDC-09 — 2026-11-23 current production release preflight status
- **SOURCE VERIFIED:** imported upstream Login V2 source and Dockerfile, Go/ZITADEL/PG/Traefik dev image refs, Account `users/ui/package-lock.json` + standalone Auth.js PKCE/state/nonce, HTTPS-origin validation, protected Account API and local logout. No production image recipe for Account, no live OIDC registration/real DB custody. Older documentation claiming Account lockfile absent is superseded by tracked source.
- **CI VERIFIED, narrow:** [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) custom Login/Chromium/PKCE/Auth.js OIDC on disposable HTTP localhost; [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) synthetic configuration 48/48 negative cases PASS, with private/zero replica/issuer/h2c/secret static validation and runner cleanup.
- **LIVE NOT VERIFIED / BLOCKED:** real `auth.vib.tools` issuer and `account.vib.tools` callback TLS/Host, source-built signed image artifacts, monitored production release, vaulted master key/IAM_OWNER/PAT, encrypted DB backup/restore/rollback, real Admin Console, MFA/passkeys/SMTP and two-app SSO/federated logout. No new CI or live checks in this phase.
- **OUT OF SCOPE:** source and workflows, registry/images, production infra/DNS/SSL, users, credentials, releases and tags unchanged.
- **GO/NO-GO: NO-GO** until independently approved P0 release, key/backup and HTTPS/cutover gates. [Complete operator preflight](P05-OIDC-09.md); [exact 13 phase scopes](../notes/P05-OIDC-09.md).
+4
View File
@@ -192,3 +192,7 @@ Approved baseline `fb5d6c5690b030608ddb393dc2cacb68605a9b07`; pre-source Scope L
**Actual RCA:** seven normalized per-service symbolic secret grants are object entries targeting canonical `/run/secrets/<source>`, not plain matching source names; safe source/target classes were verified. Exact six symbolic registry references, per-service exact grants, strict root/read-only defaults and no duplicates/privileged grants PASS. Previous null command/entrypoint, integer-zero replicas and empty resources/placement normalized metadata remain accepted safely. Static issuer `https://auth.vib.tools`, separate Account `https://account.vib.tools`, callback, Login V2/Console/API h2c, Host/forwarded/TLS-required, private network/no ports/Docker socket/build privilege security rules PASS. **Actual RCA:** seven normalized per-service symbolic secret grants are object entries targeting canonical `/run/secrets/<source>`, not plain matching source names; safe source/target classes were verified. Exact six symbolic registry references, per-service exact grants, strict root/read-only defaults and no duplicates/privileged grants PASS. Previous null command/entrypoint, integer-zero replicas and empty resources/placement normalized metadata remain accepted safely. Static issuer `https://auth.vib.tools`, separate Account `https://account.vib.tools`, callback, Login V2/Console/API h2c, Host/forwarded/TLS-required, private network/no ports/Docker socket/build privilege security rules PASS.
**ALL 48 security-negative fixtures PASS:** 25 original + 4 runtime + 3 replica + 8 deploy + 8 secret grant; inert canonical positive tests PASS; workflow manual-only/no configured Docker service lifecycle commands PASS and runner-owned job container/two volumes/network cleanup evidenced. **Phase A04 static synthetic CI acceptance COMPLETE**, does not mean real production HTTPS, DNS, secrets, image provenance, backups, Console, MFA, passkeys, SSO or deployment is verified. Existing custom source-built Login V2 real *disposable* browser Run #99 SUCCESS remains accepted. [Forensic evidence](../notes/P05-OIDC-08-A04.md), [operator guide](P05-OIDC-08-A04.md). Next proposed separately approved **P05-OIDC-09**: docs-only forensic production release preflight and exact further implementation scopes (no new CI or production changes). **ALL 48 security-negative fixtures PASS:** 25 original + 4 runtime + 3 replica + 8 deploy + 8 secret grant; inert canonical positive tests PASS; workflow manual-only/no configured Docker service lifecycle commands PASS and runner-owned job container/two volumes/network cleanup evidenced. **Phase A04 static synthetic CI acceptance COMPLETE**, does not mean real production HTTPS, DNS, secrets, image provenance, backups, Console, MFA, passkeys, SSO or deployment is verified. Existing custom source-built Login V2 real *disposable* browser Run #99 SUCCESS remains accepted. [Forensic evidence](../notes/P05-OIDC-08-A04.md), [operator guide](P05-OIDC-08-A04.md). Next proposed separately approved **P05-OIDC-09**: docs-only forensic production release preflight and exact further implementation scopes (no new CI or production changes).
## P05-OIDC-09 — documentation-only production preflight, release NO-GO (2026-11-23)
Approved baseline `d3ee3fa4de62463c53d5213c532d097278f928c6`, Scope Lock first `e30b288fc19922e92b64f538af4c00a910654212`. One **read-only source and accepted CI** audit of image/provenance, issuer/Host/forwarded/h2c, Login+Account OIDC, master key/IAM_OWNER/PAT, encrypted PostgreSQL recovery, Admin Console/MFA/SSO and monitoring; **no source/workflow/CI/DNS/VPS/secret/deployment change or test**. [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) static synthetic security contract 48/48 negative cases PASS and [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) imported custom Login V2 browser OIDC disposable SUCCESS preserved. No Account OCI Dockerfile in tree, Account npm lockfile exists, dev backend images tag-only, Login Dockerfile base tag-only, temporary Login CI image removed. Production live TLS, actual trusted proxy/Console/keys/PG restore and signed image release NOT VERIFIED. **Production GO/NO-GO = NO-GO/BLOCKED.** One read-only preflight report [P05-OIDC-09.md](P05-OIDC-09.md) / [notes source matrix and 13 independently approvable Scope Locks](../notes/P05-OIDC-09.md). First candidate separate **P05-OIDC-10** disposable Login OCI provenance gate; no authorization implied.
+4
View File
@@ -166,3 +166,7 @@ The unchanged `deployment/production-contract/compose.ci.yaml` is *non-deployabl
## P05-OIDC-08-A04 — accepted synthetic policy, NOT production deployment instructions ## P05-OIDC-08-A04 — accepted synthetic policy, NOT production deployment instructions
The checked-in `deployment/production-contract/compose.ci.yaml` contains only `synthetic.invalid` image references, five zero-replica services, an internal network and six unresolved symbolic external secret placeholders. **Never run `docker compose up/run/build/pull`** on this fixture. [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) verified the static Compose normalized seven authorized symbolic service grants with canonical `/run/secrets/<source>` targets, source integrity, exact callback/issuer, Login/Console/API h2c, Host/forwarded/TLS policy, no public ports/unsafe runtime/credentials, and **48/48 deliberately invalid config tests PASS**. Gitea runner owned disposable task container/volumes/network and cleaned them; no app/production services started. This is not a production installation test. Real DNS/SSL, secure master key/PAT/DB recovery, verified releases and actual Login/Console/MFA/SSO must undergo separate approved planning and live acceptance. For final CI evidence see [A04 operator report](P05-OIDC-08-A04.md). The checked-in `deployment/production-contract/compose.ci.yaml` contains only `synthetic.invalid` image references, five zero-replica services, an internal network and six unresolved symbolic external secret placeholders. **Never run `docker compose up/run/build/pull`** on this fixture. [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) verified the static Compose normalized seven authorized symbolic service grants with canonical `/run/secrets/<source>` targets, source integrity, exact callback/issuer, Login/Console/API h2c, Host/forwarded/TLS policy, no public ports/unsafe runtime/credentials, and **48/48 deliberately invalid config tests PASS**. Gitea runner owned disposable task container/volumes/network and cleaned them; no app/production services started. This is not a production installation test. Real DNS/SSL, secure master key/PAT/DB recovery, verified releases and actual Login/Console/MFA/SSO must undergo separate approved planning and live acceptance. For final CI evidence see [A04 operator report](P05-OIDC-08-A04.md).
## P05-OIDC-09 — operator safe release preflight (no setup performed)
**Neither** `deployment/docker/compose.backend.dev.yaml` (localhost HTTP/first-admin/test PAT) **nor** `deployment/production-contract/compose.ci.yaml` (`synthetic.invalid`, zero replicas, placeholder secrets) is a production deployment file. Do not use either with production `docker compose up`/Coolify. Existing real-browser Run #99 and synthetic security Run #105 are CI acceptances, **not public HTTPS or encrypted backup proof**. Before any external domain/production configuration, separately approve immutable attested OCI build, exact 32-byte stable ZITADEL key protected by vault/offline escrow, distinct IAM_LOGIN_CLIENT versus IAM_OWNER break-glass, matching encrypted PostgreSQL backup and isolated restore, private-network zero exposed backend ports, HTTPS trusted edge (Host/Forwarded/h2c/callback), Console recovery, actual secure cookie/PKCE session/rollbacks and operational alerts. Register only exact `https://account.vib.tools/api/auth/callback/zitadel` and verify real issuer `https://auth.vib.tools` under its own authorized live phase. Current exact dependency order and STOP conditions: [P05-OIDC-09 operator preflight](P05-OIDC-09.md). No real secrets or DNS were inspected here.
+4
View File
@@ -125,3 +125,7 @@ The previous [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103)
## P05-OIDC-08-A04 — normalized service-secret target RCA resolved; synthetic contract SUCCESS ## P05-OIDC-08-A04 — normalized service-secret target RCA resolved; synthetic contract SUCCESS
Historical [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) `SERVICE_SECRET_REFS` failed because the validator demanded `source == target`. [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) **SUCCESS** proves the seven normalized grants are approved source names mapped to their exact canonical **`/run/secrets/<source>` target**, with fixed safe `OBJECT`/`SOURCE_EXPECTED`/`TARGET_CANONICAL_MOUNT` markers (no raw secret material logged). The validator now accepts exact same-name or canonical path only, rejects duplicate/missing/extra/wrong-service grants, wrong targets, unexpected metadata, non-root/unsafe mode. All other issuer/callback/Host/h2c/private/zero-replica/runtime gates and **48/48 negative fixtures PASS** in one CI run; manual workflow safety and runner cleanup PASS. Do **not** use `deployment/production-contract/compose.ci.yaml` for live deployment, enter actual credentials into this synthetic fixture, or treat CI policy PASS as real HTTPS/SSO readiness. Production failures require independent, separately approved production preflight; see [A04 operator report](P05-OIDC-08-A04.md). Historical [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) `SERVICE_SECRET_REFS` failed because the validator demanded `source == target`. [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) **SUCCESS** proves the seven normalized grants are approved source names mapped to their exact canonical **`/run/secrets/<source>` target**, with fixed safe `OBJECT`/`SOURCE_EXPECTED`/`TARGET_CANONICAL_MOUNT` markers (no raw secret material logged). The validator now accepts exact same-name or canonical path only, rejects duplicate/missing/extra/wrong-service grants, wrong targets, unexpected metadata, non-root/unsafe mode. All other issuer/callback/Host/h2c/private/zero-replica/runtime gates and **48/48 negative fixtures PASS** in one CI run; manual workflow safety and runner cleanup PASS. Do **not** use `deployment/production-contract/compose.ci.yaml` for live deployment, enter actual credentials into this synthetic fixture, or treat CI policy PASS as real HTTPS/SSO readiness. Production failures require independent, separately approved production preflight; see [A04 operator report](P05-OIDC-08-A04.md).
## P05-OIDC-09 — interpreting accepted synthetic CI without misdiagnosing production
If the product is not reachable on proposed `auth.vib.tools`/`account.vib.tools`, **do not assume** Gitea [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) created DNS records, certificates, a running ZITADEL or user. It validated only `docker compose config` against a **non-deployable** zero-replica fixture; 48/48 invalid cases rejected as designed. [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) did perform real imported Login browser OIDC **only on disposable private localhost CI**; its temporary custom image was cleaned. For live incidents, verify only in a separately approved production scope: signed image identity/base, current security scan, actual TLS/issuer, Host+forwarded rewriting, h2c Console, OIDC callback/cookies, secret expiry, IAM_OWNER break-glass and encrypted matching-key backup. **Do not reset the master key, delete named volumes, flip global LoginV2 or alter production DNS as an exploratory check.** Full STOP/rollback matrix and separate phase plan in [P05-OIDC-09](P05-OIDC-09.md).
+8
View File
@@ -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 ## 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`. 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.
+4
View File
@@ -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. **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. **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`.
+4
View File
@@ -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 ## 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. 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`.
+9
View File
@@ -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. - **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. - **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. - **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`.
+4
View File
@@ -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 ## 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. [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`.