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

+45
View File
@@ -28,3 +28,48 @@ The direct pre-forwarder probe in `run.sh` currently executes `python:3.12-alpin
5. Final documentation-only update in `notes/**`, `project/**`, `docs/**` and manifests/navigation, a focused git diff/safety/inventory audit, documentation commit and exact remote main SHA verification. No second run even if the first fails. Supply next narrow exact scope and copyable approval text based on actual evidence.
**Initial A01 acceptance:** NOT EXECUTED. Real authenticated OIDC remains BLOCKED pending the one new real terminal Gitea result.
## Run #96 / Job #210 — VERIFIED terminal acceptance (A01)
**Source preparation:** Scope Lock first committed as `53b258d57146fe70745faa1879b3ab44aa57b4d7`; exactly one source file, `tests/ci/oidc_e2e/run.sh`, changed in tested source commit `670e225db477f180ff14ffa62e6654860a166f17`. The focused diff introduced allowlisted direct private socket/HTTP classification and **at most 3 attempts only after recognized transient socket failures**; unchanged exact `Host: localhost:8080`, isolated ports/network, issuer, original Auth.js/Login V2 and owned-only cleanup. The retry and negative error-class branches **were not exercised** because the first private proxy probe PASSED. No source, workflow or runner re-edits after dispatch.
**Single authorized Gitea run:** [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) / **Job #210**; event `workflow_dispatch`, source SHA `670e225db477f180ff14ffa62e6654860a166f17` on `main`. Started **2026-11-22T20:13:22Z**; completed **2026-11-22T20:17:40Z**. Both Gitea run and job `completed / success`; every job step (#0 Git, #1 checkout, #2 disposable OIDC acceptance, #3 `always()` cleanup) `success`.
| Required CI gate | Actual status / exact log marker |
| --- | --- |
| Runner pickup, Git installation, exact source checkout | **PASS** — Job #210, SHA `670e225db477f180ff14ffa62e6654860a166f17` |
| Docker/Compose preflight | **PASS** — `ZITPLANE_OIDC_DOCKER_PREFLIGHT_PASS` |
| Portless Compose + run-owned IAM_OWNER config | **PASS** — `ZITPLANE_OIDC_NO_PUBLISHED_PORT_AND_OWNER_CONFIG_PASS` |
| Four healthy official backend services | **PASS** — `ZITPLANE_OIDC_FOUR_SERVICES_READY_PASS` |
| Direct private Traefik:80 HTTP 200 with exact Host | **PASS** — `ZITPLANE_OIDC_PRIVATE_PROXY_HOST_ROUTE_PASS` |
| Proxy netns port-8080 socket/PID attribution *before* forwarder | **PASS** — `OIDC_CI_PROXY_PORT8080_LISTENER=TCP6 INODE=6286327 PID=1 COMM=traefik`; `ZITPLANE_OIDC_PROXY_PREBIND_SOCKET_FORENSICS_PASS` |
| Socat immutable image digest | **PASS** — `ZITPLANE_OIDC_PINNED_FORWARDER_DIGEST_VERIFIED_PASS` |
| Separate private Socat forwarder and exact Host forwarded HTTP 200 | **PASS** — `ZITPLANE_OIDC_SOCAT_FORWARDER_READY_PASS`; `ZITPLANE_OIDC_PRIVATE_LOOPBACK_FORWARDER_READY_PASS` |
| Python forwarder fallback | **NOT EXECUTED / NOT REQUIRED** — socat ready; no fallback |
| Private issuer and discovery | **PASS** — `ZITPLANE_OIDC_LOCAL_ORIGIN_READY_PASS`, `ZITPLANE_OIDC_ISSUER_DISCOVERY_PASS` |
| Official disposable ZITADEL project | **PASS** — `ZITPLANE_OIDC_PROJECT_CREATED_PASS` |
| Official real OIDC client/app creation | **PASS** — `ZITPLANE_OIDC_REAL_CLIENT_CREATED_PASS` |
| Disposable verified test human | **PASS** — `ZITPLANE_OIDC_REAL_TEST_HUMAN_CREATED_PASS` |
| Test-credential isolation and provisioning | **PASS** — `ZITPLANE_OIDC_TEST_CREDENTIALS_ISOLATED_PASS`, `ZITPLANE_OIDC_DISPOSABLE_PROVISIONING_PASS` |
| Disposable Account portal dependencies + server readiness | **PASS** — `ZITPLANE_OIDC_DISPOSABLE_ACCOUNT_DEPENDENCIES_READY_PASS`, `ZITPLANE_OIDC_DISPOSABLE_ACCOUNT_HTTP_READY_PASS` |
| Anonymous API/protected-page rejection | **PASS** — `ZITPLANE_OIDC_ANONYMOUS_API_AND_PAGE_REJECTED_PASS` |
| Tampered/invalid callback rejection | **PASS** — `ZITPLANE_OIDC_INVALID_CALLBACK_FAIL_CLOSED_PASS` |
| Real Chromium authorization code, PKCE S256, state, nonce | **PASS** — `ZITPLANE_OIDC_REAL_AUTHORIZE_PKCE_STATE_NONCE_PASS` |
| Original Login V2 username/password, real code/Auth.js callback | **PASS** — `ZITPLANE_OIDC_REAL_PASSWORD_AND_CALLBACK_PASS` |
| Authenticated subject/session, HttpOnly cookie, protected API/page | **PASS** — `ZITPLANE_OIDC_REAL_SESSION_PROTECTED_PAGE_AND_API_PASS` |
| Portal-local logout and API session revocation | **PASS** — `ZITPLANE_OIDC_PORTAL_LOGOUT_SESSION_REVOKED_PASS` |
| Real browser run completion | **PASS** — `ZITPLANE_OIDC_REAL_BROWSER_COMPLETE_PASS`, `ZITPLANE_OIDC_REAL_BROWSER_ACCEPTANCE_PASS` |
| Mandatory run-owned database/bootstrap/secrets/containers/volumes/network cleanup | **PASS** — `ZITPLANE_BACKEND_CLEANUP_VERIFIED_PASS`, `ZITPLANE_OIDC_ALL_RESOURCES_CLEANED_PASS` |
| Overall isolated real authenticated OIDC E2E | **PASS** — Gitea Run #96 / Job #210 terminal SUCCESS |
### Evidence-grounded root cause and safety boundary
The actual pre-bind TCP6 LISTEN socket belonged to **`traefik` PID 1**, inode `6286327`, inside the disposable proxy namespace. This directly explains why attempts to bind private `8080` in that **same** namespace were conflicting in earlier runs; the separately isolated forwarder namespace is now verified with a real successful issuer and browser flow. The *precise Traefik feature/configuration responsible for exposing 8080* was not independently attributed and must not be guessed. Source-only classifications for refused/timeout/etc were NOT runtime exercised because the first readiness attempt passed; this is not a separate diagnostic-class negative-test PASS.
All IAM_OWNER PAT, client secret, generated password and test-human state belonged **only to disposable CI volumes and backend**, not to a real human or production environment. Run #96 cleanup markers confirm owned resources removed. No public host ports, auth bypass, original backend/Login/Auth.js edits, local application builds/tests, production deployment, tags, releases, reruns or duplicate CI dispatch.
### A01 close-out and proposed next Scope Lock
**P05-OIDC-04-A01 isolated real browser OIDC acceptance: COMPLETE / PASS.** Documentation-only closure commit is **not** a new tested source SHA. Production HTTPS, custom imported Login V2 source integration, full Admin Console interactive login, MFA/passkeys, multi-app SSO, production storage/deployment and real-user operation remain **outside this acceptance** and **NOT VERIFIED**.
**Next proposal, pending new approval: `P05-OIDC-05` — Production-Context Integration Readiness Forensic Audit (read-only):** baseline = final A01 documentation SHA; WRITE only `notes/P05-OIDC-05.md`, relevant `project/**`, `docs/**`, associated README/MINIFEST if required. READ-ONLY all `tests/**`, `.gitea/workflows/**`, `core/**`, `deployment/**`, `auth/**`, `users/**`, package manifests/locks, runners, secrets and production infra. Inspect current documented source configuration, original-vs-imported Login V2 wiring, HTTPS/OIDC callback and domain/security policy, MFA/passkey and SSO coverage; distinguish verified disposable CI from untested production. Deliver a prioritized minimal separate future phase Scope Lock; **no source edit, new CI, login to real accounts, local build, deployment, tag or release** without another approval.