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

+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-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-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-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 |
| [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 |
+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).
- 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`.
## 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.
**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
@@ -13,7 +13,8 @@
5. [DEVELOPMENT.md](DEVELOPMENT.md) — existing developer quick start; includes pending CI/testing warnings.
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.
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
+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-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
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
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).