40 KiB
Phase register and scope locks
Implement one explicitly approved phase at a time. Keep out-of-scope files, existing authentication machinery and production systems unchanged.
P01 - Foundation (COMPLETE)
- Baseline commit
8f54ccb30426f2955472c0cd40fb94d0b18e86ac. - Initial monorepo folder structure, docs, project Git identity and clean commit completed.
P02 - ZITADEL local backend (APPROVED 2026-11-22)
- Allowed source writes:
core/backend/zitadel/**,deployment/docker/compose.backend.dev.yaml,.env.example, backend-focusedtests/**, and narrowdocs/**/README.md. - Official versioned ZITADEL v4 backend image, local PostgreSQL persistence, secure random dev secret generation, first-admin bootstrap and health checks.
- Official prebuilt Login V2 image as a runtime dependency only (v4 Admin Console login requires it); no Login V2 source import.
- No backend Go source vendoring, UI redesign, public domain, Coolify deploy, production keys, remote push or changes to unrelated files.
- Verify: static focused test/patch audit; with Docker available, live startup/ready/Admin Console, persistent DB after restart and shutdown.
- Execution evidence: Docker CLI/Desktop absent on connected Windows PC; live Compose startup, admin login and persistence remain NOT VERIFIED. Prior P02 static checks are recorded in
docs/P02-EVIDENCE.md. - P02-RUNTIME-ACCEPTANCE-01 instruction update (2026-11-22): user explicitly deferred all local test/dev execution to a future Gitea Actions phase; this is a source handoff, not runtime acceptance. Existing source is committed; authorized push to
vibtools/ZitPlaneis in scope. CI workflow creation and UI import remain outside P02. - Existing unrelated untracked
AI_INSTRUCTIONS.mdmust remain untouched.
P03 - Official Login V2 source import (APPROVED 2026-11-22; SOURCE IMPLEMENTED)
- Baseline:
eadd0e558b459061e48583192badfc0579e95140. - Write Scope:
auth/ui/v2/**(Login V2 and required upstream workspace files), narrowREADME.mdanddocs/**(P03 source/phase notes). No other files. - Upstream tag:
v4.20.4at384bb9ec96b501ad39dc232ee2061a40fe180bbd, matching P02 Go backend image. - Import
apps/login,packages/zitadel-client,packages/zitadel-proto,proto, root pnpm/Nx/build files and licensing nested underauth/ui/v2/. Preserve auth/UI behavior. Exclude upstream environment files; never commit secrets. - User explicitly requested no local builds, tests, dev servers or deployments. Only source/provenance/patch audit, documentation, Git commit and approved Gitea push. CI deferred.
- P02 prebuilt Login UI remains configured in the development Compose; do not replace it or call runtime acceptance complete.
- Evidence and known gaps:
docs/P03-SOURCE-IMPORT.md. CI workflow not part of this scope.
P04 - User Account Portal foundation (APPROVED 2026-11-22; SOURCE IMPLEMENTED)
- Baseline:
4404849fc4bd30c7b4b7cabe7caed54cbd7cd37d. - Exact Write Scope:
users/ui/**, narrow projectREADME.mdand relevantdocs/**(phase/evidence/architecture/developer guide). P02/P03 source read-only. - Separate compact Next.js portal, ZITADEL OIDC/PKCE authentication, server-protected user routes, read-only profile and security settings structure.
- Real OIDC only; no fake production auth, browser admin credentials, billing or user-management mutation endpoints. Existing ZITADEL core/Login V2 untouched.
- Explicitly no local builds, tests, dev server, Docker or deployment. Source-level audit only, Git commit and approved Gitea main push. Gitea Actions testing deferred; no CI workflow in this scope.
- Evidence and pending runtime acceptance:
docs/P04-ACCOUNT-PORTAL.md.
P05-CI-01 - Gitea Actions Verification Foundation (APPROVED 2026-11-22)
- Baseline
7ecf53169776cc7f08af3dde6fe4b4492acf3ea1. - Approved paths
.gitea/**,tests/ci/**, narrowusers/ui/package.jsonand lockfile,auth/ui/v2/pnpm-workspace.yamland lockfile,notes/**,project/**, relevantdocs/**andREADME.md; rootMINIFEST.mdis a documentation-maintenance exception. Backend/Account auth/UI source READ-ONLY. - Manual Gitea workflow: account reproducible build, Login frozen build, dependency audit, disposable Docker backend readiness/discovery. No local tests/build/dev server.
- Full OIDC login/session/MFA/Admin Console interactive acceptance is not covered without disposable app/user provisioning; status remains BLOCKED/PENDING, not fabricated PASS.
- Gitea Run #81: 2 PASS (Login V2 frozen build + 1219/1219 unit tests; high/critical audit) and 2 FAIL (Account Auth.js TypeScript TS2345; Docker Alpine checkout missing Git). 18 moderate advisories unresolved. Pre-checkout Git source fix applied after the run, not rerun. See
notes/P05-CI-01.mdanddocs/P05-CI-01.md. No production deployment/release.
P05-CI-02 - Targeted Root-Cause Remediation (APPROVED 2026-11-22)
- Baseline
42adaba0044ee5cb86e6e6bcfd4e00e5fe96ad00(Giteamain). - Narrow write scope:
users/ui/src/auth.ts, optionalsrc/types/next-auth.d.ts,.gitea/workflows/p05-ci.yml,tests/ci/**,notes/**,project/**, relevantdocs/**, associated CI README/MINIFEST, root navigation only if required. - B01 Auth.js TypeScript TS2345: real subject string narrowing, preserve PKCE/state/nonce, expiry and protected identity guard. B02: verify in-CI Docker checkout, disposable ZITADEL, PostgreSQL restart persistence and OIDC discovery/JWKS. B03: report real Moderate advisory IDs/package/fix; HIGH+ security threshold remains a failure gate. B04: negative OIDC metadata and anonymous Account Portal checks, with interactive user E2E explicitly deferred.
- One manual Gitea Run #83: Account Portal, Login V2, security gates PASS; Docker health progressed to PostgreSQL/ZITADEL API/Login V2 healthy, but runner host 8080 collision blocked proxy, database persistence and discovery. Full CI acceptance BLOCKED. Post-run CI-only
tests/ci/compose.portless.override.yamlclears inherited host port, not CI-verified. 18 Moderate Login + 1 Moderate Account audit record still open, no package changes. Exact evidence innotes/P05-CI-02.md,docs/P05-CI-02.md.
P05-CI-03 - Backend Runtime Final Acceptance (APPROVED 2026-11-22)
- Baseline
485755800504a7dea6e4c303e6b39ec9cc610b54; prior Run #83 had 3 job PASS and backend FAIL due to runner host TCP 8080 collision. - Exact Write Scope: optional
.gitea/workflows/p05-backend-acceptance.yml, narrow existing P05 workflow if justified, focusedtests/ci/**, notes/project/docs, associated workflow README/MINIFEST and root navigation if needed. Core backend, developer Compose, Login V2, Account Portal, dependencies/locks and production config all READ ONLY. - Manual backend-only Gitea Actions acceptance: effective Compose proxy portless check, four-service health, disposable Postgres restart marker persistence, ZITADEL readiness/discovery/JWKS, malformed issuer/JWKS negative contracts and verified CI-only cleanup.
- One focused isolated run after source commit/push, no local test/build/Docker, no repeated Account/Login suites, no real users/secrets or production deployment. Full interactive login/MFA remains a separate phase.
- Gitea Actions Run #86 SUCCESS on
03fb58954dec886128a4011b6121754cbcdd79ff: portless effective config PASS, all four services ready, disposable PostgreSQL marker persisted after restart, ZITADEL ready/OIDC issuer/discovery/JWKS and negative contracts PASS, CI-owned network/containers/volumes cleanup verified PASS. No Account/Login build rerun, no local build/Docker. Full interactive OIDC login/MFA and Moderate dependencies remain outside this phase. Evidence:notes/P05-CI-03.md,docs/P05-CI-03.md.
P05-SEC-01 - Dependency Security Remediation (APPROVED 2026-11-22)
- Baseline
1a602551ad9a791efcc594834f2fa6ce748339ae. Previous Run #83 security: 18 Moderate Login advisory records and 1 Moderate Account vulnerable Next.js package; Run #86 backend-only SUCCESS. - Narrow approved manifest writes:
users/ui/{package.json,package-lock.json},auth/ui/v2/apps/login/package.json, rootauth/ui/v2/{package.json,pnpm-lock.yaml}only if justified; new.gitea/workflows/p05-security-acceptance.yml, focusedtests/ci/**, notes/project/docs and associated README/MINIFEST.pnpm-workspace.yaml, application source, Go backend, developer Compose, production and unrelated files remain read-only. - Direct Next.js pinned 16.4.6; Login coordinated OTel auto-instrumentation 0.80.0 / SDK 0.222.0 family, PNPM/npm metadata-only lockfile reconciliation. Root overrides are read-only, so glob14/minimatch11 major transitive remediation remains an explicit blocker if registry audit reproduces it.
- Gitea Run #87, tested SHA
752d243ae8fb24ce3cfa990343082e2d0431306b: 3 job PASS (Account npm frozen typecheck/build/anonymous regressions, Login pnpm frozen Nx build + 1219/1219 unit tests, Account security 0), Login security FAIL on 2 Moderate transitive advisories (globandminimatch), High/Critical 0. Prior 19 reported records reduced to 2; full security acceptance BLOCKED. Only one CI run, no local app build/test/dev server, no backend/production change. Exact result:notes/P05-SEC-01.md,docs/P05-SEC-01.md.
P05-SEC-02 - Final Transitive Dependency Remediation (APPROVED 2026-11-22)
- Baseline
43eee54e7ad6b647e38491ac4dc28703547cf410; prior Gitea Run #87: 3 PASS/1 FAIL, only 2 Login Moderate GHSA (glob/minimatch) remaining, Account audit 0. - Exact Scope Lock:
auth/ui/v2/pnpm-workspace.yaml,pnpm-lock.yaml, justified root or Login dependency manifests only,.gitea/workflows/p05-security-acceptance.yml, focusedtests/ci/**, notes/project/docs and associated README/MINIFEST. Login/auth/UI source, users/ui/, Go backend, developer Compose, other packages and production READ-ONLY.** Preserve untracked AI_INSTRUCTIONS.md. - Seven exact parent-scoped overrides: two glob10 parents → glob14.0.6, five minimatch10 parents → minimatch11.0.9. No broad global major override; pinned PNPM 10.30.3 metadata-only lockfile regeneration; compatibility subject to CI proof.
- Actual Gitea Run #88, tested source SHA
66cfed5a8b6bd5845b229c9934695e307f9a0775, overall FAILURE: Account jobs correctly SKIPPED, Login live production audit 0 Moderate/High/Critical PASS; Login build job FAIL before frozen install because new contract helper falsely treated existing>=semver ranges as parent overrides. No frozen install/build/units executed in this run. Corrected parser to recognize exact>globor>minimatchselectors after the run, not CI-verified. Full security/compatibility acceptance BLOCKED pending separately approved focused CI; one run only, no local app builds/tests or deployment. Exact evidence:notes/P05-SEC-02.md,docs/P05-SEC-02.md.
P05-SEC-02-A01 — Login Build & Security Final Acceptance (APPROVED 2026-11-22)
- Baseline
7655dbdcb48c49aab8f3bf97aab8f1867f129531. Previous Run #88 security 0 Moderate/High/Critical; Login frozen/build/unit unexecuted due CI helper>=selector false-positive. Corrected parser is committed but not yet CI-verified. - Exact Scope Lock:
tests/ci/transitive_override_contract.pyand.gitea/workflows/p05-security-acceptance.ymlonly if a NEW exact validator/CI defect is reproduced;notes/**,project/**, relevantdocs/**, associated README/MINIFEST for evidence. All PNPM lock/config/manifests, original Login/UI/auth, Account Portal, ZITADEL backend, Compose, production and unrelated files read-only. Preserve untrackedAI_INSTRUCTIONS.md. - Run #89 ACCEPTED/SUCCESS: tested SHA
ff4c58ed861474061c8f045be3a9f0752caf6ca0. Existing corrected override validator PASS, seven parent pins + patched lock contract PASS; PNPM10.30.3frozen install PASS; Nx proto/client/Login 16.4.6 standalone production build PASS; upstream Vitest 84/84 files and 1219/1219 tests PASS. Live productionpnpm audit --prod: 0 Moderate/High/Critical. Login jobs #194/#196 SUCCESS; Account jobs #193/#195 SKIPPED intentionally. One CI run, no local app test/build, no source/lock/deploy changes. Interactive OIDC/MFA/Admin Console login still unverified. Exact evidence:notes/P05-SEC-02-A01.md,docs/P05-SEC-02-A01.md.
P05-OIDC-01 — Disposable Real OIDC Login/Session Acceptance (APPROVED 2026-11-22)
- Baseline
f423c696544f28a42d6a5d1ad0acfd88a3b6f56d, prior Run #86 disposable backend, Run #87 Account and Run #89 Login build/security PASS. Real OIDC positive callback/session still unverified. - Exact Write Scope: new
.gitea/workflows/p05-oidc-acceptance.yml, focusedtests/ci/oidc_e2e/**and narrow CI-only helpers,notes/**,project/**, relevantdocs/**, associated README/MINIFEST and root navigation. Original P02 Compose/backend, original Login V2/auth UI, Account Portal Auth.js/UI, all package manifests/locks, production and unrelated files READ ONLY. Preserve untrackedAI_INSTRUCTIONS.md. - Pre-change plan
notes/P05-OIDC-01.mddocuments official IAM_OWNER bootstrap PAT (not the Login-client PAT), disposable project/real OIDC Web client and human, original Login V2 Chromium password flow, Auth.js PKCE/state/nonce, positive Account API/session and anonymous/invalid negatives, and mandatory run-owned secret/Compose cleanup. No public host ports. Existing HTTP localhost issuer requires development only in the disposable CI container, not a production TLS acceptance. - One manual Gitea Actions CI cycle; no local app installs/builds/tests/dev servers or production deployment, no fake login/session or identity bypass. Exact real job results required for PASS.
docs/P05-OIDC-01.md,project/OIDC-E2E-ARCHITECTURE.md.
P05-OIDC-02 — Private Loopback Forwarder Remediation & Real Browser OIDC Acceptance (APPROVED 2026-11-22)
- Baseline
b78270e9d45c1764c5642024b8147885deaacde3. Run #90 testedcbcd60e, four backend services healthy and host portless, but CI-only localhost:8080 sidecar not ready; project/client/user/browser tests NOT RUN; owned teardown PASS. Root cause not established by previous logs. - Exact Write Scope:
tests/ci/oidc_e2e/run.sh, justifiedprovision.pyand optionalcleanup.sh, optional.gitea/workflows/p05-oidc-acceptance.yml,notes/**,project/**, relevantdocs/**, associated README/MINIFEST only if required. Original backend/dev Compose, Login V2, Account Portal, manifests/locks, production and unrelated files READ-ONLY. Preserve untrackedAI_INSTRUCTIONS.md. - Pre-change
notes/P05-OIDC-02.md: before provisioning probe private 127.0.0.1:80 proxy/Host HTTP 200; replace runtimeapk addwith published versionedalpine/socat:1.8.1.3, verify preinstalled entrypoint + digest and run by immutable digest; inspect sidecar state/exit and require private forwarded 127.0.0.1:8080 HTTP 200; fix only the provisioner's status-only readiness without touching official API/secret checks. Existing owned-only cleanup unmodified. - Actual single Gitea Run #91: tested
4831165548feabc2c0a0d39d25c40e0d1bc23bb2, overall FAILURE. 4-service backend health, no-host-ports, private Traefik:80 Host-routing HTTP 200, socat version/entrypoint/digest checks PASS. socat sidecar exited (code 1) before localhost:8080 readiness; no project/client/human or real Chromium/PKCE/callback/session tests executed. Always-run owned cleanup PASS. Root cause inside socat process not proven without safe startup stderr diagnostics. NO rerun, local app tests or production changes. Follow-up P05-OIDC-03 requires separate exact approval, not auth bypass.notes/P05-OIDC-02.md,docs/P05-OIDC-02.md.
P05-OIDC-03 — Forwarder Process Diagnosis and Real OIDC Acceptance (APPROVED 2026-11-23)
- Baseline
5f542a6aa376d06ba2c1fd3d46835baae9b8654e. Gitea Run #91 proved 4 healthy services, private proxy Host route and prebuilt socat digest PASS, but socat exited 1; project/client/human/browser NOT EXECUTED; cleanup PASS. Actual socat stderr root cause unverified. - Exact write scope:
tests/ci/oidc_e2e/run.sh, optional newforwarder.pybecause Run #91 proved socat unreliable;provision.py/cleanup.shONLY if a separately reproduced narrow defect;notes/**,project/**, relevantdocs/**and associated README/MINIFEST navigation. Original backend/Compose, Login V2, Account Portal, browser scripts, manifests/lockfiles and production READ-ONLY. Preserve untrackedAI_INSTRUCTIONS.md. - Actual dispatch: one manual Gitea Run #93, tested SHA
7b80f411b2981e2274d171c12596301ed757b768, job #206 QUEUED at last inspection, no job start, no steps/cleanup and no conclusion. Nothing authenticated verified yet. Source prepared with allowlisted socat startup error classification and one same-run immutable official Python TCP fallback; original provisioning/Chromium/PKCE/state/nonce/Account and cleanup untouched. No second dispatch, local app tests or production deployment. Read-only terminal evidence from this same run must determine PASS/FAIL.notes/P05-OIDC-03.md,docs/P05-OIDC-03.md.
P05 - Full Integration (proposed, NOT approved)
Shared design system, production-safe Compose topology and verified Login/Account OIDC wiring. No live deployment; separate approval.
P06 - UI redesign (proposed, NOT approved)
Compact login and account UI, accessibility, responsive design and scoped regressions. Protected authentication semantics unchanged.
P07 - Production deployment (proposed, NOT approved)
Coolify, HTTPS, secrets, backups, durable storage and focused production readiness; explicit approval required.
P05-OIDC-01 actual acceptance result — 2026-11-22
- Approved baseline
f423c696544f28a42d6a5d1ad0acfd88a3b6f56d; tested source commitcbcd60e76ec909df4f9c5826adf7a3e2a899c73e. - One Gitea Actions Run #90, job #197, overall FAILURE. Repo checkout/Docker preflight PASS, no published host ports PASS, official four-container disposable backend startup/health PASS.
- Blocker: private run-owned localhost:8080 forwarder did not become ready in bounded 70 seconds; no admin API project/client/human provisioning or Chromium PKCE/state/nonce/callback/session/negative tests were executed. Exact sidecar cause unknown with current suppressed diagnostics. Interactive OIDC acceptance BLOCKED.
- Safety PASS: mandatory
always()cleanup step succeeded:ZITPLANE_BACKEND_CLEANUP_VERIFIED_PASS,ZITPLANE_OIDC_ALL_RESOURCES_CLEANED_PASS. No production users/secrets/ports/deployment affected. - No local application tests/builds, no second Gitea run, no original backend/Login/Auth.js source/manifest edits. Next P05-OIDC-02 requires separate exact scope approval limited to CI-only forwarder readiness/observability, then one new isolated full OIDC run. Full evidence
notes/P05-OIDC-01.md, operator guidancedocs/P05-OIDC-01.md.
P05-OIDC-03-A01 — Existing Run #93 Terminal Acceptance & Queue Audit (APPROVED 2026-11-23)
- Exact approved baseline
09add5345abc5cef676ab7f5d3220eaa641310b4; existing Run #93 tested candidate7b80f411b2981e2274d171c12596301ed757b768, job #206. Read-only Gitea run/job status QUEUED with no steps or true timestamps; job log returned404 job not started. Manual workflow is active withubuntu-latestlabel, but current runner registration/online/capacity cannot be read through available connector. Historic Run #91 succeeded in being scheduled, not proof of current availability. - Only existing Run #93 may be checked; no additional dispatch, rerun, cancellation, runner config updates, workflow/backend/Login/Auth.js/CI source edits, local builds or production/real accounts. Exact write scope only
notes/**,project/**, relevantdocs/**, associated README/MINIFEST and navigation when necessary. - Every Run #93 gate is NOT EXECUTED: Git checkout, disposable backend/forwarder/provisioning, browser PKCE/state/nonce/Auth.js callback/session, positive/negative authorization, logout and mandatory owned cleanup. The only correct acceptance statement is PENDING / NOT VERIFIED, not test FAILURE or PASS.
- Next narrow task: read-only check whether this same Run #93 is scheduled/completed and inspect authorized Gitea runner online/label/capacity state, without modifying runners or dispatching more jobs. Terminal evidence, if it becomes available, must be documented before claiming positive OIDC acceptance. Evidence:
notes/P05-OIDC-03-A01.md, operator guidance:docs/P05-OIDC-03-A01.md.
P05-OIDC-03-A02 — Existing Run #93 terminal RCA (APPROVED; 2026-11-23)
- Baseline
88911c5d685ed4d068e6361d5e920108c217046f. One existing Run #93, immutable tested SHA7b80f411b2981e2274d171c12596301ed757b768, job #206 eventually scheduled/executed, overall FAILURE at 18:37:47 UTC on 2026-11-22. Earlier A01queuedsnapshot was true then, but is superseded by this terminal result. Workflow requestsubuntu-latest; current runner online/labels/capacity details still unavailable through connector, but job pickup proved for this run. - PASS: checkout and Docker preflight, no host ports, four healthy backend/Postgres/Login V2/Traefik services, direct private proxy Host HTTP 200, pinned image/digests and mandatory owned-only cleanup.
- FAIL: socat process exited 1,
SOCKET_BIND_ERROR; same-run Python forwarder exited 1,ADDRESS_IN_USEon private TCP127.0.0.1:8080. Exact listener identity/port owner not yet established. NOT EXECUTED: real client/project/human, Chromium original Login V2, PKCE/state/nonce/Auth.js callback/session, protected identity, negatives and logout. Full authenticated OIDC BLOCKED. - Exact A02 write scope only
notes/**,project/**, relevantdocs/**, associated README/MINIFEST; all CI/auth/backend/Compose/workflow/runner/source/locks/production strictly read-only. No local app tests, second run, tags/releases, real users or production. Evidencenotes/P05-OIDC-03-A02.md, operator guidedocs/P05-OIDC-03-A02.md. Next proposedP05-OIDC-04: disposable namespace-local port-8080 listener RCA, separately approved narrow CI-only remediation and one fresh isolated full OIDC acceptance.
P05-OIDC-04 — Private socket forensics and isolated forwarder (terminal 2026-11-23)
- Baseline
89bc3f2; scoped pre-source note and CI-only source79dac4f5bb76e1cee4dfaf61657c6e84268b3dfbintests/ci/oidc_e2e/{run.sh,forwarder.py}were pushed. No original backend/Compose/Login/Auth.js/workflow/dependency modifications, no public host port. - Single authorized Gitea Run #95 / job #209 FAILURE after checkout, portless config and four healthy backend services PASS. Direct proxy:80 Host readiness failed with
OIDC_CI_PRIVATE_PROXY_SOCKET_OR_HTTP_BLOCKEDbefore the 8080 listener inspector or new forwarder ran. Real project/client/human/browser/Auth.js/negatives/logout NOT EXECUTED. Mandatory owned-only teardown PASS. - The exact Run #93 8080 listener owner remains UNKNOWN. No retry. Next proposed
P05-OIDC-04-A01strictly diagnoses direct private proxy socket/HTTP readiness first in another separately approved disposable cycle. Evidence:notes/P05-OIDC-04.md, operator guide:docs/P05-OIDC-04.md.
P05-OIDC-04-A01 — Real Browser OIDC Final Acceptance (COMPLETE; 2026-11-23)
- Approved baseline
443dfcf5d1ecb6f6f5c04cada32aafa17d7d823e; pre-sourcenotes/P05-OIDC-04-A01.mdcommitted, then onlytests/ci/oidc_e2e/run.shmodified on source SHA670e225db477f180ff14ffa62e6654860a166f17. Direct private proxy readiness now records bounded allowlisted socket/HTTP failure classes, with conditional transient-only retry (untested branch; first attempt passed). - Exactly one Gitea Run #96, job #210 SUCCESS. Four healthy portless services; direct and forwarded private 200; TCP6:8080 actual owner Traefik PID1; isolated Socat forwarder, official disposable project/client/human, real Chromium original Login V2 password+PKCE S256/state/nonce/Auth.js callback, protected session/API/pages, negative access and logout all PASS. Mandatory owned-only cleanup PASS. Optional Python fallback NOT EXECUTED because Socat passed.
- Scope unchanged: production HTTPS, multi-app SSO, custom imported Login V2 integration, Admin Console human flow, MFA/passkeys and production data/deployment NOT VERIFIED. No new CI/reruns/local apps/deploy/tags. Next proposed
P05-OIDC-05read-only production integration readiness audit, subject to separate approval. Source/terminal evidence:notes/P05-OIDC-04-A01.md,docs/P05-OIDC-04-A01.md.
P05-OIDC-05 — Production-Context Integration Readiness Forensic Audit (COMPLETE; docs only)
Approved baseline b3841d8c05d6b47ceaf1dbc5f7103b8de4f256e6, accepted Run #96 on 670e225db477f180ff14ffa62e6654860a166f17: real disposable original prebuilt Login V2 / Auth.js OIDC and owned cleanup SUCCESS. Imported Login V2 source frozen build/unit/security Run #89 SUCCESS separately; custom image not runtime integrated. P0: custom Login packaging/wiring, secure production HTTPS issuer/Host/callback, durable secret/DB/backup operations. P1: trusted proxy/cookies/refresh/federated logout, Admin Console/MFA/passkey, multi-app/tenant SSO. P2: release artifacts/monitoring/rollback. No source/CI/runner/production edit, no new CI dispatch or live user. See notes/P05-OIDC-05.md and docs/P05-OIDC-05.md. Proposed next separately approved P05-OIDC-06: CI-only custom imported Login V2 image + real disposable browser runtime acceptance.
P05-OIDC-06 — Imported Login V2 Disposable Image & Runtime Acceptance (TERMINAL FAILURE; 2026-11-23)
- Baseline
e801318f0126e433f71a3b1f8bb4c6f83aec6611, pre-edit note commitc93468fb6066b532c29ef1625cf0e3964eb1fd9d. Approved new manual workflow/CI overlay/isolated build+cleanup, narrow existingtests/ci/oidc_e2e/run.shopt-in only. Tested sourcefcfa59e826c39b445faa1b5b26c47ce715d8c3d6. - Exactly one Run #98 job #213 COMPLETED FAILURE: frozen four-workspace install/NX/Next standalone and local custom image PASS; Docker/portless config, Postgres and ZITADEL API startup PASS; imported Login OCI process FAIL (
exec: "/app/entrypoint.sh": permission denied). Custom Login health/identity, Traefik/issuer, client/human and Chromium/Auth.js/negative/logout NOT EXECUTED. Root executable file mode not inspected; do not assert it. Existing original Login Run #96 OIDC SUCCESS remains valid. - Three cleanup markers PASS: old backend, OIDC and new image/builder/temp context. No repeated CI, local builds/tests, production, real user, registry publication or tag/release. Next separately approved
P05-OIDC-06-A01: scoped temporary artifact entrypoint permission RCA intests/ci/login_image/build.shonly. Seenotes/P05-OIDC-06.mdanddocs/P05-OIDC-06.md.
P05-OIDC-06-A01 — Verified Custom Imported Login V2 Authentication (COMPLETE / PASS, 2026-11-23)
- Approved baseline
c656b5fbe1f1c2c819a600bad9a6b04105499e85. Pre-source note commitadc02bd2c31469fa1b268bfb34d4dabc8185941c; onlytests/ci/login_image/build.shchanged in tested source SHA7d6b6d0704b9e39bcb6e74257dadf0b64a19fc0f. Upstream imported Login V2/Dockerfile/Account/Auth.js, Compose, original CI workflows/harness and production unchanged. - Exactly one Gitea Run #99, job #214 SUCCESS on
7d6b6d0704b9e39bcb6e74257dadf0b64a19fc0f, 5/5 job steps SUCCESS. Git imported entrypoint100644, disposable standalone copy measured644UID:GID0:0, copied temp context only repaired755; default image-user no-network executable probe PASS, local image build and actual running custom Login ID match PASS. - All 4 disposable services healthy, no published host port, private Host/issuer and Socat PASS. Official project/client/verified test human, real Chromium source-built imported Login V2 password + OIDC PKCE S256/state/nonce/Auth.js callback, protected Account subject/session/API/pages, anonymous/tampered callback negatives and portal-local logout ALL PASS. Mandatory original backend/OIDC/credentials/DB/network plus new image/builder/temp-context exact-owned cleanup PASS.
- No local app build/test, production HTTPS, real accounts, published image, MFA/passkeys, Admin Console interactive test, cross-app SSO, tag or release. Phase forensic notes, operator acceptance guide. Next proposed separate
P05-OIDC-07: read-only secure production HTTPS/ingress and secrets/recovery deployment-contract audit, not a deployment.
P05-OIDC-07 — Production HTTPS / Secrets / Recovery Contract Forensic Audit (COMPLETE; docs only, 2026-11-23)
- Approved and verified baseline
620b165e9d3f2c26ad967db54e540387a076292b; exact pre-other-doc Scope Locknotes/P05-OIDC-07.mdcommitted first atd5561fa37c6dd5acbda0cbbe74f357fbc490d08d. - Existing Run #99 Job #214 SUCCESS on source
7d6b6d0704b9e39bcb6e74257dadf0b64a19fc0f: imported source-built custom Login V2 real disposable HTTP localhost Chromium/PKCE/state/nonce/Auth.js session/protected API/negative/logout and both cleanup PASS, unchanged. No new CI dispatch/run/build/source edit, public DNS/TLS/real user/production inspection or deployment in P05-OIDC-07. - Production-context verdict BLOCKED / NOT VERIFIED: proposed
https://auth.vib.toolssingle issuer and Login/Console,https://account.vib.toolsrelying party exact callback, HTTPS/h2c/forwarded Host and cookies, IAM_LOGIN_CLIENT/break-glass IAM_OWNER/master-key custody, encrypted PostgreSQL recovery, SMTP, digest-pinned images, SBOM/signature/rollback and operations contracts were documented, not implemented or accepted in production. Prior P05-OIDC-05 architecture note was superseded only in respect of custom Login runtime by Run #99; production findings remain. - Write scope
notes/**, relevantproject/**,docs/**and necessary README/MINIFEST only; all source/CI/config/infrastructure strictly read-only. Details: forensic design, operator guide. - Next proposed separately approved P05-OIDC-08: new synthetic-only CI dry-run contract files, one manual static/negative test Gitea job, no production/deploy/real TLS. Exact whitelist in
notes/P05-OIDC-07.md.
P05-OIDC-08 — Synthetic CI-only production contract, terminal FAILURE (2026-11-23)
- Verified baseline
4c4bb8155fb6c3c57f935d0c98af6a40325c60be, pre-source Scope Lock note first committed at3fc49916cac1301dbbf9a0aecb89f0a558279b65. Exactly eight approved new workflow/fixture/validator source files, unchanged existing protected Login/Auth.js/dev Compose/CI tests/packages; source tested SHA2ca1b4493bd47209d0c7eabf7453feaeb1f5174a. - New manual workflow
p05-production-contract-dry-run.ymland five-servicesynthetic.invalid, zero-replica, private-network, no-host-port Compose contract are non-deployable. Proposedhttps://auth.vib.toolsissuer andhttps://account.vib.toolsorigin/callback NOT live checked. - Exactly one Gitea Run #101 / Job #217 COMPLETED FAILURE: toolchain+checkout PASS,
docker compose ... config --quietPASS, strict Python normalized service validator FAIL atZITPLANE_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-A01limits source writes totests/ci/production_contract/validate.pyfor safe normalized-key RCA and narrow inert-default normalization, retaining actual behavior rejection. See notes and operator guide.
P05-OIDC-08-A01 — Normalized runtime-field RCA (2026-11-23; overall CI FAILURE)
- Approved baseline
f3528841f444d1bc119bc067db2e044269141555; pre-source Scope Lock note commitb235a39078a80464aaf01ee9fa1aca1f1f3e5c15. One narrowly edited source filetests/ci/production_contract/validate.py, tested SHA07c91ea5bcb2037e3c7b76261e1eb106b49d223f; all Compose, deployment, existing workflows, Auth.js/Login/Go/package source read-only. - Exactly one Run #102 / Job #218
COMPLETED FAILURE: tooling/checkout and staticdocker compose config --quietPASS; safe diagnostic markers show Compose addedcommand: null+entrypoint: nullto each of 5 services. This proves previous Run #101RUNTIME_BEHAVIORroot cause and new narrow compatibility passed. Next zero-replicaZITPLANE_P08_FAIL_CLOSED_DEPLOY_DISABLEDFAIL, 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 normalizeddeploy.replicasevidence/zero enforcement, all 29 negatives/positive acceptance in one manual CI run. See full report, operator summary.
P05-OIDC-08-A02 — Integer-zero deploy replicas verified; normalized metadata blocker (2026-11-23)
- Approved baseline
eaf299f36ff12e625657521f97bd1d269904eaec, pre-source Scope Lock first committed at798f87864414c81ecf50b9fc58f078ac338e5747. Onlytests/ci/production_contract/validate.pychanged; unchanged synthetic fixture/JSON/workflow/Auth.js/Login/backend/deployment/packages. Exactly one Gitea Run #103 / Job #219 tested source45a2edb854acd98546e60a68482075bc5f742bd2, COMPLETED FAILURE; no local app tests or repeated CI. docker compose config --quietPASS, source checked fivereplicas:0PASS. New type-only diagnostics: all five normalized deploy mappings are objects with integerreplicas:0, plus extra unknown fields. StrictDEPLOY_DISABLEDrule 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, operator report.
P05-OIDC-08-A03 — Extra deployment defaults resolved, next secret-grant blocker (2026-11-23)
Approved baseline b3b1878e03b3d189ae97ce24a87d6d87c6151811, pre-source note-first commit 756f3e134affcf908c3cce800cd177d78c192c78. Exactly one source change in tests/ci/production_contract/validate.py, tested source SHA 7954938fcee4d11c0b27751c7cf7abdcc64cd243; all Compose/JSON/workflow/Auth.js/Login/backend/packages read-only. Exactly one Gitea Run #104 / Job #220 COMPLETED FAILURE: toolchain, checkout, static Compose config PASS; all five source and normalized zero replicas and empty resources: {} / placement: {} verified. The previous DEPLOY_DISABLED false-positive was passed on the checked path. Strict next SERVICE_SECRET_REFS FAIL before full positive markers or any of 40 negative fixtures (25+4+3+8). Manual workflow-safety always() PASS; runner-owned task container/two volumes/network removed. No repeated CI, post-run source patch, local application test, real DNS/TLS/secret, image build or deployment.
Decision: A03 partial RCA PASS / full synthetic contract security acceptance BLOCKED. Next separately approved P05-OIDC-08-A04: validator-only safe type/classification for service secret grants and exact expected canonical source/target mapping; preserve 40 negative fixtures, add focused secret-grant negatives, one new manual static-only run and documentation closure. Forensic notes and operator guide.
P05-OIDC-08-A04 — Synthetic production-configuration security acceptance SUCCESS (2026-11-23)
Approved baseline fb5d6c5690b030608ddb393dc2cacb68605a9b07; pre-source Scope Lock note commit 64d8c0830e5dac5417db2c8de2363b1d472f11c4. Only validator source tests/ci/production_contract/validate.py changed; immutable tested source daaa8b259a519ae0290ba28936ef2279b3a9172c; Compose/policy/workflow/auth/Login/Account/backend/package/runner read-only. Exactly one Gitea Run #105 / Job #221 COMPLETED SUCCESS, all 4 job steps PASS, no rerun or post-run source edit.
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, operator guide. 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 static synthetic security contract 48/48 negative cases PASS and Run #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 / notes source matrix and 13 independently approvable Scope Locks. First candidate separate P05-OIDC-10 disposable Login OCI provenance gate; no authorization implied.