docs(ci): record OIDC run 91 forwarder exit and safe cleanup

This commit is contained in:
Vib Tools committed 2026-11-22 09:52:53 -08:00
1 parent 4831165548
commit 5f542a6aa3
20 files changed
+81 -9

No files matched your search

+3
View File
@@ -36,3 +36,6 @@ Future feature additions need an evidence-backed status update here, an exact de
**P05-OIDC-02 source prepared:** CI-only prebuilt/digest-pinned socat, isolated proxy/Host and forwarded HTTP readiness gates, and strict status-only provisioner readiness have been added after the Run #90 blocker. **Full browser/OIDC acceptance is still UNVERIFIED until one new terminal Gitea CI**. Backend and previous Login build/unit/security PASS are not real authenticated session proof.
**P05-OIDC-02 terminal status:** Gitea Run #91 on `4831165` overall FAILURE: official backend four-service startup, no host ports and exact private Traefik routing **PASS**; pinned socat image/digest **PASS**, but forwarder process **exited code 1**, so all user/client provisioning and real Chromium Auth.js callback/session/negative tests **NOT EXECUTED**. `always()` cleanup **PASS**. Real authenticated OIDC remains BLOCKED; production TLS/MFA not evaluated.
+1 -1
View File
@@ -14,7 +14,7 @@ Every file listed below is a direct child of `docs/`. Add/remove rows whenever t
| [P05-SEC-02.md](P05-SEC-02.md) | Seven scoped PNPM parent overrides, patched lock and manual Login-only security CI evidence | P05-SEC-02 / Run #88 partial: security zero, build unverified |
| [P05-SEC-02-A01.md](P05-SEC-02-A01.md) | Gitea-only Login V2 full frozen-install/build/units/zero-advisory acceptance and status | P05-SEC-02-A01 / Run #89 SUCCESS |
| [P05-OIDC-01.md](P05-OIDC-01.md) | How isolated real OIDC Login V2 browser/session checks work; real CI status/limitations | P05-OIDC-01 / Run #90 BLOCKED before provisioning; cleanup PASS |
| [P05-OIDC-02.md](P05-OIDC-02.md) | CI-only pinned prebuilt forwarder, safe private localhost readiness diagnostics and actual real-OIDC acceptance evidence | P05-OIDC-02 / source prepared, CI pending |
| [P05-OIDC-02.md](P05-OIDC-02.md) | Pinned prebuilt forwarder, safe private HTTP diagnostics and actual Run #91 evidence | P05-OIDC-02 / real OIDC BLOCKED by forwarder exit 1, 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 |
| [TROUBLESHOOTING.md](TROUBLESHOOTING.md) | Known blockers and safe diagnosis based on source status | DOCS-01 / active |
+14 -1
View File
@@ -3,7 +3,7 @@
**Date:** 2026-11-22
**Baseline:** `b78270e9d45c1764c5642024b8147885deaacde3`
**Gitea Run #90:** overall **FAILURE** on `cbcd60e76ec909df4f9c5826adf7a3e2a899c73e`: four disposable services healthy, no host ports; private loopback localhost:8080 not ready; no client/user/browser test executed. **Owned cleanup PASS.**
**P05-OIDC-02 status:** narrow CI-only source remediation implemented; **actual new Gitea run pending**. No claim of fixed runtime or authenticated OIDC prior to terminal evidence.
**P05-OIDC-02 status:** **Run #91 FAILED** — private proxy/Host route PASS and prebuilt image/digest verification PASS, but socat sidecar **exited with code 1** before provisioning; browser OIDC NOT EXECUTED. Owned cleanup PASS. Full acceptance BLOCKED.
## Source changes
@@ -22,3 +22,16 @@ In `tests/ci/oidc_e2e/run.sh` only, the runner now distinguishes:
The single already-approved manual Gitea workflow `p05-oidc-acceptance.yml` must prove private proxy/forwarder readiness **and then** actual official client/user provisioning, original Login V2 Chromium password flow, genuine Auth.js authorization-code PKCE/state/nonce callback, protected Account session and API user ID, anonymous and invalid callback rejection, local sign-out, and successful mandatory owned cleanup.
If any check is blocked, document exact job/run/stage and **do not claim PASS for unexecuted steps**. One Gitea cycle only; no repeat or local tests. No screenshots, real accounts, private secrets, production deployment, MFA/passkey or production HTTPS acceptance. Detailed plan/evidence: `notes/P05-OIDC-02.md`. Developer design: `project/OIDC-E2E-ARCHITECTURE.md`.
## Actual Gitea Run #91 — FAILURE / authentication BLOCKED
The single authorized manual [Gitea Run #91](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/91) tested source SHA `4831165548feabc2c0a0d39d25c40e0d1bc23bb2`, job #198 overall **FAILURE**.
**PASS:** all four disposable backend services healthy; no published host ports; exact private Traefik:80 / `Host: localhost:8080` returned HTTP 200; versioned prebuilt socat entrypoint and image digest verified.
**FAIL:** the private socat forwarder container exited immediately with **exit code 1** (`OIDC_CI_FORWARDER_NOT_RUNNING_STATE=exited EXIT_CODE=1`). Its precise internal error is **not yet established**. The private forwarded 8080 readiness, real OIDC client/human creation, Chromium Login V2 and Auth.js authenticated callback/session/positive and negative checks were **NOT EXECUTED**.
**Safety PASS:** Gitea mandatory `always()` cleanup step #3 passed with `ZITPLANE_BACKEND_CLEANUP_VERIFIED_PASS` and `ZITPLANE_OIDC_ALL_RESOURCES_CLEANED_PASS`; owned database/bootstrap/credentials/containers/volumes/network removed. No real users, local tests or production touched; no CI rerun.
**Next:** P05-OIDC-03, only after separate approval, to classify the sidecar's safe startup failure and fix the **private CI-only forwarding process** (potential official Python stdlib TCP forwarder) before another single isolated acceptance. Never disable PKCE, change production Auth.js, expose a host port or call metadata/cleanup PASS an authenticated login PASS. Exact full evidence: `notes/P05-OIDC-02.md`.
+1 -1
View File
@@ -80,7 +80,7 @@ Implement one explicitly approved phase at a time. Keep out-of-scope files, exis
- Baseline `b78270e9d45c1764c5642024b8147885deaacde3`. Run #90 tested `cbcd60e`, four backend services healthy and host portless, but CI-only localhost:8080 sidecar not ready; project/client/user/browser tests **NOT RUN**; owned teardown **PASS**. Root cause not established by previous logs.
- Exact Write Scope: `tests/ci/oidc_e2e/run.sh`, justified `provision.py` and optional `cleanup.sh`, optional `.gitea/workflows/p05-oidc-acceptance.yml`, `notes/**`, `project/**`, relevant `docs/**`, associated README/MINIFEST only if required. Original backend/dev Compose, Login V2, Account Portal, manifests/locks, production and unrelated files READ-ONLY. Preserve untracked `AI_INSTRUCTIONS.md`.
- Pre-change `notes/P05-OIDC-02.md`: before provisioning probe private 127.0.0.1:80 proxy/Host HTTP 200; replace runtime `apk add` with published versioned `alpine/socat:1.8.1.3`, verify preinstalled entrypoint + digest and run by immutable digest; inspect sidecar state/exit and require private forwarded 127.0.0.1:8080 HTTP 200; fix only the provisioner's status-only readiness without touching official API/secret checks. Existing owned-only cleanup unmodified.
- **Exactly ONE manual Gitea CI run** to verify real disposable project/client/human + original Login V2 Chromium → Auth.js PKCE/state/nonce/callback/session/negative checks + mandatory owned cleanup. No local app tests, no production, no unsafe logging or guessed PASS. Actual result must be documented. Operator guide `docs/P05-OIDC-02.md`.
- **Actual single Gitea Run #91:** tested `4831165548feabc2c0a0d39d25c40e0d1bc23bb2`, overall **FAILURE**. 4-service backend health, no-host-ports, private Traefik:80 Host-routing HTTP 200, socat version/entrypoint/digest checks **PASS**. socat sidecar **exited (code 1)** before localhost:8080 readiness; no project/client/human or real Chromium/PKCE/callback/session tests executed. **Always-run owned cleanup PASS**. Root cause inside socat process not proven without safe startup stderr diagnostics. NO rerun, local app tests or production changes. Follow-up P05-OIDC-03 requires separate exact approval, not auth bypass. `notes/P05-OIDC-02.md`, `docs/P05-OIDC-02.md`.
## P05 - Full Integration (proposed, NOT approved)
Shared design system, production-safe Compose topology and verified Login/Account OIDC wiring. No live deployment; separate approval.
+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 current P05-OIDC-02 private loopback forwarding acceptance and actual Gitea evidence see [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.
For the P05-OIDC-02 [Run #91](P05-OIDC-02.md) exact forwarder exit-code blocker and successful cleanup see the operator report. 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.
+3
View File
@@ -111,3 +111,6 @@ In Gitea `vibtools/ZitPlane` → Actions → **ZitPlane P05-OIDC-01 Disposable R
**P05-OIDC-02 procedure:** Reuse the existing manual `ZitPlane P05-OIDC-01 Disposable Real Browser Acceptance` Gitea workflow (file `.gitea/workflows/p05-oidc-acceptance.yml`) with the newly patched CI-only forwarder. A good run first validates private proxy Host routing, prebuilt `alpine/socat:1.8.1.3` image digest and forwarded localhost:8080 HTTP 200, then provisions disposable OIDC client/user and tests a real Chromium/Account Portal callback before always-run cleanup. No host ports, no real credentials, no local tests. Actual PASS/BLOCKED will be recorded in `docs/P05-OIDC-02.md` and `notes/P05-OIDC-02.md`.
**P05-OIDC-02 actual Gitea status:** [Run #91](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/91) **FAILED** after original ZITADEL 4-service startup, private proxy Host routing and socat image verification all PASS. The private forwarder container exited with code 1, preventing disposable OIDC client/user and browser login. Every authentication/callback/session assertion remains **NOT EXECUTED**; mandatory cleanup **PASS**. Do not manually add users or open network ports. See `docs/P05-OIDC-02.md`; a separate P05-OIDC-03 approval is required for CI-only forwarder startup diagnostics.
+3
View File
@@ -63,3 +63,6 @@ Job #197 in [Run #90](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/90) fai
**P05-OIDC-02 diagnostic separation:** If private Traefik:80 returns a non-200 status with `Host: localhost:8080`, the **proxy/Host route** gate fails before launching the sidecar. If the pinned prebuilt socat container exits or is not running, the CI job records a nonsecret container state and exit code. If the process stays running but localhost:8080 HTTP 200 fails, only the HTTP status or fixed socket marker is printed. None of these is a real login/MFA issue until client/user/browser stages execute. Do not enable host ports, disable PKCE or print secret URLs; require successful owned cleanup on every run. Actual evidence: `notes/P05-OIDC-02.md`.
**P05-OIDC-02 Run #91 verified distinction:** a private `Host: localhost:8080` request to Traefik:80 is healthy, but the **version-pinned prebuilt socat sidecar immediately exited code 1**. Image entrypoint/digest check passed; this is a forwarder-process startup blocker, not evidence of an Auth.js/password/PKCE problem. No full 8080 forwarder response or browser flow was attempted after exit. Its exact stderr cause is unknown. The only approved next action is narrowly scoped safe startup diagnosis/forwarder fix in P05-OIDC-03; no open host port or production change. Owned cleanup **PASS**.