ci: record P05 run 81 and prepare Alpine checkout remediation

This commit is contained in:
victorsteele428 committed 2026-11-22 13:09:43 +00:00
1 parent 42b79362c1
commit 42adaba004
13 files changed
+90 -39

No files matched your search

+5 -5
View File
@@ -1,4 +1,4 @@
# ZitPlane — Actual feature availability / limitations
# ZitPlane - Actual feature availability / limitations
Snapshot: 2026-11-22, P05-CI-01 source preparation based on baseline `7ecf531`. **SOURCE EXISTS != RUNNING != VERIFIED != PRODUCTION**.
@@ -7,8 +7,8 @@ Snapshot: 2026-11-22, P05-CI-01 source preparation based on baseline `7ecf531`.
| Official ZITADEL Go backend image configuration | Yes, P02 | No | No |
| Local PostgreSQL and loopback Traefik stack | Yes, P02 | No | No |
| Official prebuilt Login V2 service in local Compose | Yes, P02 configuration | No | No |
| Official Login V2 customisable source | Yes, P03 v4.20.4 | No | No |
| Login V2 signup/password/OTP/MFA/passkey/IDP source routes | Present upstream | 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 |
| Portal login OIDC and Auth.js callbacks | Yes, P04 source | No | No |
| Portal Overview / Profile / Security pages | Yes, P04 | No | No |
@@ -17,8 +17,8 @@ Snapshot: 2026-11-22, P05-CI-01 source preparation based on baseline `7ecf531`.
| 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 | P05 source added, manual dispatch | Not yet verified | Not deployed |
| Gitea Actions CI and isolated integration tests | Verification scripts prepared; full OIDC E2E absent | Pending | 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 |
| 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
@@ -7,7 +7,7 @@ Every file listed below is a direct child of `docs/`. Add/remove rows whenever t
| [README.md](README.md) | Documentation responsibilities, audience, navigation and change rules | DOCS-01 / active |
| [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 / awaiting CI |
| [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 |
| [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 |
+17 -8
View File
@@ -1,8 +1,8 @@
# P05-CI-01 — Gitea Actions verification
# P05-CI-01 - Gitea Actions verification
Date: 2026-11-22
Source baseline: `7ecf53169776cc7f08af3dde6fe4b4492acf3ea1`
State: **WORKFLOW SOURCE PREPARED; DISPATCH/RESULTS PENDING**.
State: **SOURCE IMPLEMENTED; GITEA RUN #81 FINISHED (OVERALL FAILURE, 2 PASS / 2 FAIL).** Checkout prerequisite source corrected after Run #81 without rerunning; corrected source remains unverified.
## How to run
@@ -12,10 +12,10 @@ No local PC tests, builds, Docker or dev servers are performed by this phase. Th
## Gates
- **account** — Account Portal pinned npm lock, dependency installation, TypeScript and Next.js production build.
- **login** — upstream source's pinned pnpm frozen workspace install, Nx proto/client/Login V2 build and upstream Login unit suite.
- **security** — npm/pnpm production advisory triage; HIGH/CRITICAL advisories fail the gate.
- **backend** — disposable Docker preflight, P02 Python helper contracts, ZITADEL/PostgreSQL/prebuilt Login/Traefik stack and OIDC discovery/JWKS, then cleanup.
- **account** - Account Portal pinned npm lock, dependency installation, TypeScript and Next.js production build.
- **login** - upstream source's pinned pnpm frozen workspace install, Nx proto/client/Login V2 build and upstream Login unit suite.
- **security** - npm/pnpm production advisory triage; HIGH/CRITICAL advisories fail the gate.
- **backend** - disposable Docker preflight, P02 Python helper contracts, ZITADEL/PostgreSQL/prebuilt Login/Traefik stack and OIDC discovery/JWKS, then cleanup.
**Not proved even by all four jobs passing:** complete interactive Account Portal OIDC callback/session, new user signup/MFA/passkeys, Admin Console login, global logout, production host/TLS/routing. These need a separate explicitly approved and fully disposable end-to-end integration test phase.
@@ -23,8 +23,17 @@ No local PC tests, builds, Docker or dev servers are performed by this phase. Th
Runner creates ephemeral secrets only. No production credentials or live user data. CI refuses to touch an existing Docker network with the fixed P02 name. Always cleanup is configured; if the runner itself crashes, disposable resources may require operator cleanup **after confirming exact project ownership**. No push/PR trigger, publish, release or deploy.
## Results
## Gitea verification results - ONE focused cycle
**No results have been verified at documentation creation time.** Fill with actual Gitea run ID, SHA, individual gate results and exact failures; do not infer PASS from static source or use historical runs from other repositories as ZitPlane acceptance.
- **Run:** [#81](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/81), `workflow_dispatch` on `main`, SHA `42b79362c13b9dbb07f85a58ad278742d91b1f5b`. **Overall conclusion: FAILURE** (2026-11-22).
- **Account job #165: FAILED.** Checkout and three source/lock/OIDC-guard structural checks PASS; `npm ci` installed 38 packages. Then `npm run typecheck` failed at `users/ui/src/auth.ts(14,61)`, TypeScript `TS2345`, because inferred `session.user.id` callback return type is not assignable to the required `string` session identity type. Next production build was **NOT RUN**. This authentication-code fix is **outside P05 write scope**.
- **Login job #166: PASS.** Pinned pnpm `10.30.3` frozen install PASS; Nx proto/client/Login production build/standalone artifact PASS; Vitest **84/84 files, 1219/1219 tests PASS**.
- **Security job #167: PASS at high/critical threshold only.** Account npm audit and Login production pnpm audit completed successfully at severity `high`; however Login audit also reports **18 MODERATE vulnerabilities** without package-level triage in the current workflow. Those remain OPEN and require a separately reviewed advisory report.
- **Backend job #168: FAILED before tests.** `node:22-alpine` lacks Git before `actions/checkout@v4`. Action attempted Gitea REST-archive fallback, returned repeated `Not found`; Docker preflight, live backend, OIDC/JWKS smoke and persistence were **NOT EXECUTED**. Always-cleanup step PASS. The workflow source was minimally corrected **after the failed run** with a pre-checkout `apk add --no-cache git`; it has **not** been CI-verified.
- **No second CI run, local build or local application test** was executed.
**Acceptance verdict:** P05 CI foundation source exists and two CI jobs passed, but **FULL PHASE ACCEPTANCE BLOCKED** by Account TypeScript defect, missing Docker runtime verification, absent real user OIDC E2E, and 18 moderate advisory findings. No Coolify/prod deployment.
Read `notes/P05-CI-01.md` for scope and next-phase defect separation. Do not interpret a green Login test job as the complete central authentication platform being production-ready.
Developer map: `project/CI-ARCHITECTURE.md`. Phase notes and root-cause evidence: `notes/P05-CI-01.md`.
+9 -9
View File
@@ -2,11 +2,11 @@
Implement one explicitly approved phase at a time. Keep out-of-scope files, existing authentication machinery and production systems unchanged.
## P01 — Foundation (COMPLETE)
## P01 - Foundation (COMPLETE)
- Baseline commit `8f54ccb30426f2955472c0cd40fb94d0b18e86ac`.
- Initial monorepo folder structure, docs, project Git identity and clean commit completed.
## P02 — ZITADEL local backend (APPROVED 2026-11-22)
## P02 - ZITADEL local backend (APPROVED 2026-11-22)
- **Allowed source writes:** `core/backend/zitadel/**`, `deployment/docker/compose.backend.dev.yaml`, `.env.example`, backend-focused `tests/**`, and narrow `docs/**` / `README.md`.
- Official versioned ZITADEL v4 backend image, local PostgreSQL persistence, secure random dev secret generation, first-admin bootstrap and health checks.
- Official prebuilt Login V2 image as a **runtime dependency only** (v4 Admin Console login requires it); no Login V2 source import.
@@ -16,7 +16,7 @@ Implement one explicitly approved phase at a time. Keep out-of-scope files, exis
- **P02-RUNTIME-ACCEPTANCE-01 instruction update (2026-11-22):** user explicitly deferred all local test/dev execution to a future Gitea Actions phase; this is a source handoff, **not** runtime acceptance. Existing source is committed; authorized push to `vibtools/ZitPlane` is in scope. CI workflow creation and UI import remain outside P02.
- Existing unrelated untracked `AI_INSTRUCTIONS.md` must remain untouched.
## P03 — Official Login V2 source import (APPROVED 2026-11-22; SOURCE IMPLEMENTED)
## P03 - Official Login V2 source import (APPROVED 2026-11-22; SOURCE IMPLEMENTED)
- **Baseline:** `eadd0e558b459061e48583192badfc0579e95140`.
- **Write Scope:** `auth/ui/v2/**` (Login V2 and required upstream workspace files), narrow `README.md` and `docs/**` (P03 source/phase notes). No other files.
- **Upstream tag:** `v4.20.4` at `384bb9ec96b501ad39dc232ee2061a40fe180bbd`, matching P02 Go backend image.
@@ -25,7 +25,7 @@ Implement one explicitly approved phase at a time. Keep out-of-scope files, exis
- P02 prebuilt Login UI remains configured in the development Compose; do **not** replace it or call runtime acceptance complete.
- Evidence and known gaps: `docs/P03-SOURCE-IMPORT.md`. CI workflow not part of this scope.
## P04 — User Account Portal foundation (APPROVED 2026-11-22; SOURCE IMPLEMENTED)
## P04 - User Account Portal foundation (APPROVED 2026-11-22; SOURCE IMPLEMENTED)
- **Baseline:** `4404849fc4bd30c7b4b7cabe7caed54cbd7cd37d`.
- **Exact Write Scope:** `users/ui/**`, narrow project `README.md` and relevant `docs/**` (phase/evidence/architecture/developer guide). **P02/P03 source read-only.**
- Separate compact Next.js portal, ZITADEL OIDC/PKCE authentication, server-protected user routes, read-only profile and security settings structure.
@@ -33,18 +33,18 @@ Implement one explicitly approved phase at a time. Keep out-of-scope files, exis
- Explicitly **no local builds, tests, dev server, Docker or deployment**. Source-level audit only, Git commit and approved Gitea main push. Gitea Actions testing deferred; no CI workflow in this scope.
- Evidence and pending runtime acceptance: `docs/P04-ACCOUNT-PORTAL.md`.
## P05-CI-01 — Gitea Actions Verification Foundation (APPROVED 2026-11-22)
## P05-CI-01 - Gitea Actions Verification Foundation (APPROVED 2026-11-22)
- Baseline `7ecf53169776cc7f08af3dde6fe4b4492acf3ea1`.
- Approved paths `.gitea/**`, `tests/ci/**`, narrow `users/ui/package.json` and lockfile, `auth/ui/v2/pnpm-workspace.yaml` and lockfile, `notes/**`, `project/**`, relevant `docs/**` and `README.md`; root `MINIFEST.md` is a documentation-maintenance exception. Backend/Account auth/UI source READ-ONLY.
- Manual Gitea workflow: account reproducible build, Login frozen build, dependency audit, disposable Docker backend readiness/discovery. **No local tests/build/dev server.**
- Full OIDC login/session/MFA/Admin Console interactive acceptance is not covered without disposable app/user provisioning; status remains BLOCKED/PENDING, not fabricated PASS.
- Run evidence: `notes/P05-CI-01.md` and `docs/P05-CI-01.md`. No production deployment/release.
- **Gitea Run #81:** 2 PASS (Login V2 frozen build + 1219/1219 unit tests; high/critical audit) and 2 FAIL (Account Auth.js TypeScript TS2345; Docker Alpine checkout missing Git). 18 moderate advisories unresolved. Pre-checkout Git source fix applied *after* the run, not rerun. See `notes/P05-CI-01.md` and `docs/P05-CI-01.md`. No production deployment/release.
## P05 — Full Integration (proposed, NOT approved)
## P05 - Full Integration (proposed, NOT approved)
Shared design system, production-safe Compose topology and verified Login/Account OIDC wiring. No live deployment; separate approval.
## P06 — UI redesign (proposed, NOT approved)
## P06 - UI redesign (proposed, NOT approved)
Compact login and account UI, accessibility, responsive design and scoped regressions. Protected authentication semantics unchanged.
## P07 — Production deployment (proposed, NOT approved)
## P07 - Production deployment (proposed, NOT approved)
Coolify, HTTPS, secrets, backups, durable storage and focused production readiness; explicit approval required.