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
@@ -23,6 +23,8 @@ This is the **developer-focused implementation history**. `notes/CHANGELOG.md` i
| 2026-11-23 | P05-OIDC-04 | Scope-locked private socket forensics and isolated run-owned forwarder network, no original backend/Login/Account edits | Source `79dac4f5bb76e1cee4dfaf61657c6e84268b3dfb`; Run #95 failure before inspector due direct private proxy socket/HTTP, four healthy services, owned cleanup PASS; real OIDC blocked. `notes/P05-OIDC-04.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` |
## 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.
+4
View File
@@ -164,3 +164,7 @@ Historical Run #91 used this workflow and reached a terminal job, but that only
## P05-OIDC-04 — one-run CI evidence (not authenticated OIDC acceptance)
Manual Gitea [Run #95](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/95) job #209 checked out exact source `79dac4f5bb76e1cee4dfaf61657c6e84268b3dfb`: Docker/portless Compose PASS, 4/4 backend services healthy PASS, private Traefik Host/socket probe FAIL (`OIDC_CI_PRIVATE_PROXY_SOCKET_OR_HTTP_BLOCKED`), listener forensics and isolated forwarder NOT EXECUTED, official OIDC project/client/human/browser/Auth.js/negative/logout NOT EXECUTED, always-owned cleanup PASS. This is a new narrower/earlier blocker, not verification or regression of the authentication implementation. See `notes/P05-OIDC-04.md` and `docs/P05-OIDC-04.md`. No new workflow, auto trigger, runner change or repeated CI.
## 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.
+2
View File
@@ -174,3 +174,5 @@ 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-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`.
+2
View File
@@ -139,3 +139,5 @@ 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-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.
+6
View File
@@ -84,3 +84,9 @@ The original Run #93 `7b80f41`, job #206, did start after the A01 queued snapsho
The source `79dac4f5bb76e1cee4dfaf61657c6e84268b3dfb` adds a pre-bind proxy PID/netns `/proc/net/tcp{,6}` listener-inode inspection, maps to `/proc/*/fd` and sanitized comm, and changes only run-owned socat/Python forwarder networking from `container:$proxy_id` to the existing disposable Compose network, forwarding to private `proxy:80`. One-off provisioning/Chromium containers join `container:$forwarder`, so issuer remains `http://localhost:8080` without publishing host ports. Auth.js, original Login V2, negative cases, credentials and owned cleanup contracts remain untouched.
In the ONLY new Run #95, the original 4 services were healthy but the **earlier** direct Traefik:80 readiness probe emitted `OIDC_CI_PRIVATE_PROXY_SOCKET_OR_HTTP_BLOCKED`. Thus the new socket diagnostic, forwarder and real OIDC pipeline **were not executed**; actual listener owner remains UNKNOWN. Mandatory cleanup PASS. Next minimal separately approved diagnostic must classify the direct private Host/socket failure before further forwarder remediation; see `notes/P05-OIDC-04.md`.
## P05-OIDC-04-A01 — verified real user E2E in disposable CI (SUCCESS)
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.
+10 -6
View File
@@ -1,8 +1,8 @@
# ZitPlane ? exact tracked source inventory
**Snapshot:** 2026-11-23, P05-OIDC-03-A02 terminal Gitea Run #93 job #206 at tested source `7b80f411b2981e2274d171c12596301ed757b768`: job STARTED/COMPLETED FAILURE; backend/private proxy PASS, socat SOCKET_BIND_ERROR and Python ADDRESS_IN_USE on 127.0.0.1:8080, real OIDC NOT EXECUTED, exact owned cleanup PASS. Actual listener owner UNKNOWN. Final docs-only commit is not a new 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: 757.** Untracked `AI_INSTRUCTIONS.md` and local secrets excluded.
**Git-tracked paths: 759.** 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`.
@@ -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 |
| `core` | 2 | Backend dev helper, unmodified |
| `deployment` | 2 | P02 dev Compose, unmodified |
| `docs` | 24 | User and operator docs |
| `notes` | 16 | Phase plans and CI evidence |
| `docs` | 25 | User and operator docs |
| `notes` | 17 | Phase plans and CI evidence |
| `packages` | 1 | Repository root |
| `project` | 12 | Source, functions and architecture inventory |
| `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/docker/compose.backend.dev.yaml`
### docs ? 24 files
### docs ? 25 files
- `docs/ARCHITECTURE.md`
- `docs/DEVELOPMENT.md`
@@ -713,6 +713,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
- `docs/P05-OIDC-03-A01.md`
- `docs/P05-OIDC-03-A02.md`
- `docs/P05-OIDC-04.md`
- `docs/P05-OIDC-04-A01.md`
- `docs/P05-SEC-01.md`
- `docs/P05-SEC-02-A01.md`
- `docs/P05-SEC-02.md`
@@ -722,7 +723,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
- `docs/TROUBLESHOOTING.md`
- `docs/USER-GUIDE.md`
### notes ? 16 files
### notes ? 17 files
- `notes/CHANGELOG.md`
- `notes/DOCS-01.md`
@@ -736,6 +737,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
- `notes/P05-OIDC-03-A01.md`
- `notes/P05-OIDC-03-A02.md`
- `notes/P05-OIDC-04.md`
- `notes/P05-OIDC-04-A01.md`
- `notes/P05-SEC-01.md`
- `notes/P05-SEC-02-A01.md`
- `notes/P05-SEC-02.md`
@@ -817,3 +819,5 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
- `users/ui/tsconfig.json`
**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.