Files
ZitPlane/notes/P05-OIDC-03-A02.md
T

56 lines
6.7 KiB
Markdown

# P05-OIDC-03-A02 — Runner Availability RCA & Existing Run #93 Terminal Acceptance
**Date:** 2026-11-23 (Asia/Dhaka)
**Approved baseline:** `88911c5d685ed4d068e6361d5e920108c217046f`
**Existing Run:** [Gitea Run #93](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/93), **job #206**; tested (immutable) source SHA `7b80f411b2981e2274d171c12596301ed757b768`.
**Pre-change scope:** This file was written **before A02 documentation modifications**. Only read existing run, job, logs, workflow and authorized runner scheduling evidence; no CI dispatch/rerun/cancellation and no source, workflow, runner or production writes.
## Exact A02 Scope Lock
**Permitted writes:** `notes/**`, `project/**`, relevant `docs/**`, associated README/MINIFEST/root navigation only when necessary. Update historical A01 queued status with new terminal evidence **without rewriting the historical event**. Add this report to source inventory/notes manifest, record exact Gitea acceptance evidence and remaining blocker.
**Strict read-only:** `tests/ci/**`, `.gitea/workflows/**`, original backend/Compose/Login V2/Account Portal/auth, all package manifests and lockfiles, runner configs, secrets, production, unrelated files and root untracked `AI_INSTRUCTIONS.md`. No local app builds/tests/dev servers, no real human, no production deploy, release, tag, or new workflow dispatch.
## Focused read-only audit — actual terminal results
At the A02 read-only inspection, Gitea `get_run(93)` returned **status=`completed`, conclusion=`failure`**, created `2026-11-22T18:08:45Z` and last updated `2026-11-22T18:37:47Z`; original test SHA confirmed exact. `get_job(206)` returned started `2026-11-22T18:36:26Z`, completed `2026-11-22T18:37:47Z`, **failure**. This proves an eligible Gitea runner eventually accepted the job and executed checkout; it does **not** prove the precise earlier queue delay or current runner availability. Workflow remained **active**, requesting `ubuntu-latest`. Connected Gitea tools cannot expose current runner registration/label/capacity data; those are not needed to explain this terminal test's failure, which occurred **after checkout and Docker startup**.
Job step evidence:
- #0 Install Git before checkout: **SUCCESS**
- #1 `actions/checkout@v4`: **SUCCESS**, exact SHA `7b80f411b2981e2274d171c12596301ed757b768`
- #2 Disposable real OIDC acceptance: **FAILURE**
- #3 Mandatory always-run owned Docker cleanup: **SUCCESS**
| Run #93 gate | Actual outcome / exact safe marker |
| --- | --- |
| Runner pickup, checkout, Docker CLI/Compose preflight | **PASS**; `ZITPLANE_OIDC_DOCKER_PREFLIGHT_PASS`; Docker 29.9.3, Compose 5.7.2 |
| Strict no-host-port Compose and ephemeral IAM_OWNER configuration | **PASS**; `ZITPLANE_OIDC_NO_PUBLISHED_PORT_AND_OWNER_CONFIG_PASS` |
| Disposable PostgreSQL, ZITADEL API, original Login V2 and Traefik healthy | **PASS**; `ZITPLANE_OIDC_FOUR_SERVICES_READY_PASS` |
| Private proxy at :80 with exact localhost Host route | **PASS**; `ZITPLANE_OIDC_PRIVATE_PROXY_HOST_ROUTE_PASS` |
| Versioned prebuilt socat image/immutable digest | **PASS**; `ZITPLANE_OIDC_PINNED_FORWARDER_DIGEST_VERIFIED_PASS` |
| Socat process startup and its safe diagnostic | **FAIL**; `OIDC_CI_SOCAT_DIAGNOSTIC_STATE=exited EXIT_CODE=1`; `OIDC_CI_SOCAT_STARTUP_ERROR_CLASS=SOCKET_BIND_ERROR` |
| Official Python 3.12 image digest and same-run fallback container start | **PASS for image validation and invocation ONLY**; `ZITPLANE_OIDC_PYTHON_FORWARDER_IMAGE_DIGEST_VERIFIED_PASS`; `ZITPLANE_OIDC_PYTHON_FORWARDER_FALLBACK_STARTED` |
| Python fallback TCP listener on private 127.0.0.1:8080 | **FAIL**; `OIDC_CI_FORWARDER_NOT_RUNNING_STATE=exited EXIT_CODE=1`; `OIDC_CI_PYTHON_FORWARDER_STARTUP_ADDRESS_IN_USE` |
| Forwarded localhost:8080 HTTP 200, issuer/discovery | **NOT EXECUTED/NOT VERIFIED** (both candidates exited before readiness) |
| Official real disposable OIDC project, app/client and human | **NOT EXECUTED** |
| Real Chromium original Login V2 username/password, auth code + S256 PKCE/state/nonce | **NOT EXECUTED** |
| Genuine Auth.js callback, authenticated subject/session, protected Account API/page | **NOT EXECUTED** |
| Anonymous and tampered callback rejection, portal sign out | **NOT EXECUTED** |
| Always-run owned database/bootstrap/client-secret/container/volume/network cleanup | **PASS**; `ZITPLANE_BACKEND_CLEANUP_VERIFIED_PASS`; `ZITPLANE_OIDC_ALL_RESOURCES_CLEANED_PASS` |
| Overall real-user authenticated OIDC acceptance | **BLOCKED / CI FAILURE**, **not** PASS |
## RCA confidence, root-cause boundary
**Confirmed:** Both independent forwarders tried to bind private IPv4 loopback `127.0.0.1:8080` and exited; the Python stdlib code explicitly categorized its listener failure as `ADDRESS_IN_USE` (EADDRINUSE), and socat's bounded/redacted startup classifier reported `SOCKET_BIND_ERROR`. This strongly identifies a **private network-namespace port-8080 listener collision**. This is **not evidence** of a bad user/password, Auth.js callback or PKCE defect because none executed.
**Not established:** Which exact process owns the private TCP 8080 listener, when it bound, or whether a network/container interaction produced the collision. The original Traefik developer Compose (read-only inspected) configures `--entrypoints.web.address=:80`; ZITADEL API's `ZITADEL_PORT=8080` is in a **different service container/network namespace**, and cannot automatically be blamed. Do not claim that Traefik or ZITADEL is the listener without a run-owned socket/process inspection. No private test data remains after the verified cleanup.
## A02 implementation/verification plan
1. Preserve exact Run #93 terminal status and job markers in `notes/P05-OIDC-03-A02.md`, `docs/P05-OIDC-03-A02.md`, relevant project developer maps, user docs, manifests, changelogs and inventory.
2. Verify all edits are documentation-only, no untracked `AI_INSTRUCTIONS.md`, secrets or unrelated paths; exact inventory/manifests/relative links.
3. Make one documentation-only commit, push Gitea main and verify remote/local SHA and published evidence. **No new CI run.**
4. **Next phase only after fresh approval:** `P05-OIDC-04` run-scoped private port-listener forensics: enumerate 8080 TCP listener inode/address **before forwarder bind** in the disposable namespace, attribute process safely without credentials, then make a justified CI-only network/port fix. Verify private exact issuer/Host HTTP 200, real project/client/user/browser and mandatory cleanup in **one new separately approved CI cycle**. Do not edit original backend/Compose/Login/Auth.js or open public ports.
**Acceptance status:** A02 read-only terminal forensic audit completed; **P05-OIDC-03 real authenticated acceptance BLOCKED by confirmed Python private TCP EADDRINUSE**. No second dispatch/repeated CI in A02. Result-only documentation commit is not a newly tested CI source SHA.