docs(ci): record OIDC run 91 forwarder exit and safe cleanup
This commit is contained in:
1 parent
4831165548
commit
5f542a6aa3
20 files changed
+81
-9
No files matched your search
@@ -16,7 +16,7 @@ This is the **developer-focused implementation history**. `notes/CHANGELOG.md` i
|
||||
| 2026-11-22 | P05-SEC-02 | Seven parent-targeted glob/minimatch patched resolutions, PNPM lockfile metadata-only, manual Login-only CI and post-run validator fix | Run #88: strict Login audit 0 findings PASS, Login build job blocked before install by parser false-positive; post-run fix untested. `notes/P05-SEC-02.md` |
|
||||
| 2026-11-22 | P05-SEC-02-A01 | Verify existing corrected helper, exact seven PNPM scoped overrides, frozen Login Nx build and upstream Vitest; no source/lock changes | **Gitea Run #89 SUCCESS** on `ff4c58e`, 84/84 files, 1219/1219 tests, Login audit 0 Moderate/High/Critical; `notes/P05-SEC-02-A01.md` |
|
||||
| 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 tag+immutable digest startup, proxy/private forwarder HTTP readiness/exit diagnostics, status-only "/debug/ready" provisioner | Source prepared, one Gitea acceptance pending; `notes/P05-OIDC-02.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` |
|
||||
|
||||
## Required entry for each future change
|
||||
|
||||
|
||||
@@ -139,3 +139,6 @@ New manual workflow `.gitea/workflows/p05-oidc-acceptance.yml` executes **one**
|
||||
## P05-OIDC-02 scoped follow-up
|
||||
|
||||
New source in `tests/ci/oidc_e2e/run.sh`: test namespace-local Traefik proxy Host route before creating sidecar, resolve published `alpine/socat:1.8.1.3` to immutable digest, validate prebuilt `socat` entrypoint, create no-host-port loopback sidecar, check running state/exit plus bounded private forwarded HTTP 200. `provision.py` now treats `/debug/ready` as HTTP status-only; official management provisioning and all browser/auth assertions unchanged. Existing manual Gitea workflow and always-run owned cleanup unchanged. One separate Gitea acceptance run needed; never mark a static stage check as an actual real OIDC browser PASS.
|
||||
|
||||
|
||||
**P05-OIDC-02 Gitea Run #91 result:** tested `4831165`, job #198 overall FAIL. All 4 services healthy PASS, no runner host port PASS, private Traefik:80 Host-route HTTP 200 PASS, prebuilt socat/digest verification PASS. The run-owned socat sidecar **exited 1** before forwarded 8080 check, so no project/client/user or Chromium/Auth.js checks executed. Mandatory cleanup PASS, no remaining owned resources. Source-only status readiness fix in `provision.py` **was not exercised**. Root cause inside sidecar unproven without redacted startup error diagnostics. Next separately approved P05-OIDC-03 limited to private CI process/diagnostics.
|
||||
@@ -133,3 +133,6 @@ Existing `tests/ci/security_advisory_gate.py` remains the independent **live reg
|
||||
|
||||
|
||||
**P05-OIDC-02 narrow source audit:** Shell orchestration in `tests/ci/oidc_e2e/run.sh` now probes private Traefik `/debug/ready` with exact `Host: localhost:8080`, verifies prebuilt socat image entrypoint/digest, and stops before credential provisioning when the loopback forwarder state, socket or HTTP response is not ready. Python `provision.py::wait_until_ready()` now checks only `HTTP 200` for `/debug/ready` without interpreting an arbitrary body as JSON. No user API, token, session, IAM policy, Auth.js or official Login V2 code changed.
|
||||
|
||||
|
||||
**P05-OIDC-02 Run #91 actual invocation:** `run.sh` correctly proved the underlying proxy's exact HTTP Host route and pinned image metadata, then observed the forwarder `docker inspect` state `exited`, exit code 1 and **stopped before provisioning**. The updated `provision.py::wait_until_ready()`, official provisioning functions and `browser.cjs` were **not reached** and remain unverified in this phase. Exact owned cleanup completed. Never infer a successful session from source-only logic.
|
||||
@@ -57,3 +57,10 @@ Next P05-OIDC-02 should narrowly instrument/check forwarder startup before provi
|
||||
The previous Gitea Run #90 verified a healthy, portless P02 stack but did not capture the private socat sidecar's exit status or verify the 127.0.0.1:80 proxy independently; the true forwarder failure cause is **unknown**. The new narrow `run.sh` checks the private Traefik:80 `/debug/ready` with `Host: localhost:8080` first, then uses the published version-specific `alpine/socat:1.8.1.3` image (preinstalled `socat`), checks `Entrypoint == ["socat"]`, resolves the pulled tag to its immutable sha256 registry digest and **runs by digest**. There is no `apk add` at runtime. Container state/exit code and bounded local forwarded HTTP 200 readiness are checked **before official OIDC project/user provisioning**. Only safe stage/status markers are printed on failure; no HTTP bodies, cookies, callbacks or passwords.
|
||||
|
||||
`provision.py::wait_until_ready()` now independently verifies HTTP 200 rather than attempting to parse the `/debug/ready` response as JSON; **all official management/client/human creation requests remain strictly parsed JSON and authenticated with the ephemeral IAM_OWNER PAT**. No other protected code, developer Compose, original Login V2 or Account auth source changed. The existing `cleanup.sh` continues to remove only run-labeled/owned resources. **New Gitea real-browser acceptance pending; this is not a verified login yet**. Exact plan/evidence: `notes/P05-OIDC-02.md`.
|
||||
|
||||
|
||||
## P05-OIDC-02 terminal result — exact failure narrower than Run #90
|
||||
|
||||
Gitea [Run #91](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/91) on `4831165548feabc2c0a0d39d25c40e0d1bc23bb2`, job #198, overall **FAILURE**. Four official backend services and portless CI Compose PASS. A **direct** `GET /debug/ready` on Traefik private 127.0.0.1:80 with `Host: localhost:8080` **PASS**; the old "maybe proxy Host routing is down" theory is disproven for this run. The versioned prebuilt `alpine/socat:1.8.1.3` image entrypoint and immutable digest verified **PASS**, but when started in the proxy network namespace the sidecar reported `exited`, **exit code 1**. No startup stderr was retained; the specific binary/runtime/bind/flag error remains **unknown**, so no unsupported cause is asserted. The status-only `provision.py::wait_until_ready()`, project/client/human APIs, real browser password flow, PKCE/state/nonce, Auth.js callback, Account session/positive and negative tests were **NOT EXECUTED**.
|
||||
|
||||
`always()` cleanup PASS: both `ZITPLANE_BACKEND_CLEANUP_VERIFIED_PASS` and `ZITPLANE_OIDC_ALL_RESOURCES_CLEANED_PASS`. Original backend, Compose, Login V2, Auth.js source, manifests and security rules unchanged. Next phase should restrict writes to CI-only startup diagnostics/forwarder, verify the new forwarder HTTP 200 **before** provisioning, preserve private network namespace and ownership checks, then exactly one independently authorized real browser CI acceptance. **No application auth bypass or production deployment**.
|
||||
@@ -87,3 +87,6 @@ CI only: official ZITADEL v4.20.4, official Login V2 v4.20.4, PostgreSQL 17.10/T
|
||||
|
||||
|
||||
**P05-OIDC-02 CI forwarding dependency:** Uses the published, version-selected `alpine/socat:1.8.1.3` image rather than installing packages inside `alpine:3.21` at container startup. The disposable runner checks the image has `["socat"]` entrypoint, resolves `RepoDigests` and launches the immutable pulled sha256 reference; never `latest`. Existing `python:3.12-alpine` probe containers check no-host-port proxy and private forwarding readiness. This is Gitea-only and must not be run on developer PC or production. No package manifests/lockfiles modified.
|
||||
|
||||
|
||||
**P05-OIDC-02 runtime status:** Gitea Run #91 verified `alpine/socat:1.8.1.3` image metadata and immutable digest selection, but the image process **exited code 1** after start. The underlying private proxy:80/Host route was healthy; no OIDC provisioning or browser E2E executed. There was no local application install/build. All CI-owned resources were cleaned. Image metadata verification **does not prove** the forwarding process works or that authenticated OIDC is ready.
|
||||
@@ -1,6 +1,6 @@
|
||||
# ZitPlane ? exact tracked source inventory
|
||||
|
||||
**Snapshot:** 2026-11-22, P05-OIDC-02 focused source candidate on approved baseline `b78270e`. Run #90 backend/cleanup PASS, private loopback FAIL; **new OIDC acceptance CI not yet executed**.
|
||||
**Snapshot:** 2026-11-22, P05-OIDC-02 source tested by Gitea Run #91 at `4831165548feabc2c0a0d39d25c40e0d1bc23bb2`: four services and private proxy PASS, socat sidecar exited 1, OIDC provisioning/browser NOT EXECUTED; owned cleanup PASS. Final docs-only commit is not a new CI-verified source.
|
||||
|
||||
**Git-tracked file paths: 748.** Untracked `AI_INSTRUCTIONS.md` and ignored local secrets excluded.
|
||||
|
||||
|
||||
Reference in new issue
Block a user