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)
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-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.
**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
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
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).