docs(oidc): record Run 98 OCI entrypoint blocker and dual cleanup

This commit is contained in:
victorsteele428 committed 2026-11-23 10:27:56 +00:00
1 parent fcfa59e826
commit 84ed42ae3e
2 files changed
+55

No files matched your search

+42
View File
@@ -31,3 +31,45 @@ This Scope Lock note MUST be committed **before implementing** the CI-only image
4. Record exact **PASS/FAIL/NOT EXECUTED** of every gate, including image-builder cleanup. No scope expansion or retry if blocked; docs synchronization, docs-only commit, final remote HEAD and exact diff verification; distinguish source-tested SHA from docs SHA.
**Initial outcome:** NOT EXECUTED. Production HTTPS/MFA/passkey/Console/two-app SSO remain out of scope, regardless of this disposable image result.
## Terminal result — one real CI cycle and exact RCA boundary
**Scope Lock commit (before code):** `c93468fb6066b532c29ef1625cf0e3964eb1fd9d`. **Tested source commit:** `fcfa59e826c39b445faa1b5b26c47ce715d8c3d6`. Exact source/security diff: new manual-only `.gitea/workflows/p05-custom-login-acceptance.yml`, CI image-only `deployment/docker/compose.login-ci.override.yaml`, focused new `tests/ci/login_image/{README.md,MINIFEST.md,build.sh,cleanup.sh}`, narrow opt-in `tests/ci/oidc_e2e/run.sh`. Original `auth/ui/v2/**`, `users/ui/**`, `core/**`, dev Compose, existing workflows, browser/provision/cleanup and package/locks unchanged. No public port, registry push, local application build/test, production, new real human or tag/release.
**Exactly ONE manual Gitea [Run #98](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/98) / Job #213** on source `fcfa59e826c39b445faa1b5b26c47ce715d8c3d6`: **COMPLETED FAILURE**, job started `2026-11-23T10:17:41Z`, completed `2026-11-23T10:24:00Z`. Step 0 CLI/Git SUCCESS; step 1 checkout SUCCESS; step 2 imported Login build/image SUCCESS; step 3 custom-image real OIDC FAILURE; step 4 `always()` dual owned-resource cleanup SUCCESS. No rerun or post-dispatch source patch.
| Gate | Actual status |
| --- | --- |
| Run-owned isolated builder preflight | **PASS** `ZITPLANE_CUSTOM_LOGIN_ISOLATED_BUILD_PREFLIGHT_PASS` |
| Frozen four-workspace PNPM install (1,121 packages) | **PASS** `ZITPLANE_CUSTOM_LOGIN_FROZEN_INSTALL_PASS` |
| NX proto/client/Next 16.4.6 standalone production build | **PASS** `ZITPLANE_CUSTOM_LOGIN_STANDALONE_BUILD_PASS` |
| Original upstream Dockerfile local image packaging | **PASS** `ZITPLANE_CUSTOM_LOGIN_LOCAL_IMAGE_BUILT_PASS` |
| Exact local image | `zitplane-login-ci:98`, image ID `sha256:ce910cca9bcbf125228c58143083314682b028e4851c9274e3f6a52154fa5a9a`; no registry publish |
| Docker/Compose no-public-port and owner config | **PASS** `ZITPLANE_OIDC_DOCKER_PREFLIGHT_PASS`, `ZITPLANE_OIDC_NO_PUBLISHED_PORT_AND_OWNER_CONFIG_PASS` |
| Disposable PostgreSQL and ZITADEL API startup | **PASS** (healthy from actual Compose events) |
| **Custom Login OCI process startup** | **FAIL**: `OCI runtime create failed: exec: "/app/entrypoint.sh": permission denied` |
| Custom Login health and actual running image ID | **NOT EXECUTED** (Compose failed before four-service ready gate) |
| Traefik private Host routing, forwarder, issuer | **NOT EXECUTED** |
| Official disposable project/client/test human | **NOT EXECUTED** |
| Chromium password Login V2, PKCE S256, state, nonce, Auth.js callback/session | **NOT EXECUTED** |
| Protected Account page/API, negative cases, logout | **NOT EXECUTED** |
| Existing OIDC/backend/credentials/DB/volumes/network cleanup | **PASS** `ZITPLANE_BACKEND_CLEANUP_VERIFIED_PASS`, `ZITPLANE_OIDC_ALL_RESOURCES_CLEANED_PASS` |
| New local image/builder/temporary context cleanup | **PASS** `ZITPLANE_CUSTOM_LOGIN_ALL_BUILD_RESOURCES_CLEANED_PASS` |
### Root cause confidence
The failure is **before the custom Login process started**; it cannot prove any authentication behavior or custom Login route. An executable-bit, file mode, ownership or other OCI execution-permission problem affecting `/app/entrypoint.sh` is **suspected**, not conclusively proven: Run #98 did NOT stat the copied artifact or built image. Do not invent a specific `0644` mode or change upstream source without evidence. Nonfatal imported Next.js Edge-runtime warnings did not prevent the successful build. The separate original-prebuilt Login V2 [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) authenticated E2E SUCCESS remains valid.
**P05-OIDC-06: Source and one-run audit COMPLETE; custom image runtime ACCEPTANCE BLOCKED / FAILURE; mandatory cleanup PASS.** Production HTTPS, MFA/passkeys, Admin Console human flow and multi-app SSO remain outside this phase.
### Next proposed exact Scope Lock — P05-OIDC-06-A01 (not yet approved)
**Pre-source note:** create `notes/P05-OIDC-06-A01.md` first.
**SOURCE WRITE:** `tests/ci/login_image/build.sh` only; at most one focused new helper under `tests/ci/login_image/**` if justified. Documentation: `notes/**`, relevant `project/**`, `docs/**`, associated README/MINIFEST as necessary.
**STRICT READ-ONLY:** `auth/ui/v2/**` including upstream Dockerfile and original Login auth/source/lock, `users/ui/**`, `core/**`, all existing/new workflows, both Compose files, `tests/ci/oidc_e2e/**`, `tests/ci/login_image/cleanup.sh`, package manifests/locks, runner, production/secrets, unrelated files; preserve untracked `AI_INSTRUCTIONS.md`.
**Targeted action:** Inspect only numeric mode/owner/shebang class of the **copied temporary build-context** `.next/standalone/entrypoint.sh`. If evidence verifies missing executable bit, correct **only that temporary copy** with a narrowly checked `chmod 0755` (not imported upstream source or original Dockerfile). Verify built image `/app/entrypoint.sh` exists and `test -x` using a no-credentials `--entrypoint /bin/sh` probe; fail closed for anything else. After one focused source/security audit and commit/push, dispatch exactly one separately approved disposable custom Login CI run; verify actual container image/provenance, health, private Host/issuer, real project/client/human/Chromium PKCE/Auth.js session/negative/logout, both owned cleanups. No rerun, local build/test, real users, production, registry publish, tag or release.
**Docs SHA will differ from tested source SHA; the documentation commit is not runtime retested.**