# 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.