docs(ci): close OIDC run 93 terminal bind RCA and safe cleanup

This commit is contained in:
Vib Tools committed 2026-11-22 10:43:45 -08:00
1 parent 88911c5d68
commit 89bc3f21af
17 files changed
+143 -12

No files matched your search

+2 -1
View File
@@ -18,7 +18,8 @@ This is the **developer-focused implementation history**. `notes/CHANGELOG.md` i
| 2026-11-22 | P05-OIDC-01 | Added manual disposable IAM_OWNER/client/human/browser OIDC acceptance harness, secret isolation and cleanup | Run #90 FAIL before provisioning: private loopback forwarder unready; 4 backend services healthy, owned cleanup PASS. `notes/P05-OIDC-01.md` |
| 2026-11-22 | P05-OIDC-02 | CI-only prebuilt socat digest startup, private proxy/Host/readiness/exit checks and status-only provisioner | **Run #91 FAILED**: 4 services + private proxy PASS, sidecar exit code 1; no real user/browser test; cleanup PASS. `notes/P05-OIDC-02.md` |
| 2026-11-23 | P05-OIDC-03 | Allowlisted socat startup diagnostics and strictly private digest-pinned official Python stdlib fallback | Source `7b80f41` on Gitea; Run #93 QUEUED, no CI steps or terminal result. `notes/P05-OIDC-03.md` |
| 2026-11-23 | P05-OIDC-03-A01 | Read-only investigation of active manual workflow and Run #93 Job #206 scheduling, no source change | Queued / no steps; Gitea log 404 job not started; current runner availability cannot be established. `notes/P05-OIDC-03-A01.md` |
| 2026-11-23 | P05-OIDC-03-A01 | Historical read-only Run #93 queue snapshot before runner pickup, no source edit | Queued then; **superseded by A02 terminal result**. `notes/P05-OIDC-03-A01.md` |
| 2026-11-23 | P05-OIDC-03-A02 | Read-only terminal Run #93 job #206 scheduling completion, private socket collision and verified cleanup | Run FAILURE; socat bind error, Python EADDRINUSE, no authenticated flow; cleanup PASS. `notes/P05-OIDC-03-A02.md` |
## Required entry for each future change
+5
View File
@@ -155,3 +155,8 @@ New source in `tests/ci/oidc_e2e/run.sh`: test namespace-local Traefik proxy Hos
The existing `p05-oidc-acceptance.yml` manual workflow is **active** and declares one `runs-on: ubuntu-latest` job. Run #93 requested on 2026-11-22T18:08:45Z at tested SHA `7b80f411b2981e2274d171c12596301ed757b768` is still **queued** at the A01 read-only inspection. Job #206 is also `queued` with no actual start/completion times or steps; Gitea returned HTTP 404 `job not started` for its log. This is a **scheduling/queue dependency, not a proved technical error** in the new socat diagnostic, Python TCP fallback, IAM_OWNER API or browser/PKCE/session checks. **No Run #93 authentication or cleanup gates executed.**
Historical Run #91 used this workflow and reached a terminal job, but that only proves prior runner availability. The connected Gitea read tools contain no online runner/registration/label-capacity read endpoint; current `ubuntu-latest` runner availability is therefore **unknown**, and offline/mismatched/saturated runner or scheduler failure cannot be distinguished. No runner config, workflow, source, credentials or live system touched; no second dispatch. Full read-only ledger: `notes/P05-OIDC-03-A01.md`. Operator guide: `docs/P05-OIDC-03-A01.md`.
## P05-OIDC-03-A02 — terminal existing Run #93 (supersedes queued snapshot)
[Run #93](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/93) tested `7b80f411b2981e2274d171c12596301ed757b768`, job #206 **started 2026-11-22T18:36:26Z and completed 18:37:47Z with FAILURE**. The manual workflow/runner job was scheduled and checkout/Docker executed; current runner availability outside this historical run cannot be established through available Gitea read actions. Four-service backend startup, no published host ports, exact private Traefik Host routing and pinned/digest image metadata passed. Socat exited 1 with `SOCKET_BIND_ERROR`, Python stdlib fallback image/digest/start attempt passed but its private IPv4 listener exited 1 with `ADDRESS_IN_USE`. **Exact process holding namespace-local TCP port 8080 was not identified**; the source Compose Traefik service is configured to listen on :80, while ZITADEL API listens in its own container namespace on :8080, so neither is proved to own the collided private socket. No official client/user provisioning, original Chromium Login V2 authorization, PKCE/state/nonce/Auth.js callback, protected Account session, negative auth or logout tests executed. Mandatory exact run-owned cleanup **PASS** on both expected markers. No workflow rerun/source change under A02. Full evidence: `notes/P05-OIDC-03-A02.md`, `docs/P05-OIDC-03-A02.md`.
+5
View File
@@ -73,3 +73,8 @@ Run #91 established an isolated private Traefik:80/Host HTTP 200 and a socat sid
`tests/ci/oidc_e2e/forwarder.py` uses Python stdlib `asyncio.start_server`, binds only IPv4 `127.0.0.1:8080`, proxies to namespace-local `127.0.0.1:80`, relays opaque bounded byte chunks and emits only fixed safe startup/relay status markers. No HTTP inspection, cookie extraction, IdP simulation or login bypass. Original provisioning APIs, Account Portal Auth.js, Chromium tests and owner-labeled `cleanup.sh` unchanged.
**Only terminal Gitea evidence can confirm** socat failure class and Python fallback compatibility, full real ZITADEL client/user creation, original Login V2 browser callback/subject, negative authorization and teardown. Production TLS/MFA still separate.
## P05-OIDC-03-A02 — verified private port-8080 startup collision, no authenticated session
The original Run #93 `7b80f41`, job #206, did start after the A01 queued snapshot; overall **FAILURE**. Its source-approved socat and optional Python forwarder each failed binding private **127.0.0.1:8080**: socat diagnostic `SOCKET_BIND_ERROR`, Python diagnostic `ADDRESS_IN_USE`. The private Traefik:80 Host route and four ZITADEL/backend services were healthy; the image/digest/optional fallback startup commands themselves were invoked. The precise listener process holding port 8080 has **not** been identified with a namespace-local socket/process audit, and no source auth defect was exercised. Client/user provisioning and all genuine Chromium/PKCE/Auth.js/session tests **NOT EXECUTED**. The always-run exact-owned cleanup verified removal of its ephemeral credentials, data, volumes and network. Future separately approved CI-only phase should inspect the actual private listener/inode and avoid port collision without exposing ports or changing the original P02 developer Compose, Login V2 or Account Auth.js.
+8 -6
View File
@@ -1,8 +1,8 @@
# ZitPlane ? exact tracked source inventory
**Snapshot:** 2026-11-23, P05-OIDC-03-A01 read-only Run #93/job #206 queue audit on test candidate SHA `7b80f411b2981e2274d171c12596301ed757b768`. Workflow ACTIVE, runner label `ubuntu-latest`; run QUEUED, job NOT STARTED, no terminal result or cleanup. Runner online/capacity UNKNOWN; authentication NOT VERIFIED. Final documentation-only commit does not alter tested CI source.
**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.
**Git-tracked paths: 753.** Untracked `AI_INSTRUCTIONS.md` and local secrets excluded.
**Git-tracked paths: 755.** 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` | 22 | User and operator docs |
| `notes` | 14 | Phase plans and CI evidence |
| `docs` | 23 | User and operator docs |
| `notes` | 15 | 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 ? 22 files
### docs ? 23 files
- `docs/ARCHITECTURE.md`
- `docs/DEVELOPMENT.md`
@@ -711,6 +711,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
- `docs/P05-OIDC-02.md`
- `docs/P05-OIDC-03.md`
- `docs/P05-OIDC-03-A01.md`
- `docs/P05-OIDC-03-A02.md`
- `docs/P05-SEC-01.md`
- `docs/P05-SEC-02-A01.md`
- `docs/P05-SEC-02.md`
@@ -720,7 +721,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
- `docs/TROUBLESHOOTING.md`
- `docs/USER-GUIDE.md`
### notes ? 14 files
### notes ? 15 files
- `notes/CHANGELOG.md`
- `notes/DOCS-01.md`
@@ -732,6 +733,7 @@ This list reflects actual tracked Git files, not proof of authenticated OIDC. Se
- `notes/P05-OIDC-02.md`
- `notes/P05-OIDC-03.md`
- `notes/P05-OIDC-03-A01.md`
- `notes/P05-OIDC-03-A02.md`
- `notes/P05-SEC-01.md`
- `notes/P05-SEC-02-A01.md`
- `notes/P05-SEC-02.md`