docs(audit): close P05-OIDC-05 production-context readiness review

This commit is contained in:
victorsteele428 committed 2026-11-23 10:11:00 +00:00
1 parent f91e7956f5
commit e801318f01
20 files changed
+146 -7

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ Compact, developer-friendly monorepo for a central identity service, a branded l
- **P05-OIDC-03 / A02 final:** Gitea **Run #93 COMPLETED FAILURE**, source `7b80f41`. Job #206 executed (runner queue resolved). Four backend services and private Traefik routing PASS; socat `SOCKET_BIND_ERROR`, digest-pinned Python fallback `ADDRESS_IN_USE` on private TCP `127.0.0.1:8080`. No OIDC client/human or real Chromium/Auth.js callback/session reached. Mandatory cleanup PASS. Actual 8080 listener identity still UNKNOWN; no production/secret changes. See `docs/P05-OIDC-03-A02.md`. - **P05-OIDC-03 / A02 final:** Gitea **Run #93 COMPLETED FAILURE**, source `7b80f41`. Job #206 executed (runner queue resolved). Four backend services and private Traefik routing PASS; socat `SOCKET_BIND_ERROR`, digest-pinned Python fallback `ADDRESS_IN_USE` on private TCP `127.0.0.1:8080`. No OIDC client/human or real Chromium/Auth.js callback/session reached. Mandatory cleanup PASS. Actual 8080 listener identity still UNKNOWN; no production/secret changes. See `docs/P05-OIDC-03-A02.md`.
- **P05-OIDC-04:** Single Gitea **Run #95 FAILURE** on `79dac4f5bb76e1cee4dfaf61657c6e84268b3dfb`, job #209. Source adds private socket owner forensics and isolated loopback forwarder, but CI stopped **before these executed**: 4 healthy backend services PASS, direct private proxy Host HTTP readiness `OIDC_CI_PRIVATE_PROXY_SOCKET_OR_HTTP_BLOCKED` FAIL. Real ZITADEL client/human/Chromium/PKCE/Auth.js session NOT EXECUTED; owned cleanup PASS. Real OIDC remains BLOCKED; listener owner UNKNOWN. See `docs/P05-OIDC-04.md`. - **P05-OIDC-04:** Single Gitea **Run #95 FAILURE** on `79dac4f5bb76e1cee4dfaf61657c6e84268b3dfb`, job #209. Source adds private socket owner forensics and isolated loopback forwarder, but CI stopped **before these executed**: 4 healthy backend services PASS, direct private proxy Host HTTP readiness `OIDC_CI_PRIVATE_PROXY_SOCKET_OR_HTTP_BLOCKED` FAIL. Real ZITADEL client/human/Chromium/PKCE/Auth.js session NOT EXECUTED; owned cleanup PASS. Real OIDC remains BLOCKED; listener owner UNKNOWN. See `docs/P05-OIDC-04.md`.
- **P05-OIDC-04-A01:** Gitea **Run #96 SUCCESS** on `670e225db477f180ff14ffa62e6654860a166f17`, job #210. Real disposable ZITADEL project/client/verified test-human, original Login V2 Chromium password+PKCE/state/nonce/Auth.js callback, authenticated Account session/API/page, negative access, local logout and mandatory cleanup **PASS**. Proxy TCP6:8080 listener **Traefik PID1** identified; separate private Socat forwarding verified. **Production HTTPS/MFA/passkeys/custom imported Login V2/multi-app SSO/deployment remain unverified.** See [A01 acceptance](docs/P05-OIDC-04-A01.md). - **P05-OIDC-04-A01:** Gitea **Run #96 SUCCESS** on `670e225db477f180ff14ffa62e6654860a166f17`, job #210. Real disposable ZITADEL project/client/verified test-human, original Login V2 Chromium password+PKCE/state/nonce/Auth.js callback, authenticated Account session/API/page, negative access, local logout and mandatory cleanup **PASS**. Proxy TCP6:8080 listener **Traefik PID1** identified; separate private Socat forwarding verified. **Production HTTPS/MFA/passkeys/custom imported Login V2/multi-app SSO/deployment remain unverified.** See [A01 acceptance](docs/P05-OIDC-04-A01.md).
- **P05-OIDC-05:** Read-only production-context forensic audit after verified Run #96 disposable **prebuilt** Login V2/Auth.js OIDC and Run #89 imported Login **build**. Custom Login image/runtime, HTTPS issuer and callback, production secrets/backup/rollback, MFA/Admin and multi-app SSO are NOT VERIFIED; no new CI or app edits. [Audit](docs/P05-OIDC-05.md).
- **Production / Coolify:** not configured or deployed. - **Production / Coolify:** not configured or deployed.
## Documentation and project knowledge ## Documentation and project knowledge
+2
View File
@@ -55,3 +55,5 @@ Future feature additions need an evidence-backed status update here, an exact de
**P05-OIDC-04 terminal:** [Gitea Run #95](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/95), job #209, source `79dac4f5bb76e1cee4dfaf61657c6e84268b3dfb` **COMPLETED FAILURE**. Docker/ownership/portless configuration PASS, four backend containers healthy PASS; direct private Traefik Host HTTP probe **FAIL** (`OIDC_CI_PRIVATE_PROXY_SOCKET_OR_HTTP_BLOCKED`). The 8080 PID/socket audit, new isolated forwarder and every real project/client/user/Chromium/Login V2/PKCE/Auth.js/session/negative/logout check were **NOT EXECUTED**. Owned-only cleanup **PASS**; authenticated OIDC remains BLOCKED, production/MFA NOT VERIFIED. See [P05-OIDC-04.md](P05-OIDC-04.md). **P05-OIDC-04 terminal:** [Gitea Run #95](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/95), job #209, source `79dac4f5bb76e1cee4dfaf61657c6e84268b3dfb` **COMPLETED FAILURE**. Docker/ownership/portless configuration PASS, four backend containers healthy PASS; direct private Traefik Host HTTP probe **FAIL** (`OIDC_CI_PRIVATE_PROXY_SOCKET_OR_HTTP_BLOCKED`). The 8080 PID/socket audit, new isolated forwarder and every real project/client/user/Chromium/Login V2/PKCE/Auth.js/session/negative/logout check were **NOT EXECUTED**. Owned-only cleanup **PASS**; authenticated OIDC remains BLOCKED, production/MFA NOT VERIFIED. See [P05-OIDC-04.md](P05-OIDC-04.md).
**P05-OIDC-04-A01 accepted real browser OIDC (disposable only):** Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96), job #210, source `670e225db477f180ff14ffa62e6654860a166f17` **COMPLETED SUCCESS**. 4/4 healthy services/portless network, actual Traefik PID 1 TCP6:8080 listener, separate private Socat forwarder, issuer discovery, official project/client/test-human, Chromium original Login V2, PKCE S256/state/nonce, genuine Auth.js callback/subject/session/protected identity API/page, anonymous/invalid-callback rejection, local logout and mandatory owned-only cleanup all **PASS**. Python fallback and transient-error retry **NOT EXECUTED** (not needed). **Production HTTPS/custom imported Login V2 integration/MFA/passkeys/multi-app SSO/live deployment NOT VERIFIED**. [Full guide](P05-OIDC-04-A01.md). **P05-OIDC-04-A01 accepted real browser OIDC (disposable only):** Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96), job #210, source `670e225db477f180ff14ffa62e6654860a166f17` **COMPLETED SUCCESS**. 4/4 healthy services/portless network, actual Traefik PID 1 TCP6:8080 listener, separate private Socat forwarder, issuer discovery, official project/client/test-human, Chromium original Login V2, PKCE S256/state/nonce, genuine Auth.js callback/subject/session/protected identity API/page, anonymous/invalid-callback rejection, local logout and mandatory owned-only cleanup all **PASS**. Python fallback and transient-error retry **NOT EXECUTED** (not needed). **Production HTTPS/custom imported Login V2 integration/MFA/passkeys/multi-app SSO/live deployment NOT VERIFIED**. [Full guide](P05-OIDC-04-A01.md).
**P05-OIDC-05 audit summary (2026-11-23):** The previous historical snapshots remain intact. Current accepted source: [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) real **disposable prebuilt** Login V2 → Chromium/PKCE/Auth.js protected Account/negatives/local logout **PASS**, owned cleanup PASS. Imported source build/unit/security verified separately Run #89. **Production HTTPS/issuer/Host/secure-cookie/callback, imported Login custom-image runtime, Admin Console sign-in, MFA/passkeys, two-app SSO, managed backups/secrets and public deployment NOT VERIFIED/BLOCKED.** See [production readiness audit](P05-OIDC-05.md). No CI rerun in this audit.
+1
View File
@@ -20,6 +20,7 @@ Every file listed below is a direct child of `docs/`. Add/remove rows whenever t
| [P05-OIDC-03-A02.md](P05-OIDC-03-A02.md) | Actual terminal Gitea Run #93 port-bind blocker, authentic OIDC test limits, cleanup and next steps | P05-OIDC-03-A02 / completed failure, cleanup PASS | | [P05-OIDC-03-A02.md](P05-OIDC-03-A02.md) | Actual terminal Gitea Run #93 port-bind blocker, authentic OIDC test limits, cleanup and next steps | P05-OIDC-03-A02 / completed failure, cleanup PASS |
| [P05-OIDC-04-A01.md](P05-OIDC-04-A01.md) | Verified Run #96 real Login V2/Auth.js browser acceptance, privacy boundaries and limitations | P05-OIDC-04-A01 / Run #96 SUCCESS | | [P05-OIDC-04-A01.md](P05-OIDC-04-A01.md) | Verified Run #96 real Login V2/Auth.js browser acceptance, privacy boundaries and limitations | P05-OIDC-04-A01 / Run #96 SUCCESS |
| [P05-OIDC-04.md](P05-OIDC-04.md) | Private namespace forwarder design, actual Run #95 status and real-browser acceptance limitations | P05-OIDC-04 / direct proxy readiness FAIL, cleanup PASS | | [P05-OIDC-04.md](P05-OIDC-04.md) | Private namespace forwarder design, actual Run #95 status and real-browser acceptance limitations | P05-OIDC-04 / direct proxy readiness FAIL, cleanup PASS |
| [P05-OIDC-05.md](P05-OIDC-05.md) | Operator-oriented production readiness gaps and accepted disposable authentication distinction | P05-OIDC-05 / audit complete, production UNVERIFIED |
| [SETUP-GUIDE.md](SETUP-GUIDE.md) | Operator/developer prerequisites, configs, activation and safety | DOCS-01 / active; runtime pending | | [SETUP-GUIDE.md](SETUP-GUIDE.md) | Operator/developer prerequisites, configs, activation and safety | DOCS-01 / active; runtime pending |
| [FEATURES-STATUS.md](FEATURES-STATUS.md) | Exact implemented/unavailable/unverified feature matrix | DOCS-01 / active | | [FEATURES-STATUS.md](FEATURES-STATUS.md) | Exact implemented/unavailable/unverified feature matrix | DOCS-01 / active |
| [TROUBLESHOOTING.md](TROUBLESHOOTING.md) | Known blockers and safe diagnosis based on source status | DOCS-01 / active | | [TROUBLESHOOTING.md](TROUBLESHOOTING.md) | Known blockers and safe diagnosis based on source status | DOCS-01 / active |
+29
View File
@@ -0,0 +1,29 @@
# P05-OIDC-05 — Production Integration Readiness Audit
**Result:** Source/evidence audit COMPLETE; production deployment **NOT VERIFIED**. Approved Gitea baseline `b3841d8c05d6b47ceaf1dbc5f7103b8de4f256e6`. **No new CI or application change**.
## What is already verified
Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) / Job #210 passed a **disposable, isolated, real OIDC browser flow** using official prebuilt ZITADEL Login V2, a temporary project/client/human, Chromium password/PKCE S256/state/nonce, Auth.js callback, Account session and protected API/page, anonymous/invalid callback failures, portal-local logout, and exact-owned cleanup. Separately, [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89) passed the imported upstream Login V2 **source build**, 1,219 unit tests and its production registry audit at that time. They tested **different artifacts**; the imported source is **not** the Login image used by Run #96.
## Current production-readiness matrix
| Area | Repository evidence | Missing acceptance |
| --- | --- | --- |
| Custom Login V2 | Imported source and Dockerfile; build PASS | CI-built source image wired into real OIDC runtime |
| Production ZITADEL domain | Dev Compose HTTP `localhost:8080` only | Actual HTTPS issuer, DNS, TLS, proxy h2c/HTTP2 and Login path |
| Account Portal | Auth.js subject/expiry/PKCE checks and dev-origin authenticated CI PASS | Production HTTPS callbacks, trusted forwarding headers, cookie attributes and image deployment |
| Admin Console, MFA and passkey | Upstream source pages and Account security links | User/role/policy, WebAuthn RP origin, enrollment, recovery, console login E2E |
| Multi-app SSO | One disposable Account OIDC client | Two independent clients/apps, tenant/role boundaries and session/logout handling |
| Operations | Disposable volumes and cleanup tested | Production master key/secrets, SMTP, backups/restore, rollback, monitoring, image signing |
**Do not deploy** `deployment/docker/compose.backend.dev.yaml` to public Coolify: it explicitly configures development HTTP, localhost, a temporary prebuilt Login and dev bootstrap. Production endpoints `auth.vib.tools` and `account.vib.tools` are **design targets**, not verified DNS or live services. A legitimate prod design must keep the external issuer and exact callback `https://account.vib.tools/api/auth/callback/zitadel` consistent, terminate TLS, support required ZITADEL h2c, constrain host/forwarded headers and verify secure cookies.
The Account Portal's factor rows are **informational**; `Open central security settings` is permission-dependent. `Sign out of portal` ends only the local session, not all SaaS or IdP sessions. No real user/production environment was accessed in this audit.
## Recommendation
First complete separately approved **P05-OIDC-06: custom imported Login V2 disposable image/runtime acceptance**, preserving the current official-prebuilt Run #96 baseline. Then separately implement production HTTPS/secret/backup/rollback and finally MFA/Admin/multi-app SSO E2E gates. See the detailed prioritized security evidence and exact next Scope Lock: [notes/P05-OIDC-05.md](../notes/P05-OIDC-05.md).
Official background: [ZITADEL reverse proxy](https://zitadel.com/docs/self-hosting/manage/reverseproxy/reverse_proxy), [production](https://zitadel.com/docs/self-hosting/manage/production), [gradual Login V2 cutover](https://zitadel.com/docs/self-hosting/manage/adopt-login-v2), [Auth.js deployment](https://authjs.dev/getting-started/deployment). These are design references, not deployed acceptance.
+4
View File
@@ -132,3 +132,7 @@ Coolify, HTTPS, secrets, backups, durable storage and focused production readine
- Approved baseline `443dfcf5d1ecb6f6f5c04cada32aafa17d7d823e`; pre-source `notes/P05-OIDC-04-A01.md` committed, then **only** `tests/ci/oidc_e2e/run.sh` modified on source SHA `670e225db477f180ff14ffa62e6654860a166f17`. Direct private proxy readiness now records bounded allowlisted socket/HTTP failure classes, with conditional transient-only retry (untested branch; first attempt passed). - Approved baseline `443dfcf5d1ecb6f6f5c04cada32aafa17d7d823e`; pre-source `notes/P05-OIDC-04-A01.md` committed, then **only** `tests/ci/oidc_e2e/run.sh` modified on source SHA `670e225db477f180ff14ffa62e6654860a166f17`. 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](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/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. - Exactly one Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/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-05` **read-only production integration readiness audit**, subject to separate approval. Source/terminal evidence: `notes/P05-OIDC-04-A01.md`, `docs/P05-OIDC-04-A01.md`. - 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-05` **read-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](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/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.
+3 -2
View File
@@ -2,7 +2,7 @@
**Purpose:** the Git-tracked, **user-facing** knowledge base: real functions, pages, controls, account behavior, prerequisites, how to use each available capability, troubleshooting and limitations. **Purpose:** the Git-tracked, **user-facing** knowledge base: real functions, pages, controls, account behavior, prerequisites, how to use each available capability, troubleshooting and limitations.
**Current product status:** P02 local backend Compose, P03 imported Login V2 source, P04 account portal source. No integrated deployed product yet; Gitea Run #86 verified disposable backend readiness/persistence, Run #89 verified Login frozen build/unit/security and Run #87 verified Account build/security. **Real authenticated user login/MFA and production deployment remain unverified.** **Do not claim pages/buttons are working in production merely because source exists.** **Current product status:** P02 local backend Compose, P03 imported Login V2 source, P04 account portal source. No integrated deployed product yet; Gitea Run #86 verified disposable backend readiness/persistence, Run #89 verified Login frozen build/unit/security and Run #87 verified Account build/security. **Run #96 verified one disposable authenticated user flow using official prebuilt Login V2; MFA/passkeys and production deployment remain unverified.** **Do not claim pages/buttons are working in production merely because source exists.**
## What to read ## What to read
@@ -13,7 +13,8 @@
5. [DEVELOPMENT.md](DEVELOPMENT.md) — existing developer quick start; includes pending CI/testing warnings. 5. [DEVELOPMENT.md](DEVELOPMENT.md) — existing developer quick start; includes pending CI/testing warnings.
6. [ARCHITECTURE.md](ARCHITECTURE.md) — architecture overview (technical context). 6. [ARCHITECTURE.md](ARCHITECTURE.md) — architecture overview (technical context).
7. [PHASES.md](PHASES.md), [P02-EVIDENCE.md](P02-EVIDENCE.md), [P03-SOURCE-IMPORT.md](P03-SOURCE-IMPORT.md), [P04-ACCOUNT-PORTAL.md](P04-ACCOUNT-PORTAL.md) — historical implemented source details and acceptance limits. 7. [PHASES.md](PHASES.md), [P02-EVIDENCE.md](P02-EVIDENCE.md), [P03-SOURCE-IMPORT.md](P03-SOURCE-IMPORT.md), [P04-ACCOUNT-PORTAL.md](P04-ACCOUNT-PORTAL.md) — historical implemented source details and acceptance limits.
8. [MINIFEST.md](MINIFEST.md) — exact files and purposes. 8. [P05-OIDC-05.md](P05-OIDC-05.md) — current source-backed production readiness blockers after accepted disposable browser OIDC.
9. [MINIFEST.md](MINIFEST.md) — exact files and purposes.
## Rules for every future developer/AI agent ## Rules for every future developer/AI agent
+4
View File
@@ -124,3 +124,7 @@ In Gitea `vibtools/ZitPlane` → Actions → **ZitPlane P05-OIDC-01 Disposable R
**P05-OIDC-04 terminal guidance:** [Run #95](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/95) used a scoped separate run-owned private forwarder namespace candidate without publishing host ports or modifying original Compose. However it **FAILED before forwarder startup** at the direct Traefik private Host socket/HTTP check despite four healthy containers. Socket-owner diagnostics, official client/user provisioning and real Login V2/Auth.js authentication **NOT EXECUTED**; mandatory owned-only cleanup PASS. Do not change local/production configs or manually create test accounts. Next action requires a new, narrowly approved direct-proxy-readiness RCA. See [P05-OIDC-04.md](P05-OIDC-04.md). **P05-OIDC-04 terminal guidance:** [Run #95](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/95) used a scoped separate run-owned private forwarder namespace candidate without publishing host ports or modifying original Compose. However it **FAILED before forwarder startup** at the direct Traefik private Host socket/HTTP check despite four healthy containers. Socket-owner diagnostics, official client/user provisioning and real Login V2/Auth.js authentication **NOT EXECUTED**; mandatory owned-only cleanup PASS. Do not change local/production configs or manually create test accounts. Next action requires a new, narrowly approved direct-proxy-readiness RCA. See [P05-OIDC-04.md](P05-OIDC-04.md).
**P05-OIDC-04-A01 acceptance:** Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) **SUCCESS**, **not a production installation**. In disposable CI, private Host/forwarder and full original Login V2 → Auth.js → Account protected session/identity API → negative cases → portal logout passed; owned credentials/database/containers/network cleanup verified. Traefik PID1 was actually listening on proxy-local TCP6:8080; the isolated forwarder avoids binding in that shared namespace. Do **not** expose port 8080, use real test humans, modify production secrets or infer that custom imported Login V2, MFA/passkeys or HTTPS has been accepted. See [P05-OIDC-04-A01.md](P05-OIDC-04-A01.md). **P05-OIDC-04-A01 acceptance:** Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) **SUCCESS**, **not a production installation**. In disposable CI, private Host/forwarder and full original Login V2 → Auth.js → Account protected session/identity API → negative cases → portal logout passed; owned credentials/database/containers/network cleanup verified. Traefik PID1 was actually listening on proxy-local TCP6:8080; the isolated forwarder avoids binding in that shared namespace. Do **not** expose port 8080, use real test humans, modify production secrets or infer that custom imported Login V2, MFA/passkeys or HTTPS has been accepted. See [P05-OIDC-04-A01.md](P05-OIDC-04-A01.md).
## P05-OIDC-05 production readiness warning
Run #96 authenticated successfully only in disposable CI over **HTTP localhost** with original **prebuilt** Login V2. The tracked backend Compose has `localhost:8080`, disabled external TLS and local-only routing; **never deploy this development Compose to public Coolify** or reuse its bootstrap credentials/volumes. An independent future phase must build and test imported custom Login image; later phases must implement canonical HTTPS issuer and registered Account callback, h2c/HTTP2, trusted forwarded Host/Proto, cookie policy, secrets/rotation, backup/restore, break-glass and rollback. Factors/Admin/second app SSO remain unverified. Operator report: [P05-OIDC-05.md](P05-OIDC-05.md).
+4
View File
@@ -87,3 +87,7 @@ Previously queued Run #93 eventually ran: job #206 started and failed after heal
## P05-OIDC-04-A01 — previous socket failure resolved in disposable CI ## P05-OIDC-04-A01 — previous socket failure resolved in disposable CI
Earlier Run #95 did not classify its private proxy HTTP exception and failed before diagnostics. In [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) the direct proxy probe returned HTTP 200 on its first attempt; safe error classification and conditional bounded retry remain **unexercised**, not a separately verified negative test. The pre-forwarder socket inspector identified **Traefik PID1 TCP6:8080** as the existing listener. In a separate run-owned private namespace, Socat forwarded localhost:8080 to proxy:80 and the genuine Chromium/OIDC/Account protected session/negative/logout tests all **PASSED**. Always-run exact-owned cleanup PASS. Do not diagnose past port errors as invalid identity credentials or change production ports. [Evidence](P05-OIDC-04-A01.md). Earlier Run #95 did not classify its private proxy HTTP exception and failed before diagnostics. In [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) the direct proxy probe returned HTTP 200 on its first attempt; safe error classification and conditional bounded retry remain **unexercised**, not a separately verified negative test. The pre-forwarder socket inspector identified **Traefik PID1 TCP6:8080** as the existing listener. In a separate run-owned private namespace, Socat forwarded localhost:8080 to proxy:80 and the genuine Chromium/OIDC/Account protected session/negative/logout tests all **PASSED**. Always-run exact-owned cleanup PASS. Do not diagnose past port errors as invalid identity credentials or change production ports. [Evidence](P05-OIDC-04-A01.md).
## P05-OIDC-05 — CI success vs public deployment
If production domains do not respond, do not assume Gitea Run #96 deployed them: it did **not**. A custom Login design not appearing is expected until the imported image is actually built and wired; dev Compose explicitly loads the official prebuilt image. Future HTTPS OIDC failures require exact issuer, callback, public Host, sanitizing forwarded headers, h2c/HTTP2 route, cookies and secrets review; do not bypass PKCE/state/nonce or expose :8080 publicly. MFA/self-service links require actual ZITADEL policy and Console permissions. Never share passwords, PATs, query URLs or cookies in diagnostics. See [P05-OIDC-05.md](P05-OIDC-05.md).
+4
View File
@@ -81,3 +81,7 @@ Imported Login V2 source contains registration, password, verification, MFA/OTP,
## If a page does not open ## If a page does not open
This is expected until environment, OIDC client, dependencies, Docker integration, proxy and domains are configured in future approved phases. Consult [SETUP-GUIDE.md](SETUP-GUIDE.md), [FEATURES-STATUS.md](FEATURES-STATUS.md) and [TROUBLESHOOTING.md](TROUBLESHOOTING.md). Do not share passwords or screenshots containing tokens. This is expected until environment, OIDC client, dependencies, Docker integration, proxy and domains are configured in future approved phases. Consult [SETUP-GUIDE.md](SETUP-GUIDE.md), [FEATURES-STATUS.md](FEATURES-STATUS.md) and [TROUBLESHOOTING.md](TROUBLESHOOTING.md). Do not share passwords or screenshots containing tokens.
## P05-OIDC-05 current user-facing availability
Source/CI **verified**: Run #96 successfully authenticated a disposable test human through official prebuilt Login V2 into the Account Portal, verified protected API/page and local logout. **Not publicly deployed** by any evidence in this repository; planned auth/account domain URLs may be unavailable. `Open central security settings` depends on ZITADEL permissions; password/MFA/passkeys cannot be edited within this portal. `Sign out of portal` is not federated sign-out across apps. Login source import is not the image used by accepted CI. See [production readiness](P05-OIDC-05.md).
+2
View File
@@ -25,4 +25,6 @@ This is the chronological **index**. Phase-specific scope/implementation evidenc
| 2026-11-23 | P05-OIDC-04-A01 | Pre-source Scope Lock, allowlisted direct private HTTP/socket classification and bounded transient-only probe retry | **Run #96 / Job #210 SUCCESS** on `670e225db477f180ff14ffa62e6654860a166f17`: proxy Traefik PID 1 port 8080 identified; isolated Socat/issuer/client/human/Chromium Login V2/PKCE/Auth.js session/negatives/logout **PASS**; owned cleanup **PASS**. [Evidence](P05-OIDC-04-A01.md) | | 2026-11-23 | P05-OIDC-04-A01 | Pre-source Scope Lock, allowlisted direct private HTTP/socket classification and bounded transient-only probe retry | **Run #96 / Job #210 SUCCESS** on `670e225db477f180ff14ffa62e6654860a166f17`: proxy Traefik PID 1 port 8080 identified; isolated Socat/issuer/client/human/Chromium Login V2/PKCE/Auth.js session/negatives/logout **PASS**; owned cleanup **PASS**. [Evidence](P05-OIDC-04-A01.md) |
| 2026-11-23 | P05-OIDC-05 | Read-only audit of Login prebuilt vs imported, HTTPS/issuer/proxy/session, MFA/Console/SSO and deployment/secrets/backup | Baseline `b3841d8c05d6b47ceaf1dbc5f7103b8de4f256e6`; Run #96 disposable OIDC SUCCESS and Run #89 imported build SUCCESS retained; production custom image/TLS/ops BLOCKED. [Evidence](P05-OIDC-05.md) |
Rules: Append new phases or fixes; never silently rewrite a past result. Separate **implemented**, **verified**, **blocked**, and **proposed**. Never log a user secret or personal data. Rules: Append new phases or fixes; never silently rewrite a past result. Separate **implemented**, **verified**, **blocked**, and **proposed**. Never log a user secret or personal data.
+1
View File
@@ -18,6 +18,7 @@
| [P05-OIDC-03-A02.md](P05-OIDC-03-A02.md) | Read-only terminal Run #93 job #206 evidence, private port 8080 conflict and verified cleanup | P05-OIDC-03-A02 / run FAILED, real OIDC blocked, cleanup PASS | | [P05-OIDC-03-A02.md](P05-OIDC-03-A02.md) | Read-only terminal Run #93 job #206 evidence, private port 8080 conflict and verified cleanup | P05-OIDC-03-A02 / run FAILED, real OIDC blocked, cleanup PASS |
| [P05-OIDC-04-A01.md](P05-OIDC-04-A01.md) | Pre-source scope, classified readiness probe, one Gitea Run #96 real browser OIDC SUCCESS, listener RCA and cleanup | P05-OIDC-04-A01 / accepted real disposable OIDC | | [P05-OIDC-04-A01.md](P05-OIDC-04-A01.md) | Pre-source scope, classified readiness probe, one Gitea Run #96 real browser OIDC SUCCESS, listener RCA and cleanup | P05-OIDC-04-A01 / accepted real disposable OIDC |
| [P05-OIDC-04.md](P05-OIDC-04.md) | Pre-source Scope Lock, isolated forwarder source diff, terminal Run #95 job #209 failure/cleanup and next exact RCA | P05-OIDC-04 / Run #95 failure, cleanup PASS; OIDC blocked | | [P05-OIDC-04.md](P05-OIDC-04.md) | Pre-source Scope Lock, isolated forwarder source diff, terminal Run #95 job #209 failure/cleanup and next exact RCA | P05-OIDC-04 / Run #95 failure, cleanup PASS; OIDC blocked |
| [P05-OIDC-05.md](P05-OIDC-05.md) | Documentation-first read-only production-context forensic evidence, blockers and next exact scope | P05-OIDC-05 / audit complete, production BLOCKED |
| [CHANGELOG.md](CHANGELOG.md) | Short append-only chronological phase log and links to detailed reports | DOCS-01 / active | | [CHANGELOG.md](CHANGELOG.md) | Short append-only chronological phase log and links to detailed reports | DOCS-01 / active |
Update this manifest whenever any direct child file or directory changes. Use **actual source state**; a planned file must be labeled planned, not present. Update this manifest whenever any direct child file or directory changes. Use **actual source state**; a planned file must be labeled planned, not present.
+51
View File
@@ -25,3 +25,54 @@ This note is created/committed **before any other P05-OIDC-05 documentation upda
**Acceptance conditions:** No unauthorized changes; published documentation agrees with source plus Run #96; limitations prominently exclude production HTTPS/MFA/SSO or custom Login integration as verified; final docs SHA and tested CI SHA clearly distinguished. **Acceptance conditions:** No unauthorized changes; published documentation agrees with source plus Run #96; limitations prominently exclude production HTTPS/MFA/SSO or custom Login integration as verified; final docs SHA and tested CI SHA clearly distinguished.
**Initial disposition:** Forensic audit PENDING. No claim that production deployment, MFA/passkeys or imported Login V2 is integrated or accepted. **Initial disposition:** Forensic audit PENDING. No claim that production deployment, MFA/passkeys or imported Login V2 is integrated or accepted.
## Completed forensic audit — P05-OIDC-05
**Status:** READ-ONLY SOURCE/EVIDENCE AUDIT COMPLETE on 2026-11-23; application/CI/runner/production paths unchanged. Scope Lock note was committed first as `f91e7956f5d42862962b1dfb69eb2f4bbb2b1466`. The approved main baseline `b3841d8c05d6b47ceaf1dbc5f7103b8de4f256e6` had 759 tracked files. No new CI was dispatched.
### Evidence rechecked without execution
- [Gitea Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96), Job #210, immutable tested source `670e225db477f180ff14ffa62e6654860a166f17`: **completed SUCCESS**, all 4 job steps SUCCESS, original **prebuilt** Login V2 plus genuine Chromium/password/authorization code/PKCE S256/state/nonce/Auth.js callback/subject/HttpOnly local session/protected page+API/anonymous and tampered-callback negative checks/portal logout PASS. Disposable IAM_OWNER project/client/test human and owned-only credential/DB/container/network cleanup PASS. Pre-bind listener in proxy network namespace: **traefik PID 1, TCP6:8080**. Run #96 used HTTP localhost/Next.js dev in isolated Gitea, not public TLS production.
- [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89): imported Login V2 source **frozen PNPM build, standalone artifact, 1,219/1,219 unit tests and zero Moderate/High/Critical production advisory findings at that run** PASS. It did **not** execute that source as the ZITADEL Login service in browser E2E. [Run #87](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/87): Account build and security jobs succeeded although overall run failed on separate historical Login advisories. No current production audit was rerun.
- Read-only reviewed tree: `deployment/docker/compose.backend.dev.yaml`, `core/backend/zitadel/README.md`, `auth/ui/v2/README.md`, imported `apps/login/Dockerfile` and build manifest, `src/proxy.ts` and service URL/header helpers, `users/ui/src/{auth.ts,lib/env.ts,lib/identity.ts}`, protected pages/API, Account package/Next config, `.gitea/workflows` and disposable `tests/ci/oidc_e2e`. No tracked production Compose/Coolify application definitions or Account production Dockerfile were found; absence in repository **does not prove** absence of external infrastructure, which was not inspected.
### Source and acceptance matrix
| Domain | IMPLEMENTED in source | VERIFIED evidence | BLOCKED / UNVERIFIED |
| --- | --- | --- | --- |
| ZITADEL/DB/reverse proxy | Dev-only Compose with ZITADEL 4.20.4, PostgreSQL 17.10, Traefik 3.7.7 | Run #86 persistence/discovery; Run #96 healthy/portless | No reviewed separate production Compose, TLS/ops or durable backup |
| Original official prebuilt Login V2 | `zitadel-login` service points to `ghcr.io/zitadel/zitadel-login:v4.20.4` | Run #96 **real authenticated OIDC PASS** | No production HTTPS or Admin Console human acceptance |
| Imported customizable Login V2 | Upstream v4.20.4 source, proto/client workspace, upstream Dockerfile | Run #89 **build/unit/audit PASS** | Custom-source image **not wired** to runtime; no real custom-image browser test |
| Account Portal | Next.js/Auth.js OIDC, PKCE/state/nonce, subject/expiry fail-closed, protected API/pages, local logout | Run #87 production build; Run #96 real dev-origin session/API/negative/logout PASS | No shipped production image, HTTPS-origin browser acceptance, refresh/federated logout |
| MFA, passkeys, recovery | Upstream source contains policy-dependent mfa/otp/passkey/u2f/password/register routes; Account security is informative | No dedicated integrated MFA/WebAuthn/recovery acceptance | NOT VERIFIED in custom or production runtime |
| Admin Console / self-service | Backend routes and Account link to `/ui/console/users/me` | Account protected pages only; no real Console human test | Console privileges/cutover and self-service route/policy UNVERIFIED |
| Multi-app SSO | Architecture target; one Account relying party with stable user subject | Run #96 creates **one** disposable client/Account flow | Second app/client, org/tenant scoping, entitlement, cross-app login/logout NOT EXECUTED |
| Release and operations | Dev secrets/volumes and manual Gitea CI | Disposable cleanup + historical security/build gates | Production image registry/release, DNS, monitoring, key rotation, backup/restore, rollback, SMTP NOT VERIFIED |
### Prioritized blockers — evidence and necessary future gate
**P0-1 — Imported Login V2 not wired at runtime.** `deployment/docker/compose.backend.dev.yaml` starts official **prebuilt** image even though `auth/ui/v2/apps/login` has buildable upstream source and an existing Dockerfile. Run #89 accepted its build, **not** a custom-source runtime image; Run #96 accepted original prebuilt image. A controlled disposable image packaging + real browser acceptance gate is necessary before claiming customized Login V2 runtime.
**P0-2 — No verified production HTTPS issuer/proxy/callback.** The only Compose sets `ZITADEL_EXTERNALDOMAIN=localhost`, `ZITADEL_EXTERNALPORT=8080`, `ZITADEL_EXTERNALSECURE=false`, `ZITADEL_TLS_ENABLED=false` and `CUSTOM_REQUEST_HEADERS=Host:localhost,X-Forwarded-Proto:http`, with a developer `127.0.0.1:8080:80` bind and internal h2c API routes. Proposed hosts `auth.vib.tools` and `account.vib.tools` are not verified as live. A dedicated HTTPS ingress must preserve canonical external issuer, exact login path and registered Account callback `https://account.vib.tools/api/auth/callback/zitadel`; sanitize Host/forwarded headers and verify HTTP/2/h2c, redirects, cookies and failure behavior. The Traefik service mounts the Docker socket as `:ro`, but a filesystem read-only socket mount does not restrict Docker API privileges; production hardening needs explicit review. Official references: https://zitadel.com/docs/self-hosting/manage/reverseproxy/reverse_proxy and https://zitadel.com/docs/self-hosting/manage/production .
**P0-3 — No production secret/DB recovery/runbook evidence.** `core/backend/zitadel/dev.py` and development Compose use an ignored locally generated `.env`, a development first-instance admin/email shortcut, bootstrap master key and login-client PAT volume with documented 2028 expiration. Do not reuse these accounts, values, volumes or settings for production. No checked-in reviewed secure secret store and rotation, break-glass IAM_OWNER, least-privilege identity/bootstrap workflow, production PostgreSQL backup/restore, SMTP/recovery, monitoring or safe rollback/upgrade mechanism were identified. ZITADEL recommends controlled Login V2 cutover and break-glass access: https://zitadel.com/docs/self-hosting/manage/adopt-login-v2 .
**P1-1 — HTTPS/Host/cookie/session gap.** `users/ui/src/lib/env.ts::validatedUrl` requires an HTTPS origin in production and `oidcSettings` checks nonempty credentials and minimum secret length. These checks **do not** install TLS or configure an ingress; the code only passes `AUTH_TRUST_HOST` to Auth.js if explicitly true. Only trust a proxy that scrubs incoming untrusted forwarding headers. `users/ui/src/auth.ts` has Auth.js JWT, PKCE/state/nonce, 1h maxAge and subject/token expiry fail-closed, **no refresh, global IdP logout or token revocation**. `users/ui/src/components/account-shell.tsx::portalLogout` signs out locally. Run #96 verified HttpOnly and authenticated session under disposable HTTP localhost; secure/SameSite cross-domain cookie attributes, production HTTPS and multi-replica secret rotation were **NOT EXECUTED**. Official Auth.js production reference: https://authjs.dev/getting-started/deployment .
**P1-2 — MFA/passkey/Console/self-service not accepted.** Imported upstream routes exist but no approved factor-enrollment policy and no genuine WebAuthn RP/domain/OTP/recovery/browser E2E. `users/ui/src/app/(protected)/account/security/page.tsx` displays descriptive rows and a link, not local factor edits. `users/ui/src/lib/identity.ts::zitadelSelfServiceUrl` constructs Console self-service URL; permissions/route access not verified. Instance-wide Login V2 cutover may affect Console login; test with disposable break-glass/rollback.
**P1-3 — No multi-application SSO acceptance.** Only one Account OIDC relying party was provisioned. No second SaaS client with independent redirect, cross-app shared-session, issuer+subject identity binding in each business app, organization/role/tenant/entitlement or global logout isolation was tested. Portal overview statements are architectural goals, not feature-acceptance evidence.
**P2 — No production artifact/release/observability gates.** Login imported Dockerfile exists and build output verified, but no CI-produced custom Login **image runtime test** or production registry/pinning/signing; Account has `next.config.ts` standalone output but no production Docker packaging. No production certificate automation, operational health/alerts, SMTP, disaster restore, rollback or security release audit. Run #89 advisory result is historical, not proof of a current zero-advisory release.
### Audit disposition and next exact proposal
**P05-OIDC-05: COMPLETE / READ-ONLY.** Development-origin original-prebuilt OIDC **VERIFIED**, production-context readiness **BLOCKED / NOT VERIFIED**. No source modification, new CI, tests/builds, production access, human accounts, tags/releases or changes to untracked `AI_INSTRUCTIONS.md`. Documentation-only closure does not produce a new tested source SHA.
**Recommend next separately approved phase: P05-OIDC-06 — Imported Login V2 Disposable Image & Runtime Acceptance.** Scope Lock:
- **WRITE:** create `notes/P05-OIDC-06.md` first; new `.gitea/workflows/p05-custom-login-acceptance.yml`; new CI-only `deployment/docker/compose.login-ci.override.yaml`; new focused `tests/ci/login_image/**`; optionally, **only if necessary**, a minimal backwards-compatible opt-in override hook in `tests/ci/oidc_e2e/run.sh` to reuse accepted real OIDC suite; related `notes/**`, `project/**`, `docs/**` and associated README/MINIFEST.
- **STRICT READ-ONLY:** `auth/ui/v2/**` including upstream Dockerfile/source/package locks, `users/ui/**`, `core/**`, existing development Compose, existing workflows, existing browser/provision/cleanup files (except explicitly allowed run.sh hook), package manifests/locks, runners, production/secrets/unrelated files.
- **Purpose:** isolated Gitea build of imported workspace → ephemeral local Docker image from existing upstream Dockerfile → CI-only Compose overlay substitutes custom image → **one** approved real Chromium Login V2/PKCE/Auth.js/session/API/negative/logout + owned cleanup acceptance. No public ports, real users, registry push, local builds/tests, production, branding edit, tags/releases or repeat CI. Stop/report if blocked, no scope expansion.
- **Order after P05-OIDC-06:** separate production HTTPS/secret/backup/rollback design and acceptance; then MFA/Admin/SSO gates only after dedicated approval.
**No production deployment state was inspected.** This report identifies repository-backed evidence gaps, not the state of arbitrary external services.
+2
View File
@@ -25,6 +25,8 @@ This is the **developer-focused implementation history**. `notes/CHANGELOG.md` i
| 2026-11-23 | P05-OIDC-04-A01 | Safe classified proxy readiness in `tests/ci/oidc_e2e/run.sh`; no backend/Login/Account/auth changes | Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) job #210 **SUCCESS** on source `670e225db477f180ff14ffa62e6654860a166f17`: isolated real browser OIDC with protected session/negative/logout PASS, actual Traefik PID1 TCP6 8080 identified, owned cleanup PASS. See `notes/P05-OIDC-04-A01.md` | | 2026-11-23 | P05-OIDC-04-A01 | Safe classified proxy readiness in `tests/ci/oidc_e2e/run.sh`; no backend/Login/Account/auth changes | Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) job #210 **SUCCESS** on source `670e225db477f180ff14ffa62e6654860a166f17`: isolated real browser OIDC with protected session/negative/logout PASS, actual Traefik PID1 TCP6 8080 identified, owned cleanup PASS. See `notes/P05-OIDC-04-A01.md` |
| 2026-11-23 | P05-OIDC-05 | Source and evidence forensic audit, prioritized custom Login/TLS/identity/ops gaps; no runtime/source edits | `b3841d8c05d6b47ceaf1dbc5f7103b8de4f256e6`; original prebuilt Login E2E Run #96 PASS, imported Login frozen build Run #89 PASS, production NOT VERIFIED; `notes/P05-OIDC-05.md` |
## Required entry for each future change ## Required entry for each future change
Date, phase, approval/scope, baseline SHA, source files changed, reason/functional effect, interface/security impacts, migration/config steps, test/CI evidence, docs updated, commit SHA, verified/unverified limitations. Append one record for every approved change/fix, including documentation-only changes. Never overwrite old conclusions without noting correction. Date, phase, approval/scope, baseline SHA, source files changed, reason/functional effect, interface/security impacts, migration/config steps, test/CI evidence, docs updated, commit SHA, verified/unverified limitations. Append one record for every approved change/fix, including documentation-only changes. Never overwrite old conclusions without noting correction.
+4
View File
@@ -168,3 +168,7 @@ Manual Gitea [Run #95](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/95) jo
## P05-OIDC-04-A01 — terminal single-run acceptance ## P05-OIDC-04-A01 — terminal single-run acceptance
Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) on source `670e225db477f180ff14ffa62e6654860a166f17`, job #210 **COMPLETED SUCCESS**, all four workflow job steps SUCCESS. Four backend/portless services, private Host HTTP, socket PID1 Traefik on TCP6 8080, dedicated Socat/issuer, official ephemeral project/client/human, browser real password/PKCE/state/nonce/Auth.js/subject/protected API/page, anonymous and callback negatives, local logout and mandatory exact-owned cleanup **PASS**. `tests/ci/oidc_e2e/run.sh` alone changed in A01: bounded/no-secret classified readiness failures and conditional transient retry; retry not exercised. No workflow, auth backend, package, deployment or runner edits. The source-tested SHA is distinct from the later documentation-only commit; production integration remains outside Run #96. Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) on source `670e225db477f180ff14ffa62e6654860a166f17`, job #210 **COMPLETED SUCCESS**, all four workflow job steps SUCCESS. Four backend/portless services, private Host HTTP, socket PID1 Traefik on TCP6 8080, dedicated Socat/issuer, official ephemeral project/client/human, browser real password/PKCE/state/nonce/Auth.js/subject/protected API/page, anonymous and callback negatives, local logout and mandatory exact-owned cleanup **PASS**. `tests/ci/oidc_e2e/run.sh` alone changed in A01: bounded/no-secret classified readiness failures and conditional transient retry; retry not exercised. No workflow, auth backend, package, deployment or runner edits. The source-tested SHA is distinct from the later documentation-only commit; production integration remains outside Run #96.
## P05-OIDC-05 CI coverage audit — no new test
Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) is terminal SUCCESS for disposable original-prebuilt Login V2 / ZITADEL / Account real Chromium authentication, negative tests, portal-local logout and cleanup. Run #89 separately tested upstream imported Login V2 frozen build/1219 units/registry security; Run #87 Account build/security jobs passed. No accepted workflow builds a **custom-source Login V2 image** and substitutes it into full real OIDC E2E. No production TLS/domain/MFA/Admin Console/two-app SSO pipeline is demonstrated. This docs-only audit did not dispatch or rerun anything. See `notes/P05-OIDC-05.md`.
+4
View File
@@ -54,3 +54,7 @@ New manually dispatched workflow `.gitea/workflows/p05-ci.yml` defines four isol
## P05-CI-03 verified backend runtime, not a user page ## P05-CI-03 verified backend runtime, not a user page
Gitea [Run #86](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/86) verified P02's PostgreSQL, ZITADEL API, prebuilt Login V2 and Traefik running/healthy in a disposable runner, including restart persistence, exact `http://localhost:8080` OIDC issuer discovery/JWKS, negative metadata fixtures and cleanup. This is **not** verification of a human pressing Login/Sign Up/MFA or any positive Account Portal session. Those remain **unverified** and must be documented when future phases implement isolated real-identity E2E. Gitea [Run #86](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/86) verified P02's PostgreSQL, ZITADEL API, prebuilt Login V2 and Traefik running/healthy in a disposable runner, including restart persistence, exact `http://localhost:8080` OIDC issuer discovery/JWKS, negative metadata fixtures and cleanup. This is **not** verification of a human pressing Login/Sign Up/MFA or any positive Account Portal session. Those remain **unverified** and must be documented when future phases implement isolated real-identity E2E.
## P05-OIDC-05 source-vs-acceptance clarification
Run #96 **verified** original prebuilt Login V2 password callback and Account `/signin`, protected account/session/API, anonymous+invalid-callback rejection and local logout. Imported upstream `auth/ui/v2/apps/login/src/app/(login)` has mfa, otp, passkey, u2f, register, password and IdP routes, but their production policies, enrollment/recovery/WebAuthn origin and custom image behavior were **NOT** accepted. Account `/account/security` is informational plus a policy-dependent Console link; no local factor management. Second-app SSO, admin human login, org/tenant permissions and global logout UNVERIFIED. See `notes/P05-OIDC-05.md`.
+9
View File
@@ -176,3 +176,12 @@ Official Login V2 user/auth source, user Account Portal, backend Compose and pro
**P05-OIDC-03:** `tests/ci/oidc_e2e/forwarder.py` new CI-only asyncio stdlib opaque TCP localhost relay. `tests/ci/oidc_e2e/run.sh` now first classifies existing socat startup stderr into fixed safe error classes and, on unhealthy socat, switches only once to immutable-digest official Python within the same run-owned container name/network namespace. `cleanup.sh` and `provision.py` untouched; `browser.cjs`, `users/ui/**`, `auth/ui/v2/**` and the original P02 Compose untouched. **P05-OIDC-03:** `tests/ci/oidc_e2e/forwarder.py` new CI-only asyncio stdlib opaque TCP localhost relay. `tests/ci/oidc_e2e/run.sh` now first classifies existing socat startup stderr into fixed safe error classes and, on unhealthy socat, switches only once to immutable-digest official Python within the same run-owned container name/network namespace. `cleanup.sh` and `provision.py` untouched; `browser.cjs`, `users/ui/**`, `auth/ui/v2/**` and the original P02 Compose untouched.
**P05-OIDC-04-A01 source map update:** The *only* source change is `tests/ci/oidc_e2e/run.sh` at `670e225db477f180ff14ffa62e6654860a166f17`: its pre-forwarder direct private proxy:80 readiness block classifies safely bounded socket/HTTP error codes and limits retry to transient classes only, preserving exact Host/issuer/network/isolation. Existing pre-bind namespace socket inspector identified Traefik PID 1 TCP6:8080 in actual Gitea Run #96; the already-existing isolated Socat forwarder plus unchanged original provisioning/browser/cleanup verified full disposable real OIDC SUCCESS. See `notes/P05-OIDC-04-A01.md`. **P05-OIDC-04-A01 source map update:** The *only* source change is `tests/ci/oidc_e2e/run.sh` at `670e225db477f180ff14ffa62e6654860a166f17`: its pre-forwarder direct private proxy:80 readiness block classifies safely bounded socket/HTTP error codes and limits retry to transient classes only, preserving exact Host/issuer/network/isolation. Existing pre-bind namespace socket inspector identified Traefik PID 1 TCP6:8080 in actual Gitea Run #96; the already-existing isolated Socat forwarder plus unchanged original provisioning/browser/cleanup verified full disposable real OIDC SUCCESS. See `notes/P05-OIDC-04-A01.md`.
## P05-OIDC-05 reviewed read-only integration map
- `deployment/docker/compose.backend.dev.yaml`: HTTP localhost dev backend, h2c Traefik and **prebuilt** Login V2 image; not a production manifest
- `auth/ui/v2/apps/login/{Dockerfile,package.json}`: imported build/package inputs; Run #89 build only, not Run #96 runtime
- `auth/ui/v2/apps/login/src/{proxy.ts,lib/server/service-url.ts}`: upstream rewrite/Host proxy logic, not a configured production ingress
- `users/ui/src/{auth.ts,lib/env.ts,lib/identity.ts}`: Auth.js PKCE/session, HTTPS origin validation, protected session and Console link
- `users/ui/src/{app/api/account/me/route.ts,components/account-shell.tsx}`: protected identity-only API and **local** logout
- `.gitea/workflows/p05-oidc-acceptance.yml`, `tests/ci/oidc_e2e/browser.cjs`: disposable **prebuilt** Login V2 E2E. Entire original source/CI left unchanged. `notes/P05-OIDC-05.md` lists blockers.
+4
View File
@@ -141,3 +141,7 @@ Existing `tests/ci/security_advisory_gate.py` remains the independent **live reg
**P05-OIDC-03 narrow new functions:** `run.sh::forwarder_http_ready` makes an actual status-only HTTP probe through private `127.0.0.1:8080` to the original proxy with `Host: localhost:8080`. The socat fallback branch reads *only* its pre-credential startup stderr into an allowlisted Python error classifier, verifies run-owner label before replacement, then resolves official Python by digest. `forwarder.py::copy_bytes` relays opaque 64 KiB TCP chunks without logging payload; `forwarder.py::serve_client` connects only to localhost:80 and transparently relays both directions; `forwarder.py::main` binds IPv4 loopback :8080 and emits fixed safe errno classes. Original IAM/user/PKCE/Auth.js functions unchanged. **P05-OIDC-03 narrow new functions:** `run.sh::forwarder_http_ready` makes an actual status-only HTTP probe through private `127.0.0.1:8080` to the original proxy with `Host: localhost:8080`. The socat fallback branch reads *only* its pre-credential startup stderr into an allowlisted Python error classifier, verifies run-owner label before replacement, then resolves official Python by digest. `forwarder.py::copy_bytes` relays opaque 64 KiB TCP chunks without logging payload; `forwarder.py::serve_client` connects only to localhost:80 and transparently relays both directions; `forwarder.py::main` binds IPv4 loopback :8080 and emits fixed safe errno classes. Original IAM/user/PKCE/Auth.js functions unchanged.
**P05-OIDC-04-A01 function audit:** The inline Python private Traefik readiness probe in `tests/ci/oidc_e2e/run.sh` now prints only enumerated socket error classes or numeric HTTP status, closes its HTTP socket and conditionally retries known transient errors (3 attempts max), before any OIDC client/user exists. On successful first attempt, control continues to the already-present safe port-8080 inode/PID inspector, private Socat, official provisioning and real browser acceptance. Run #96 verified all positive/negative browser/session/logout and cleanup gates, but **did not exercise retry or Python fallback**. No protected Account/Auth.js/Login V2 functions were changed. **P05-OIDC-04-A01 function audit:** The inline Python private Traefik readiness probe in `tests/ci/oidc_e2e/run.sh` now prints only enumerated socket error classes or numeric HTTP status, closes its HTTP socket and conditionally retries known transient errors (3 attempts max), before any OIDC client/user exists. On successful first attempt, control continues to the already-present safe port-8080 inode/PID inspector, private Socat, official provisioning and real browser acceptance. Run #96 verified all positive/negative browser/session/logout and cleanup gates, but **did not exercise retry or Python fallback**. No protected Account/Auth.js/Login V2 functions were changed.
## P05-OIDC-05 reviewed function boundaries (unchanged)
`users/ui/src/lib/env.ts::required,validatedUrl,oidcSettings` validates required Auth.js settings, production HTTPS origins and min-length secret; does not configure ingress. `users/ui/src/auth.ts` provider+`signIn,jwt,session` callbacks verify standard PKCE/state/nonce and fail-closed ID/expiry, but no refresh or IdP-wide logout. `users/ui/src/lib/identity.ts::requireIdentity,zitadelSelfServiceUrl` protects server identity and constructs a permission-dependent Console link. `users/ui/src/components/account-shell.tsx::portalLogout` invalidates only the portal session. Imported `auth/ui/v2/apps/login/src/proxy.ts::proxy` and `src/lib/server/service-url.ts::getServiceConfig` are source-level proxy handlers, not custom-image integration proof. Run #96 verified the existing prebuilt flow only.
+4
View File
@@ -90,3 +90,7 @@ In the ONLY new Run #95, the original 4 services were healthy but the **earlier*
Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96), job #210, source `670e225db477f180ff14ffa62e6654860a166f17`, confirmed the expected network split and full end-to-end identity acceptance. `run.sh` now classifies private pre-forwarder probe socket/HTTP failures with allowlisted markers and at most 3 attempts conditional on transient socket classes; **this first actual check passed** (so retries and failure classifications were not triggered). The existing pre-bind `/proc/net/tcp{,6}` inspector identified a real TCP6 LISTEN inode `6286327` at port 8080 owned by `traefik` PID 1 in the disposable proxy namespace. The separate Socat namespace (private Docker network) used its own loopback :8080 and Docker-private proxy:80 to preserve `http://localhost:8080` issuer/Host without public host ports. Both private ready and issuer discovery returned verified PASS. Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96), job #210, source `670e225db477f180ff14ffa62e6654860a166f17`, confirmed the expected network split and full end-to-end identity acceptance. `run.sh` now classifies private pre-forwarder probe socket/HTTP failures with allowlisted markers and at most 3 attempts conditional on transient socket classes; **this first actual check passed** (so retries and failure classifications were not triggered). The existing pre-bind `/proc/net/tcp{,6}` inspector identified a real TCP6 LISTEN inode `6286327` at port 8080 owned by `traefik` PID 1 in the disposable proxy namespace. The separate Socat namespace (private Docker network) used its own loopback :8080 and Docker-private proxy:80 to preserve `http://localhost:8080` issuer/Host without public host ports. Both private ready and issuer discovery returned verified PASS.
Official ZITADEL API created disposable project/client/verified test human, isolated secrets in run-owned volumes; original Login V2 + Chromium + Auth.js completed real authorization code PKCE S256/state/nonce, password callback, subject/cookie/protected Account API/page, anonymous/tampered-callback failures and local logout. `always()` cleanup verified original backend/bootstrap/secret volumes, network and labeled containers removed. `forwarder.py` unchanged and Python fallback not needed. **Only isolated development-origin E2E is accepted**; production TLS, custom imported Login V2 wiring, MFA/passkeys, Admin Console human flow, multi-app SSO and deployment are separate. Official ZITADEL API created disposable project/client/verified test human, isolated secrets in run-owned volumes; original Login V2 + Chromium + Auth.js completed real authorization code PKCE S256/state/nonce, password callback, subject/cookie/protected Account API/page, anonymous/tampered-callback failures and local logout. `always()` cleanup verified original backend/bootstrap/secret volumes, network and labeled containers removed. `forwarder.py` unchanged and Python fallback not needed. **Only isolated development-origin E2E is accepted**; production TLS, custom imported Login V2 wiring, MFA/passkeys, Admin Console human flow, multi-app SSO and deployment are separate.
## P05-OIDC-05 production-context audit boundary
Run #96 verified the **official prebuilt** `ghcr.io/zitadel/zitadel-login:v4.20.4` with real disposable OIDC, not the imported `auth/ui/v2/apps/login` custom image. Run #89 separately verified frozen custom source build/unit/security, not its runtime. Existing dev Compose still routes Login V2 to the original image; production HTTPS and custom image wiring are BLOCKED. Account `src/auth.ts` implements PKCE/state/nonce and expiry/subject protection, while `src/lib/env.ts` requires HTTPS origins in production; no TLS ingress, trusted-header policy, production-cookie validation, federated logout/refresh or multi-app SSO is thereby provided. Full matrix: `notes/P05-OIDC-05.md`.
+4
View File
@@ -93,3 +93,7 @@ CI only: official ZITADEL v4.20.4, official Login V2 v4.20.4, PostgreSQL 17.10/T
**P05-OIDC-03 CI dependency:** Keep existing pinned `alpine/socat:1.8.1.3` for a single startup/error-class observation. If not healthy, use the already-existing official `python:3.12-alpine` CI image resolved to an immutable registry SHA256 digest, running only the tracked stdlib-only `forwarder.py` (no `pip`, `apk`, extra package manifest or lockfile update). Both run solely inside the disposable proxy network namespace, bind no host port, hold no auth data and are removed by existing always-run ownership cleanup. Source preparation is not successful login proof. **P05-OIDC-03 CI dependency:** Keep existing pinned `alpine/socat:1.8.1.3` for a single startup/error-class observation. If not healthy, use the already-existing official `python:3.12-alpine` CI image resolved to an immutable registry SHA256 digest, running only the tracked stdlib-only `forwarder.py` (no `pip`, `apk`, extra package manifest or lockfile update). Both run solely inside the disposable proxy network namespace, bind no host port, hold no auth data and are removed by existing always-run ownership cleanup. Source preparation is not successful login proof.
## P05-OIDC-05 production readiness gaps
`deployment/docker/compose.backend.dev.yaml` is the **only** tracked backend Compose: localhost HTTP external issuer, insecure forwarded proto, dev-only volumes, fixed internal networking and official prebuilt Login. Auth.js origin validation in `users/ui/src/lib/env.ts` does not deploy TLS or sanitize Host/forwarded headers. No production Coolify/Compose, Account runtime container image, custom Login image acceptance, dedicated production secret rotation/master-key escrow, SMTP, backups/restore, certificate renewal, release/rollback/monitoring definitions were found in the tracked tree. No external production system was inspected. Official production guidance: https://zitadel.com/docs/self-hosting/manage/production and https://zitadel.com/docs/self-hosting/manage/reverseproxy/reverse_proxy .
+9 -5
View File
@@ -2,7 +2,7 @@
**Snapshot:** 2026-11-23, P05-OIDC-04-A01 terminal Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96), job #210, immutable tested source `670e225db477f180ff14ffa62e6654860a166f17`: **SUCCESS**, private 8080 socket owner Traefik PID1, real disposable Chromium/Login V2/Auth.js authenticated Account session/negative/logout **PASS**, exact run-owned cleanup **PASS**. Production HTTPS/MFA/custom Login integration NOT VERIFIED. Documentation-only closure SHA is not the CI-tested source. **Snapshot:** 2026-11-23, P05-OIDC-04-A01 terminal Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96), job #210, immutable tested source `670e225db477f180ff14ffa62e6654860a166f17`: **SUCCESS**, private 8080 socket owner Traefik PID1, real disposable Chromium/Login V2/Auth.js authenticated Account session/negative/logout **PASS**, exact run-owned cleanup **PASS**. Production HTTPS/MFA/custom Login integration NOT VERIFIED. Documentation-only closure SHA is not the CI-tested source.
**Git-tracked paths: 759.** Untracked `AI_INSTRUCTIONS.md` and local secrets excluded. **Git-tracked paths: 761.** Untracked `AI_INSTRUCTIONS.md` and local secrets excluded.
This list reflects actual tracked Git files, not proof of authenticated OIDC. See `notes/P05-OIDC-03.md` and `project/OIDC-E2E-ARCHITECTURE.md`. This list reflects actual tracked Git files, not proof of authenticated OIDC. See `notes/P05-OIDC-03.md` and `project/OIDC-E2E-ARCHITECTURE.md`.
@@ -13,8 +13,8 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
| `auth` | 639 | Pinned official Login V2 source, unmodified | | `auth` | 639 | Pinned official Login V2 source, unmodified |
| `core` | 2 | Backend dev helper, unmodified | | `core` | 2 | Backend dev helper, unmodified |
| `deployment` | 2 | P02 dev Compose, unmodified | | `deployment` | 2 | P02 dev Compose, unmodified |
| `docs` | 25 | User and operator docs | | `docs` | 26 | User and operator docs |
| `notes` | 17 | Phase plans and CI evidence | | `notes` | 18 | Phase plans and CI evidence |
| `packages` | 1 | Repository root | | `packages` | 1 | Repository root |
| `project` | 12 | Source, functions and architecture inventory | | `project` | 12 | Source, functions and architecture inventory |
| `scripts` | 1 | Repository root | | `scripts` | 1 | Repository root |
@@ -695,7 +695,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
- `deployment/README.md` - `deployment/README.md`
- `deployment/docker/compose.backend.dev.yaml` - `deployment/docker/compose.backend.dev.yaml`
### docs ? 25 files ### docs ? 26 files
- `docs/ARCHITECTURE.md` - `docs/ARCHITECTURE.md`
- `docs/DEVELOPMENT.md` - `docs/DEVELOPMENT.md`
@@ -714,6 +714,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
- `docs/P05-OIDC-03-A02.md` - `docs/P05-OIDC-03-A02.md`
- `docs/P05-OIDC-04.md` - `docs/P05-OIDC-04.md`
- `docs/P05-OIDC-04-A01.md` - `docs/P05-OIDC-04-A01.md`
- `docs/P05-OIDC-05.md`
- `docs/P05-SEC-01.md` - `docs/P05-SEC-01.md`
- `docs/P05-SEC-02-A01.md` - `docs/P05-SEC-02-A01.md`
- `docs/P05-SEC-02.md` - `docs/P05-SEC-02.md`
@@ -723,7 +724,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
- `docs/TROUBLESHOOTING.md` - `docs/TROUBLESHOOTING.md`
- `docs/USER-GUIDE.md` - `docs/USER-GUIDE.md`
### notes ? 17 files ### notes ? 18 files
- `notes/CHANGELOG.md` - `notes/CHANGELOG.md`
- `notes/DOCS-01.md` - `notes/DOCS-01.md`
@@ -738,6 +739,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
- `notes/P05-OIDC-03-A02.md` - `notes/P05-OIDC-03-A02.md`
- `notes/P05-OIDC-04.md` - `notes/P05-OIDC-04.md`
- `notes/P05-OIDC-04-A01.md` - `notes/P05-OIDC-04-A01.md`
- `notes/P05-OIDC-05.md`
- `notes/P05-SEC-01.md` - `notes/P05-SEC-01.md`
- `notes/P05-SEC-02-A01.md` - `notes/P05-SEC-02-A01.md`
- `notes/P05-SEC-02.md` - `notes/P05-SEC-02.md`
@@ -821,3 +823,5 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
**P05-OIDC-04 inventory update (2026-11-23):** From the prior snapshot, one tracked `notes/P05-OIDC-04.md` and one tracked `docs/P05-OIDC-04.md` were added (755 → 757), with only two existing CI source files modified. Source `79dac4f5bb76e1cee4dfaf61657c6e84268b3dfb` was the one tested in Gitea Run #95, which FAILED before socket inspector/forwarder. The final docs commit is not a newly tested source. Excluded/untracked root `AI_INSTRUCTIONS.md` remains untouched. **P05-OIDC-04 inventory update (2026-11-23):** From the prior snapshot, one tracked `notes/P05-OIDC-04.md` and one tracked `docs/P05-OIDC-04.md` were added (755 → 757), with only two existing CI source files modified. Source `79dac4f5bb76e1cee4dfaf61657c6e84268b3dfb` was the one tested in Gitea Run #95, which FAILED before socket inspector/forwarder. The final docs commit is not a newly tested source. Excluded/untracked root `AI_INSTRUCTIONS.md` remains untouched.
**A01 inventory verification note:** At tested source `670e225db477f180ff14ffa62e6654860a166f17`, Gitea recursive tree had 758 tracked blobs (one A01 pre-source note added to prior 757). The subsequent documentation-only addition `docs/P05-OIDC-04-A01.md` makes **759 tracked blobs**; all other A01 changes were modifications to existing allowed source/docs. No untracked root `AI_INSTRUCTIONS.md` touched or represented as Git-tracked. **A01 inventory verification note:** At tested source `670e225db477f180ff14ffa62e6654860a166f17`, Gitea recursive tree had 758 tracked blobs (one A01 pre-source note added to prior 757). The subsequent documentation-only addition `docs/P05-OIDC-04-A01.md` makes **759 tracked blobs**; all other A01 changes were modifications to existing allowed source/docs. No untracked root `AI_INSTRUCTIONS.md` touched or represented as Git-tracked.
**P05-OIDC-05 snapshot:** 759 baseline tracked paths plus scoped `notes/P05-OIDC-05.md` (committed first) and operator `docs/P05-OIDC-05.md` (this docs closure) = **761 tracked files**. All other edits are allowed documentation. No application source, tests, workflows, manifests/locks, deployment, runner or production modified. Untracked `AI_INSTRUCTIONS.md` excluded and untouched. Run #96 CI tested SHA `670e225db477f180ff14ffa62e6654860a166f17` is NOT this docs SHA.