ci: record P05 run 83 and isolate disposable proxy from host ports

This commit is contained in:
Vib Tools committed 2026-11-22 05:33:55 -08:00
1 parent c27fe3d323
commit 4857558005
20 files changed
+139 -44

No files matched your search

+7 -7
View File
@@ -1,24 +1,24 @@
# ZitPlane - Actual feature availability / limitations
Snapshot: 2026-11-22, P05-CI-02 source preparation based on baseline `42adaba`. New patch acceptance pending a focused Gitea Actions run. **SOURCE EXISTS != RUNNING != VERIFIED != PRODUCTION**.
Snapshot: 2026-11-22, P05-CI-02 Gitea Run #83 on source SHA `c27fe3d` (3 PASS / 1 FAIL); post-run CI-only portless patch remains unverified. **SOURCE EXISTS != RUNNING != VERIFIED != PRODUCTION**.
| Feature | Source present | CI/build verified | Live/deployed |
| --- | --- | --- | --- |
| Official ZITADEL Go backend image configuration | Yes, P02 | No | No |
| Local PostgreSQL and loopback Traefik stack | Yes, P02 | No | No |
| Official ZITADEL Go backend image configuration | Yes, P02 | Run #83 ZITADEL API healthy in disposable Docker; full startup/proxy/OIDC acceptance blocked | No |
| Local PostgreSQL and loopback Traefik stack | Yes, P02 | Run #83 Postgres healthy, Traefik host 8080 collision; DB restart untested | No |
| Official prebuilt Login V2 service in local Compose | Yes, P02 configuration | No | No |
| Official Login V2 customisable source | Yes, P03 v4.20.4 | Run #81 build + 1219/1219 unit tests PASS; integration not verified | No |
| Login V2 signup/password/OTP/MFA/passkey/IDP source routes | Present upstream | Run #81 unit suite PASS; real account flows NOT tested | No |
| Custom Account Portal Next.js app | Yes, P04 | No | No |
| Custom Account Portal Next.js app | Yes, P04 | Run #83 npm ci/typecheck/Next production build PASS | No |
| Portal login OIDC and Auth.js callbacks | Yes, P04 source | No | No |
| Portal Overview / Profile / Security pages | Yes, P04 | No | No |
| Read-only `GET /api/account/me` | Yes, P04 | No | No |
| Read-only `GET /api/account/me` | Yes, P04 | Run #83 anonymous 401/no-store and redirect negative cases PASS; positive auth unverified | No |
| Password/MFA/passkey changes *inside* Account Portal | No | N/A | No |
| Mutable profile editing / device sessions / identity deletion | No | N/A | No |
| Global ZITADEL SSO logout | No | N/A | No |
| Subscriptions, payments and SaaS billing | Outside ZitPlane scope | N/A | No |
| Gitea Actions CI verification workflow | Yes, P05 manual dispatch | Run #81 completed: 2 PASS / 2 FAIL; overall FAILURE | Not deployed |
| Gitea Actions CI and isolated integration tests | Verification scripts prepared; full OIDC E2E absent | Run #81 backend checkout failed; runtime acceptance BLOCKED | No |
| Gitea Actions CI verification workflow | Yes, P05 manual dispatch | Run #83: 3 PASS / 1 FAIL; Docker proxy 8080 collision, cleanup PASS | Not deployed |
| Gitea Actions CI and isolated integration tests | Negative tests/ready/persistence probe source prepared; full interactive OIDC E2E absent | Run #83: Postgres/ZITADEL API/Login healthy; proxy port collision prevented persistence/OIDC smoke; runtime BLOCKED | No |
| Coolify production stack, TLS, routing and backups | No | No | No |
| Public `auth.vib.tools/login` URL | Proposed only | No | No |
| Public `account.vib.tools` account website | Proposed only | No | No |
+1 -1
View File
@@ -8,7 +8,7 @@ Every file listed below is a direct child of `docs/`. Add/remove rows whenever t
| [MINIFEST.md](MINIFEST.md) | Direct-file manifest and phase ownership | DOCS-01 / active |
| [USER-GUIDE.md](USER-GUIDE.md) | Source-grounded Account Portal page/button-by-button manual | DOCS-01 / active; runtime pending |
| [P05-CI-01.md](P05-CI-01.md) | Gitea Actions manual verification workflow, gates, limitations and real run evidence | P05-CI-01 / Run #81 complete, acceptance blocked |
| [P05-CI-02.md](P05-CI-02.md) | TypeScript remediation, Gitea CI verification, dependency risk and isolation evidence | P05-CI-02 / awaiting CI |
| [P05-CI-02.md](P05-CI-02.md) | TypeScript remediation, Gitea CI verification, dependency risk and isolation evidence | P05-CI-02 / run #83 done; Docker acceptance blocked |
| [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 |
+15 -2
View File
@@ -2,7 +2,7 @@
**Date:** 2026-11-22
**Baseline:** `42adaba0044ee5cb86e6e6bcfd4e00e5fe96ad00`
**State:** Source prepared; Gitea acceptance run pending.
**State:** Gitea Run #83 complete (3 PASS / 1 FAIL), Docker port conflict; post-run portless CI-only source fix unverified.
## What changed and why
@@ -23,4 +23,17 @@ The workflow uses a fixed P02 dev network, so it refuses to start when that netw
## Actual Gitea run evidence
**PENDING.** Record run ID/SHA, individual terminal job results, real advisory IDs, persistence/cleanup evidence and exact blockers after the single focused CI cycle. See `notes/P05-CI-02.md` for the detailed phase record.
**Run #83:** [Gitea Actions Run #83](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/83), `workflow_dispatch`, 2026-11-22, source SHA `c27fe3d3234d16375b962b88014cdd8733ab2fb4`. Overall **FAILURE** with **3 jobs PASS / 1 FAIL**.
| Job | Result | Verified evidence |
| --- | --- | --- |
| Account Portal (#171) | **PASS** | npm lock/source guard PASS; `npm ci`, `tsc --noEmit`, Next.js production build PASS; anonymous `/api/account/me` HTTP 401/no-store and protected redirect to `/signin` PASS. B01 TypeScript defect resolved |
| Official Login V2 (#172) | **PASS** | Frozen pnpm install, proto/client/Login V2 standalone production build; Vitest **84/84 files and 1219/1219 tests PASS** |
| Security (#173) | **PASS at HIGH/CRITICAL threshold** | 0 HIGH/CRITICAL in production audits; **18 Moderate Login advisory records** and **1 Moderate Account `next` package** identified; not fixed |
| Disposable Docker (#174) | **FAIL** | Alpine Git/checkout, Docker daemon/preflight, P02 Python contracts, images pull, PostgreSQL health, ZITADEL API and Login V2 health PASS. Traefik proxy failed host bind `0.0.0.0:8080` **port already allocated**. Restart/persistence and OIDC discovery/JWKS **NOT EXECUTED**. Always cleanup removed job-owned containers, network and named volumes |
**Post-run source-only correction (not verified):** added `tests/ci/compose.portless.override.yaml` with official Compose `ports: !reset []`; all backend CI Compose commands now include it, and config verifies that Traefik has no inherited host publishing. The developer Compose remains untouched. Official reference: https://docs.docker.com/reference/compose-file/merge/#reset-value.
**Outstanding:** CI-only portless override needs one separately approved verification run; database restart persistence and real OIDC discovery remain unverified. Full interactive login, OIDC callback, MFA and Admin Console login require a separate disposable E2E integration plan. All Moderate advisories require a reviewed dependency-only remediation phase before production acceptance.
Detailed advisory IDs/ranges and disposition: `notes/P05-CI-02.md`. **No second CI run**, no local tests/builds/Docker, no production deployment.
+1 -1
View File
@@ -44,7 +44,7 @@ Implement one explicitly approved phase at a time. Keep out-of-scope files, exis
- Baseline `42adaba0044ee5cb86e6e6bcfd4e00e5fe96ad00` (Gitea `main`).
- Narrow write scope: `users/ui/src/auth.ts`, optional `src/types/next-auth.d.ts`, `.gitea/workflows/p05-ci.yml`, `tests/ci/**`, `notes/**`, `project/**`, relevant `docs/**`, associated CI README/MINIFEST, root navigation only if required.
- B01 Auth.js TypeScript TS2345: real subject string narrowing, preserve PKCE/state/nonce, expiry and protected identity guard. B02: verify in-CI Docker checkout, disposable ZITADEL, PostgreSQL restart persistence and OIDC discovery/JWKS. B03: report real Moderate advisory IDs/package/fix; HIGH+ security threshold remains a failure gate. B04: negative OIDC metadata and anonymous Account Portal checks, with interactive user E2E explicitly deferred.
- One focused manually triggered Gitea Actions cycle, no local builds/tests/Docker, no production deployment. Exact result: `notes/P05-CI-02.md`, `docs/P05-CI-02.md`; blocked results remain blocked.
- **One** manual Gitea Run #83: Account Portal, Login V2, security gates PASS; Docker health progressed to PostgreSQL/ZITADEL API/Login V2 healthy, but runner host 8080 collision blocked proxy, database persistence and discovery. Full CI acceptance BLOCKED. Post-run CI-only `tests/ci/compose.portless.override.yaml` clears inherited host port, **not CI-verified**. 18 Moderate Login + 1 Moderate Account audit record still open, no package changes. Exact evidence in `notes/P05-CI-02.md`, `docs/P05-CI-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.
+3
View File
@@ -65,3 +65,6 @@ A manual-only workflow is defined in `.gitea/workflows/p05-ci.yml`. In Gitea go
## Acceptance and configuration troubleshooting
Refer to [FEATURES-STATUS.md](FEATURES-STATUS.md), [TROUBLESHOOTING.md](TROUBLESHOOTING.md), `docs/P02-EVIDENCE.md` and `docs/P04-ACCOUNT-PORTAL.md`. Do not claim success on a missing-run check. Future changes must update all affected docs and developer records.
**P05-CI-02 status (2026-11-22):** Run #83 verified Account Portal build/typecheck and negative auth checks, Login V2 1219/1219 unit tests and a successful high/critical dependency threshold (Moderate issues still open). Disposable Postgres/ZITADEL API/Login V2 became healthy, but host TCP 8080 prevented proxy startup; cleanup succeeded. The workflow now has a **CI-only** portless override to allow internal-Docker-network probing on a shared runner, **not yet rerun**. See `docs/P05-CI-02.md`. This is not a production deployment guide.
+1 -1
View File
@@ -23,7 +23,7 @@ Include environment (local disposable vs CI vs production), exact phase/commit,
## P05-CI-02 verification and error boundaries
- Prior Account Portal `TS2345` at `src/auth.ts(14,61)` in Gitea Run #81 was caused by the callback returning a JWT subject not statically narrowed to `string`. P05-CI-02 source narrows it with `typeof`; it is not considered fixed until CI typecheck/build passes.
- Previous Alpine backend checkout missed Git; current workflow installs Git before checkout. Docker readiness/persistence must be proved by the new CI run, not inferred from this change.
- Previous Alpine backend checkout missed Git; Run #83 verified the fix. Postgres/ZITADEL API/prebuilt Login V2 became healthy, but the runner had host TCP 8080 allocated and Traefik could not start. A CI-only portless Compose override was added after Run #83; it is **not verified** until a separately approved run. Database restart/persistence and OIDC discovery were not reached.
- A green HIGH/CRITICAL advisory audit gate still allows Moderate findings; the P05-CI-02 registry detail report records IDs/package/fix separately, without package upgrades.
- CI negative access tests do not simulate real login; actual OIDC app registration/authorized login/MFA must receive separate approval.