docs(oidc): accept Run 96 real browser Login V2 Auth.js and owned cleanup

This commit is contained in:
victorsteele428 committed 2026-11-22 20:19:36 +00:00
1 parent 670e225db4
commit b3841d8c05
17 files changed
+125 -7

No files matched your search

+2
View File
@@ -53,3 +53,5 @@ Future feature additions need an evidence-backed status update here, an exact de
**P05-OIDC-03-A02 terminal update:** Gitea [Run #93](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/93) **COMPLETED FAILURE** (job #206 executed) after prior queued status. Four healthy services, portless networking, private Traefik Host route PASS. Socat `SOCKET_BIND_ERROR` and Python fallback `ADDRESS_IN_USE` on private `127.0.0.1:8080` **BLOCKED** further steps; actual listener not identified. Real client/user creation, Chromium Login V2, Auth.js callback/session, negative access and logout **NOT EXECUTED**. Mandatory owned-only cleanup **PASS**. Full authenticated OIDC and production/MFA remain UNVERIFIED.
**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).
+1
View File
@@ -18,6 +18,7 @@ Every file listed below is a direct child of `docs/`. Add/remove rows whenever t
| [P05-OIDC-03.md](P05-OIDC-03.md) | Same-run socat classification, private Python fallback and exact Gitea status | P05-OIDC-03 / Run #93 QUEUED, no terminal result |
| [P05-OIDC-03-A01.md](P05-OIDC-03-A01.md) | Historical queue snapshot before Run #93 started; see A02 for terminal state | P05-OIDC-03-A01 / superseded status |
| [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 |
| [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 |
+34
View File
@@ -0,0 +1,34 @@
# P05-OIDC-04-A01 — Real ZITADEL Browser OIDC Acceptance (Gitea Run #96)
**Approved baseline:** `443dfcf5d1ecb6f6f5c04cada32aafa17d7d823e`
**Verified source:** `670e225db477f180ff14ffa62e6654860a166f17` (exact CI tested SHA, not the later documentation commit).
**Gitea result:** [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96), Job #210, **COMPLETED SUCCESS**, on 2026-11-22 20:17:40 UTC.
## What this verifies
A **temporary, isolated Gitea environment** booted four healthy official ZITADEL/Traefik/PostgreSQL/Login V2 services without host-published ports, created a disposable ZITADEL project and real OIDC client/test human using official APIs, then used **real Chromium** to authenticate through original Login V2. The browser verified OIDC authorization code with PKCE S256/state/nonce, genuine Auth.js callback, matching authenticated subject and protected Account API/page, anonymous/invalid-callback rejection and local sign-out. Both mandatory cleanup verification markers succeeded, so disposable resources and credentials were destroyed.
The proxy namespace's port-8080 listener was actually identified as **Traefik PID 1 (TCP6)**. The CI-only dedicated private forwarding namespace avoided that collision. The direct Traefik readiness HTTP 200 and forwarded issuer readiness both PASSED.
| Gate | Run #96 |
| --- | --- |
| Git checkout, Docker preflight, portless owned Compose and 4 healthy backend services | **PASS** |
| Direct private Host-route HTTP readiness, listener identity and Socat forwarder | **PASS** |
| Forwarded HTTP 200 and matching issuer/OIDC discovery | **PASS** |
| Official disposable project, OIDC client and verified test human | **PASS** |
| Real Chromium authorization code / S256 PKCE / state / nonce | **PASS** |
| Original Login V2 password, real Auth.js callback | **PASS** |
| Authenticated Account identity/session/HttpOnly cookie/protected page and API | **PASS** |
| Anonymous and tampered callback rejection | **PASS** |
| Local portal logout and session invalidation | **PASS** |
| Always-run run-owned credential/database/container/network cleanup | **PASS** |
| Optional Python fallback (not needed after Socat succeeded) | **NOT EXECUTED** |
| Private readiness transient-error retry branch (first attempt succeeded) | **NOT EXECUTED** |
## What it does NOT mean
This is **development-origin disposable CI authentication acceptance**, not a live production website or production-grade identity-provider deployment. Custom imported Login V2 source is not thereby proved wired in place of the original official prebuilt Login V2 image. Production HTTPS, real domains, MFA, passkeys, Admin Console interactive flows, multi-app SSO, live user data and production deployment were **not tested**. Nothing here authorizes a production rollout.
## Next recommended phase
`P05-OIDC-05` should be a **read-only production-context integration readiness forensic audit** identifying the exact remaining requirements and separately approving any future implementation. Do not repeat Run #96 or manually create real users. The detailed chronological gate ledger, confirmed Traefik socket evidence, Scope Lock and source SHA are in [notes/P05-OIDC-04-A01.md](../notes/P05-OIDC-04-A01.md).
+6
View File
@@ -126,3 +126,9 @@ Coolify, HTTPS, secrets, backups, durable storage and focused production readine
- Baseline `89bc3f2`; scoped pre-source note and CI-only source `79dac4f5bb76e1cee4dfaf61657c6e84268b3dfb` in `tests/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](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/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_BLOCKED` **before** 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-A01` strictly 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-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`.
+1 -1
View File
@@ -26,4 +26,4 @@
Full update policy is in root [AGENTS.md](../AGENTS.md). A list of available docs is in [MINIFEST.md](MINIFEST.md).
For the latest **Run #95 private proxy readiness failure** and scoped CI-only forwarder design, see [P05-OIDC-04.md](P05-OIDC-04.md); real OIDC still NOT EXECUTED. For the **terminal Run #93 failure** and verified private port-8080 bind conflict, see [P05-OIDC-03-A02.md](P05-OIDC-03-A02.md). The former [queue audit](P05-OIDC-03-A01.md) is historical: the runner subsequently started job #206. The [P05-OIDC-03 CI implementation](P05-OIDC-03.md) remains unaccepted for real OIDC. Historical Run #91 exit-code blocker and safe cleanup are in [P05-OIDC-02.md](P05-OIDC-02.md). For the previous Run #90 blocker and cleanup see [P05-OIDC-01.md](P05-OIDC-01.md). For Gitea Run #89 final Login frozen build/unit/zero-advisory acceptance see [P05-SEC-02-A01.md](P05-SEC-02-A01.md). For Run #88 historical blocker and corrected helper see [P05-SEC-02.md](P05-SEC-02.md). For Gitea Run #87 findings see [P05-SEC-01.md](P05-SEC-01.md). For backend-only isolated runtime verification see [P05-CI-03.md](P05-CI-03.md); for initial full workflow and its limitations see [P05-CI-01.md](P05-CI-01.md). A green backend discovery smoke is not an authenticated user-login result.
The latest **Run #96 full disposable real browser OIDC SUCCESS**, verified Traefik socket ownership and mandatory teardown are documented in [P05-OIDC-04-A01.md](P05-OIDC-04-A01.md). Production HTTPS/MFA/custom source wiring remain NOT VERIFIED. For the historical **Run #95 private proxy readiness failure** and scoped CI-only forwarder design, see [P05-OIDC-04.md](P05-OIDC-04.md); real OIDC still NOT EXECUTED. For the **terminal Run #93 failure** and verified private port-8080 bind conflict, see [P05-OIDC-03-A02.md](P05-OIDC-03-A02.md). The former [queue audit](P05-OIDC-03-A01.md) is historical: the runner subsequently started job #206. The [P05-OIDC-03 CI implementation](P05-OIDC-03.md) remains unaccepted for real OIDC. Historical Run #91 exit-code blocker and safe cleanup are in [P05-OIDC-02.md](P05-OIDC-02.md). For the previous Run #90 blocker and cleanup see [P05-OIDC-01.md](P05-OIDC-01.md). For Gitea Run #89 final Login frozen build/unit/zero-advisory acceptance see [P05-SEC-02-A01.md](P05-SEC-02-A01.md). For Run #88 historical blocker and corrected helper see [P05-SEC-02.md](P05-SEC-02.md). For Gitea Run #87 findings see [P05-SEC-01.md](P05-SEC-01.md). For backend-only isolated runtime verification see [P05-CI-03.md](P05-CI-03.md); for initial full workflow and its limitations see [P05-CI-01.md](P05-CI-01.md). A green backend discovery smoke is not an authenticated user-login result.
+2
View File
@@ -122,3 +122,5 @@ In Gitea `vibtools/ZitPlane` → Actions → **ZitPlane P05-OIDC-01 Disposable R
**P05-OIDC-03-A02 terminal result:** [Run #93](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/93) **started and FAILED**, so the previous “runner queued” blocker is no longer current. Four-service portless ZITADEL stack and private Traefik routing worked; socat and Python fallback both failed binding private TCP port 8080 (`SOCKET_BIND_ERROR` / `ADDRESS_IN_USE`). Neither official test OIDC client/user nor actual Chromium Login V2/Auth.js session was exercised; mandatory cleanup PASS. No changes to this setup or production. Inspect verified socket ownership only in a **separately approved disposable CI** before selecting a network/port remedy. See `docs/P05-OIDC-03-A02.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).
+4
View File
@@ -83,3 +83,7 @@ Previously queued Run #93 eventually ran: job #206 started and failed after heal
## P05-OIDC-04 — Failed private readiness is not an authentication regression
[Gitea Run #95](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/95) passed isolated Docker startup and four healthy backend services, then the separate no-secret private Traefik `GET /debug/ready` with `Host: localhost:8080` **FAILED** with `OIDC_CI_PRIVATE_PROXY_SOCKET_OR_HTTP_BLOCKED`. This marker does not distinguish refused, timeout or unexpected HTTP response. The planned pre-bind 8080 socket/PID collector and both forwarders did not execute; therefore an earlier `ADDRESS_IN_USE` owner was not determined. Do not blame a service or Auth.js, open a host port, disable OIDC checks or repeat CI without separate approval. Always-run cleanup PASS. Next: P05-OIDC-04-A01, narrowly classify direct private socket/HTTP readiness while redacting all payloads. [Exact evidence](P05-OIDC-04.md).
## 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).