test(ci): diagnose socat startup and add private Python fallback
This commit is contained in:
1 parent
5f542a6aa3
commit
7b80f411b2
24 files changed
+338
-31
No files matched your search
@@ -64,3 +64,12 @@ The previous Gitea Run #90 verified a healthy, portless P02 stack but did not ca
|
||||
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**.
|
||||
|
||||
|
||||
## P05-OIDC-03 — CI-only exit-class evidence and transparent Python loopback fallback
|
||||
|
||||
Run #91 established an isolated private Traefik:80/Host HTTP 200 and a socat sidecar `exited 1`, but not the internal startup reason. `tests/ci/oidc_e2e/run.sh` now runs a single socat startup probe *before user/client provisioning*, checks container state and private forwarded HTTP 200, classifies only allowlisted error classes from the diagnostic sidecar's own stderr (never prints raw logs), and retains socat when healthy. If unhealthy, it verifies the run ownership label, deletes only that diagnostic container, then resolves the already-used official `python:3.12-alpine` to its registry sha256 digest and starts the `forwarder.py` byte relay in the **same run-owned Docker container name and Traefik network namespace**. No host port, new credentials, tokens or HTTP-body logging. Both paths must pass private `127.0.0.1:8080 /debug/ready` with exact Host before calling official APIs.
|
||||
|
||||
`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.
|
||||
Reference in new issue
Block a user