docs(oidc): synchronize Run 98 operator and CI usage guidance

This commit is contained in:
victorsteele428 committed 2026-11-23 10:29:44 +00:00
1 parent d5a3f093ab
commit c656b5fbe1
7 files changed
+21

No files matched your search

+2
View File
@@ -39,3 +39,5 @@ See `notes/P05-CI-01.md` and `tests/ci/`.
**P05-OIDC-03 Run #93 (single dispatch):** `workflow_dispatch` on `main`, tested SHA `7b80f411b2981e2274d171c12596301ed757b768`, job #206 **QUEUED at last inspection**. No CI steps, error-class evidence, OIDC positive/negative assertions or cleanup have executed yet. Neither pass nor failure is established. Do not rerun, alter login/auth or auto-trigger workflows; verify the *existing Run #93* terminal status when runner scheduling permits.
**P05-OIDC-06 new manual workflow:** `p05-custom-login-acceptance.yml` uses an isolated temporary Node22/bookworm builder, pinned PNPM/Nx standalone build, original upstream Dockerfile to package a run-owned local image, opt-in CI Compose image-only overlay and the original real browser OIDC harness. The `always()` cleanup runs original OIDC teardown then exact-labeled builder/image/context teardown. [Run #98](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/98) source `fcfa59e826c39b445faa1b5b26c47ce715d8c3d6` built successfully, but custom OCI Login entrypoint permission denied before full OIDC; old/new cleanup PASS. Not a registry publish or production workflow.
+1
View File
@@ -19,6 +19,7 @@ Compact, developer-friendly monorepo for a central identity service, a branded l
- **P05-OIDC-04:** Single Gitea **Run #95 FAILURE** on `79dac4f5bb76e1cee4dfaf61657c6e84268b3dfb`, job #209. Source adds private socket owner forensics and isolated loopback forwarder, but CI stopped **before these executed**: 4 healthy backend services PASS, direct private proxy Host HTTP readiness `OIDC_CI_PRIVATE_PROXY_SOCKET_OR_HTTP_BLOCKED` FAIL. Real ZITADEL client/human/Chromium/PKCE/Auth.js session NOT EXECUTED; owned cleanup PASS. Real OIDC remains BLOCKED; listener owner UNKNOWN. See `docs/P05-OIDC-04.md`.
- **P05-OIDC-04-A01:** Gitea **Run #96 SUCCESS** on `670e225db477f180ff14ffa62e6654860a166f17`, job #210. Real disposable ZITADEL project/client/verified test-human, original Login V2 Chromium password+PKCE/state/nonce/Auth.js callback, authenticated Account session/API/page, negative access, local logout and mandatory cleanup **PASS**. Proxy TCP6:8080 listener **Traefik PID1** identified; separate private Socat forwarding verified. **Production HTTPS/MFA/passkeys/custom imported Login V2/multi-app SSO/deployment remain unverified.** See [A01 acceptance](docs/P05-OIDC-04-A01.md).
- **P05-OIDC-05:** Read-only production-context forensic audit after verified Run #96 disposable **prebuilt** Login V2/Auth.js OIDC and Run #89 imported Login **build**. Custom Login image/runtime, HTTPS issuer and callback, production secrets/backup/rollback, MFA/Admin and multi-app SSO are NOT VERIFIED; no new CI or app edits. [Audit](docs/P05-OIDC-05.md).
- **P05-OIDC-06:** [Run #98](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/98) on `fcfa59e826c39b445faa1b5b26c47ce715d8c3d6` **FAILURE**: imported Login frozen/standalone build + disposable custom image **PASS**; OCI `/app/entrypoint.sh` permission denied before actual custom Login/Chromium; imported Login real OIDC **NOT EXECUTED**. Old OIDC backend and new builder/image cleanup **PASS**. Original prebuilt Run #96 OIDC PASS unchanged. Next focused CI-only entrypoint-mode RCA requires approval; no production. [Evidence](docs/P05-OIDC-06.md).
- **Production / Coolify:** not configured or deployed.
## Documentation and project knowledge
+2
View File
@@ -57,3 +57,5 @@ Future feature additions need an evidence-backed status update here, an exact de
**P05-OIDC-04-A01 accepted real browser OIDC (disposable only):** Gitea [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96), job #210, source `670e225db477f180ff14ffa62e6654860a166f17` **COMPLETED SUCCESS**. 4/4 healthy services/portless network, actual Traefik PID 1 TCP6:8080 listener, separate private Socat forwarder, issuer discovery, official project/client/test-human, Chromium original Login V2, PKCE S256/state/nonce, genuine Auth.js callback/subject/session/protected identity API/page, anonymous/invalid-callback rejection, local logout and mandatory owned-only cleanup all **PASS**. Python fallback and transient-error retry **NOT EXECUTED** (not needed). **Production HTTPS/custom imported Login V2 integration/MFA/passkeys/multi-app SSO/live deployment NOT VERIFIED**. [Full guide](P05-OIDC-04-A01.md).
**P05-OIDC-05 audit summary (2026-11-23):** The previous historical snapshots remain intact. Current accepted source: [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) real **disposable prebuilt** Login V2 → Chromium/PKCE/Auth.js protected Account/negatives/local logout **PASS**, owned cleanup PASS. Imported source build/unit/security verified separately Run #89. **Production HTTPS/issuer/Host/secure-cookie/callback, imported Login custom-image runtime, Admin Console sign-in, MFA/passkeys, two-app SSO, managed backups/secrets and public deployment NOT VERIFIED/BLOCKED.** See [production readiness audit](P05-OIDC-05.md). No CI rerun in this audit.
**P05-OIDC-06 terminal (2026-11-23):** [Run #98](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/98) source `fcfa59e826c39b445faa1b5b26c47ce715d8c3d6` **FAILURE**: frozen imported Login source standalone and disposable local custom Docker image **PASS**, OCI entrypoint `/app/entrypoint.sh` **permission denied**, so actual imported Login service/browser OIDC/PKCE/Auth.js/negative/logout **NOT EXECUTED**. Existing backend/OIDC and new image/builder resource cleanup all PASS. Previously accepted original official prebuilt Run #96 real OIDC PASS is intact; no production runtime/HTTPS/MFA accepted. [Exact guide](P05-OIDC-06.md).
+6
View File
@@ -136,3 +136,9 @@ Coolify, HTTPS, secrets, backups, durable storage and focused production readine
## P05-OIDC-05 — Production-Context Integration Readiness Forensic Audit (COMPLETE; docs only)
Approved baseline `b3841d8c05d6b47ceaf1dbc5f7103b8de4f256e6`, accepted [Run #96](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/96) on `670e225db477f180ff14ffa62e6654860a166f17`: real disposable original **prebuilt** Login V2 / Auth.js OIDC and owned cleanup SUCCESS. Imported Login V2 source frozen build/unit/security Run #89 SUCCESS separately; custom image **not** runtime integrated. P0: custom Login packaging/wiring, secure production HTTPS issuer/Host/callback, durable secret/DB/backup operations. P1: trusted proxy/cookies/refresh/federated logout, Admin Console/MFA/passkey, multi-app/tenant SSO. P2: release artifacts/monitoring/rollback. **No source/CI/runner/production edit, no new CI dispatch or live user.** See `notes/P05-OIDC-05.md` and `docs/P05-OIDC-05.md`. Proposed next separately approved `P05-OIDC-06`: CI-only custom imported Login V2 image + real disposable browser runtime acceptance.
## P05-OIDC-06 — Imported Login V2 Disposable Image & Runtime Acceptance (TERMINAL FAILURE; 2026-11-23)
- Baseline `e801318f0126e433f71a3b1f8bb4c6f83aec6611`, pre-edit note commit `c93468fb6066b532c29ef1625cf0e3964eb1fd9d`. Approved new manual workflow/CI overlay/isolated build+cleanup, narrow existing `tests/ci/oidc_e2e/run.sh` opt-in only. Tested source `fcfa59e826c39b445faa1b5b26c47ce715d8c3d6`.
- Exactly one [Run #98](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/98) job #213 **COMPLETED FAILURE**: frozen four-workspace install/NX/Next standalone and local custom image **PASS**; Docker/portless config, Postgres and ZITADEL API startup PASS; imported Login OCI process **FAIL** (`exec: "/app/entrypoint.sh": permission denied`). Custom Login health/identity, Traefik/issuer, client/human and Chromium/Auth.js/negative/logout **NOT EXECUTED**. Root executable file mode not inspected; do not assert it. Existing original Login Run #96 OIDC SUCCESS remains valid.
- Three cleanup markers PASS: old backend, OIDC and new image/builder/temp context. No repeated CI, local builds/tests, production, real user, registry publication or tag/release. Next separately approved `P05-OIDC-06-A01`: scoped temporary artifact entrypoint permission RCA in `tests/ci/login_image/build.sh` only. See `notes/P05-OIDC-06.md` and `docs/P05-OIDC-06.md`.
+4
View File
@@ -128,3 +128,7 @@ In Gitea `vibtools/ZitPlane` → Actions → **ZitPlane P05-OIDC-01 Disposable R
## P05-OIDC-05 production readiness warning
Run #96 authenticated successfully only in disposable CI over **HTTP localhost** with original **prebuilt** Login V2. The tracked backend Compose has `localhost:8080`, disabled external TLS and local-only routing; **never deploy this development Compose to public Coolify** or reuse its bootstrap credentials/volumes. An independent future phase must build and test imported custom Login image; later phases must implement canonical HTTPS issuer and registered Account callback, h2c/HTTP2, trusted forwarded Host/Proto, cookie policy, secrets/rotation, backup/restore, break-glass and rollback. Factors/Admin/second app SSO remain unverified. Operator report: [P05-OIDC-05.md](P05-OIDC-05.md).
## P05-OIDC-06 — new custom image is not runtime accepted
The imported upstream Login V2 frozen build and temporary local image passed Gitea Run #98, but the actual OCI `zitadel-login` process could not start: `exec: "/app/entrypoint.sh": permission denied`. The exact file mode/owner was not measured; changing upstream source or original Dockerfile is NOT authorized. Private proxy, real client/user, Chromium/Auth.js callbacks and protected pages were not executed in this run; the owned credential/database/volume/network and builder/image/context cleanup passed. Do not copy this CI image to production or publish host ports. Next independent permission/exec audit must target **only the temporary copied build artifact**; see [P05-OIDC-06.md](P05-OIDC-06.md).
+4
View File
@@ -91,3 +91,7 @@ Earlier Run #95 did not classify its private proxy HTTP exception and failed bef
## P05-OIDC-05 — CI success vs public deployment
If production domains do not respond, do not assume Gitea Run #96 deployed them: it did **not**. A custom Login design not appearing is expected until the imported image is actually built and wired; dev Compose explicitly loads the official prebuilt image. Future HTTPS OIDC failures require exact issuer, callback, public Host, sanitizing forwarded headers, h2c/HTTP2 route, cookies and secrets review; do not bypass PKCE/state/nonce or expose :8080 publicly. MFA/self-service links require actual ZITADEL policy and Console permissions. Never share passwords, PATs, query URLs or cookies in diagnostics. See [P05-OIDC-05.md](P05-OIDC-05.md).
## P05-OIDC-06 — OCI startup blocker before login
[Gitea Run #98](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/98) successfully built the imported Login source/image, then failed at the OCI start boundary: `exec: "/app/entrypoint.sh": permission denied`. Inspect the copied standalone entrypoint's mode/owner and verify built image `test -x` only in a later separately approved CI phase; current job did not prove missing executable bit. Do NOT weaken App/Auth.js, alter upstream auth sources, bypass entrypoint or rerun without approval. Browser OIDC was NOT EXECUTED; both cleanup subsystems PASS.
+2
View File
@@ -34,3 +34,5 @@ Add new CI checks and update `MINIFEST.md`, `project/`, `docs/`, and `notes/` in
**P05-OIDC-03:** `tests/ci/oidc_e2e/forwarder.py` is an stdlib-only private 127.0.0.1 TCP relay. `run.sh` classifies pre-credential socat startup failures and, if needed, switches to the official Python image pinned by sha256 within a single isolated CI cycle; existing exact-owner cleanup and original OAuth/Browser tests unchanged. Do not treat forwarder readiness alone as real OIDC authentication acceptance.
**P05-OIDC-06 `login_image/` helpers:** isolated frozen imported Login builder and local image, plus run-labeled image/builder/temp-context cleanup; original OIDC default mode unchanged with a narrow opt-in Compose overlay. [Run #98](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/98) build PASS, OCI custom Login startup failed with entrypoint permission denied (exact mode UNKNOWN), custom browser NOT EXECUTED, dual cleanup PASS. New folder `README.md` and `MINIFEST.md` document exact files. No local developer build or production user.