docs(ci): close P05 SEC-02 A01 after successful run 89

This commit is contained in:
Vib Tools committed 2026-11-22 08:39:26 -08:00
1 parent ff4c58ed86
commit f423c69654
18 files changed
+64 -17

No files matched your search

+3
View File
@@ -21,3 +21,6 @@ Job responsibilities:
A green job indicates only its executed steps. Full CI acceptance also needs end-to-end OIDC session/callback, real login/MFA, admin console and session controls in a disposable environment, documented separately.
See `notes/P05-CI-01.md` and `tests/ci/`.
**P05-SEC-02-A01 ACCEPTED:** Manual Login-only [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89), tested `ff4c58ed861474061c8f045be3a9f0752caf6ca0`, overall **SUCCESS**. Login frozen install/build/upstream 1219/1219 unit regressions job #194 PASS, Login production zero-Moderate/High/Critical audit job #196 PASS, Account jobs #193/#195 intentionally SKIPPED. Corrected `transitive_override_contract.py` verified exact seven parent overrides without false-positive `>=` parsing; no dependency lock/manifest/source change. Human OIDC/MFA remains unverified.
+1 -1
View File
@@ -12,7 +12,7 @@ Compact, developer-friendly monorepo for a central identity service, a branded l
- **P05-CI-03:** **Gitea Run #86 SUCCESS** on `03fb589`: portless Docker Compose, four healthy/running services, PostgreSQL restart persistence, ZITADEL readiness, OIDC discovery/JWKS, negative contracts and complete CI cleanup verified. No repeated Account/Login suites. Full interactive OIDC E2E and Moderate dependency fixes remain pending. See `docs/P05-CI-03.md`.
- **P05-SEC-01:** Gitea Run #87 **3 PASS / 1 FAIL**. Account and Login patched Next.js `16.4.6` builds PASS, Login 1219/1219 upstream unit tests PASS, Account audit 0. Login OpenTelemetry patched dependencies reduced prior 18 Moderate to **2 remaining** (glob/minimatch); strict Moderate security gate correctly FAILS. Current dependency patch retained; complete security acceptance requires a separate narrow transitive remediation phase. See `docs/P05-SEC-01.md`.
- **P05-SEC-02:** Seven parent-scoped PNPM overrides resolved `glob`/`minimatch` advisories. Gitea Run #88 Login production audit **0 Moderate/High/Critical PASS**, but Login frozen install/build/units **NOT RUN** because a new CI override validator misparsed existing `>=` version ranges; post-run regex correction **not CI-verified**. Full acceptance **BLOCKED** pending a separately approved focused CI run. Account jobs intentionally skipped. See `docs/P05-SEC-02.md`.
- **P05-SEC-02-A01:** Approved one-run Login-only frozen-install/build/unit and zero-Moderate security acceptance of existing corrected CI validator; no dependency or application source edits. **CI acceptance pending**. See `docs/P05-SEC-02-A01.md`.
- **P05-SEC-02-A01:** **Gitea Run #89 SUCCESS** on `ff4c58e`: corrected exact override contract PASS, pinned PNPM frozen install PASS, official Login V2 standalone build PASS, upstream Vitest **1219/1219 PASS**, Login production audit **0 Moderate/High/Critical**; Account jobs skipped. **Dependency security/build unit acceptance complete; real user OIDC/MFA E2E and production integration NOT verified**. See `docs/P05-SEC-02-A01.md`.
- **Production / Coolify:** not configured or deployed.
## Documentation and project knowledge
+4 -4
View File
@@ -1,13 +1,13 @@
# ZitPlane - Actual feature availability / limitations
Snapshot: 2026-11-22, **Gitea P05-CI-03 Run #86 backend-only SUCCESS** on `03fb589`; Account/Login build tests had passed in Run #83. Live production and interactive authenticated OIDC still NOT verified. **SOURCE EXISTS != RUNNING != VERIFIED != PRODUCTION**.
Snapshot: 2026-11-22. **Run #86** accepted isolated ZITADEL backend; **Run #89** accepted frozen Login V2 production build, 1219 unit tests and strict zero-Moderate production dependency audit. Live authenticated OIDC, MFA and production still NOT verified. **SOURCE EXISTS != RUNNING != VERIFIED != PRODUCTION**.
| Feature | Source present | CI/build verified | Live/deployed |
| --- | --- | --- | --- |
| Official ZITADEL Go backend image configuration | Yes, P02 | **Run #86 PASS:** ZITADEL API healthy, local backend ready, OIDC discovery/JWKS | No |
| Local PostgreSQL and loopback Traefik stack | Yes, P02 | **Run #86 PASS:** Postgres restart persistence and portless CI Traefik healthy; developer PC stack not tested | No |
| Official prebuilt Login V2 service in local Compose | Yes, P02 configuration | **Run #86 PASS:** official Login V2 container healthy; interactive login flow not tested | No |
| Official Login V2 customisable source | Yes, P03 v4.20.4 | Run #81 build + 1219/1219 unit tests PASS; integration not verified | No |
| Official Login V2 customisable source | Yes, P03 v4.20.4 | **Run #89 PASS**: frozen PNPM, Nx proto/client/Login Next 16.4.6 standalone build, 84/84 files and 1219/1219 unit tests; real login integration unverified | 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 | Run #83 npm ci/typecheck/Next production build PASS | No |
| Portal login OIDC and Auth.js callbacks | Yes, P04 source | No | No |
@@ -17,8 +17,8 @@ Snapshot: 2026-11-22, **Gitea P05-CI-03 Run #86 backend-only SUCCESS** on `03fb5
| 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 #83 baseline, Run #86 backend SUCCESS, Run #87 3 PASS/1 FAIL (2 Moderate Login advisories) | Not deployed |
| Dependency Moderate security patch/acceptance | P05-SEC-01 direct Next/OTel patches; P05-SEC-02 seven exact glob/minimatch parent overrides | Run #88 Login audit **0 Moderate/High/Critical PASS**; Login frozen install/build/unit **BLOCKED by CI helper false-positive**; post-run fix unverified. Account audit 0 in Run #87 | Not deployed |
| Gitea Actions CI verification workflow | Yes, P05 manual dispatch | Run #86 backend SUCCESS; Run #87 baseline, Run #88 partial, **Run #89 Login build/security SUCCESS** | Not deployed |
| Dependency Moderate security patch/acceptance | Next.js/OTel P05-SEC-01 patches, seven scoped glob/minimatch overrides and corrected CI validator | **Run #89 PASS**: Login audit 0 Moderate/High/Critical and frozen install/build/1219 unit tests; Account audit 0 in Run #87. This does not prove production auth/MFA | Not deployed |
| Gitea Actions CI and isolated integration tests | Backend-only workflow; interactive identity E2E remains absent | **Run #86 PASS:** disposable backend OIDC ready/discovery/JWKS, Postgres persistence, cleanup; authenticated user E2E pending | No |
| Coolify production stack, TLS, routing and backups | No | No | No |
| Public `auth.vib.tools/login` URL | Proposed only | No | No |
+1 -1
View File
@@ -12,7 +12,7 @@ Every file listed below is a direct child of `docs/`. Add/remove rows whenever t
| [P05-CI-03.md](P05-CI-03.md) | Isolated backend-only Gitea CI procedure, checks and exact run outcomes | P05-CI-03 / Run #86 SUCCESS |
| [P05-SEC-01.md](P05-SEC-01.md) | Source-grounded dependency security patches, advisory blockers and CI verification | P05-SEC-01 / Run #87 3 PASS/1 FAIL, 2 Moderate open |
| [P05-SEC-02.md](P05-SEC-02.md) | Seven scoped PNPM parent overrides, patched lock and manual Login-only security CI evidence | P05-SEC-02 / Run #88 partial: security zero, build unverified |
| [P05-SEC-02-A01.md](P05-SEC-02-A01.md) | Gitea-only Login V2 full frozen-install/build/units/zero-advisory acceptance and status | P05-SEC-02-A01 / pending acceptance |
| [P05-SEC-02-A01.md](P05-SEC-02-A01.md) | Gitea-only Login V2 full frozen-install/build/units/zero-advisory acceptance and status | P05-SEC-02-A01 / Run #89 SUCCESS |
| [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 |
+2 -2
View File
@@ -3,7 +3,7 @@
**Date:** 2026-11-22
**Scope:** Gitea-only focused CI verification of the *already committed* corrected PNPM transitive-override validator and frozen Login V2 security dependencies.
**Baseline:** `7655dbdcb48c49aab8f3bf97aab8f1867f129531`.
**Status:** one Gitea CI run planned; **no new application/CI code change**.
**Status:** **ACCEPTED/PASS** — Gitea Run #89 on `ff4c58ed861474061c8f045be3a9f0752caf6ca0` SUCCESS, both Login CI jobs PASS and both Account jobs SKIPPED.
## Why this follow-up exists
@@ -18,4 +18,4 @@ Open Gitea [ZitPlane Actions](https://dev.ivib.cc/vibtools/ZitPlane/actions). Se
**Full phase PASS** requires a green overall run, a frozen install, a generated standalone Login build, actual upstream unit-test count and zero Moderate/High/Critical vulnerabilities, with no source edit outside Scope Lock. If CI fails, note the exact blocker and do not rerun. No real login/MFA, ZITADEL integration or Coolify production deployment is covered.
**Status:** awaiting this single authorized run. Full pre-change scope, exact root cause and result ledger: `notes/P05-SEC-02-A01.md`. Historical dependency patch evidence: `project/DEPENDENCY-SECURITY.md` and `docs/P05-SEC-02.md`.
**ACTUAL VERDICT:** [Gitea Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89), one manual `login_only=true` run on tested SHA `ff4c58ed861474061c8f045be3a9f0752caf6ca0`, **overall SUCCESS**. Account jobs #193/#195 SKIPPED intentionally. Login build job #194 **PASS**: corrected seven-parent selector and lock contract, pinned PNPM `10.30.3` frozen install (1,121 packages), original Nx proto/client/Next.js 16.4.6 standalone build + artifact check, upstream Vitest **84/84 files and 1,219/1,219 tests**. Login production security job #196 **PASS**: real registry `pnpm audit --prod` found **0 Moderate, 0 High, 0 Critical** (also 0 Low/Info), fail-closed gate PASSED. All P05-SEC-02-A01 acceptance gates fulfilled. **This is NOT proof of real authenticated OIDC/MFA/session/browser E2E or production deployment.** See `notes/P05-SEC-02-A01.md` and `project/DEPENDENCY-SECURITY.md`.
+1 -1
View File
@@ -68,7 +68,7 @@ Implement one explicitly approved phase at a time. Keep out-of-scope files, exis
## P05-SEC-02-A01 — Login Build & Security Final Acceptance (APPROVED 2026-11-22)
- Baseline `7655dbdcb48c49aab8f3bf97aab8f1867f129531`. Previous Run #88 security 0 Moderate/High/Critical; Login frozen/build/unit unexecuted due CI helper `>=` selector false-positive. Corrected parser is committed but not yet CI-verified.
- **Exact Scope Lock:** `tests/ci/transitive_override_contract.py` and `.gitea/workflows/p05-security-acceptance.yml` only if a NEW exact validator/CI defect is reproduced; `notes/**`, `project/**`, relevant `docs/**`, associated README/MINIFEST for evidence. All PNPM lock/config/manifests, original Login/UI/auth, Account Portal, ZITADEL backend, Compose, production and unrelated files read-only. Preserve untracked `AI_INSTRUCTIONS.md`.
- **Plan:** no code change necessary from initial source review. Record plan before edits. Commit/push documentation; ONE Gitea `workflow_dispatch` with `login_only=true`; verify exact seven override contract, frozen PNPM 10.30.3 install, Nx proto/client/Login standalone build, upstream Vitest and live zero Moderate/High/Critical audit. Account and backend jobs skipped; no local app test/build/deploy. Document exact run results and remote SHA. `notes/P05-SEC-02-A01.md`, `docs/P05-SEC-02-A01.md`.
- **Run #89 ACCEPTED/SUCCESS**: tested SHA `ff4c58ed861474061c8f045be3a9f0752caf6ca0`. Existing corrected override validator PASS, seven parent pins + patched lock contract PASS; PNPM `10.30.3` frozen install PASS; Nx proto/client/Login 16.4.6 standalone production build PASS; upstream Vitest **84/84 files and 1219/1219 tests PASS**. Live production `pnpm audit --prod`: **0 Moderate/High/Critical**. Login jobs #194/#196 SUCCESS; Account jobs #193/#195 SKIPPED intentionally. One CI run, no local app test/build, no source/lock/deploy changes. Interactive OIDC/MFA/Admin Console login still unverified. Exact evidence: `notes/P05-SEC-02-A01.md`, `docs/P05-SEC-02-A01.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.
+2 -2
View File
@@ -2,7 +2,7 @@
**Purpose:** the Git-tracked, **user-facing** knowledge base: real functions, pages, controls, account behavior, prerequisites, how to use each available capability, troubleshooting and limitations.
**Current product status:** P02 local backend Compose, P03 imported Login V2 source, P04 account portal source. No integrated deployed product yet; Gitea Run #83 verified Account Portal and Login V2 builds, but real user login and full backend runtime acceptance remain unverified. **Do not claim pages/buttons are working in production merely because source exists.**
**Current product status:** P02 local backend Compose, P03 imported Login V2 source, P04 account portal source. No integrated deployed product yet; Gitea Run #86 verified disposable backend readiness/persistence, Run #89 verified Login frozen build/unit/security and Run #87 verified Account build/security. **Real authenticated user login/MFA and production deployment remain unverified.** **Do not claim pages/buttons are working in production merely because source exists.**
## What to read
@@ -26,4 +26,4 @@
Full update policy is in root [AGENTS.md](../AGENTS.md). A list of available docs is in [MINIFEST.md](MINIFEST.md).
For Run #88 zero-advisory security evidence, blocked Login build gate, post-run unverified CI parser correction and next focused acceptance see [P05-SEC-02.md](P05-SEC-02.md). For Gitea Run #87 findings see [P05-SEC-01.md](P05-SEC-01.md). For backend-only isolated runtime verification see [P05-CI-03.md](P05-CI-03.md); for initial full workflow and its limitations see [P05-CI-01.md](P05-CI-01.md). A green backend discovery smoke is not an authenticated user-login result.
For Gitea Run #89 final Login frozen build/unit/zero-advisory acceptance and the remaining interactive identity gaps see [P05-SEC-02-A01.md](P05-SEC-02-A01.md). For Run #88 historical blocker and corrected helper see [P05-SEC-02.md](P05-SEC-02.md). For Gitea Run #87 findings see [P05-SEC-01.md](P05-SEC-01.md). For backend-only isolated runtime verification see [P05-CI-03.md](P05-CI-03.md); for initial full workflow and its limitations see [P05-CI-01.md](P05-CI-01.md). A green backend discovery smoke is not an authenticated user-login result.
+3
View File
@@ -97,3 +97,6 @@ Gitea `vibtools/ZitPlane` → Actions → **ZitPlane P05 Dependency Security Acc
## P05-SEC-02-A01 — one-run Login security/build verification
Use Gitea Actions → **ZitPlane P05 Dependency Security Acceptance (SEC-01/02)** → manual `main` workflow with `login_only=true`. Only Login frozen PNPM install, proto/client/Next standalone build, upstream Vitest and zero Moderate/High/Critical live registry audit should run. Account jobs should be skipped (Run #87 already accepted), and there is no backend, human identity or production deployment. A successful security audit alone is insufficient; the login build/unit job must also pass. Actual results will be in `docs/P05-SEC-02-A01.md` and `notes/P05-SEC-02-A01.md`.
**P05-SEC-02-A01 VERIFIED:** Gitea [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89) succeeded with manual `login_only=true`: patched seven-parent dependency contract, pinned frozen PNPM install, proto/client/Login standalone production build, **1219/1219** upstream tests and production registry audit **0 Moderate/High/Critical**. Account jobs were intentionally skipped. No user credential, interactive OIDC login, MFA, production TLS or deployment was tested; do not treat this as a deployed service.
+5
View File
@@ -45,3 +45,8 @@ If a frozen Login install, Nx build or unit suite fails after this patch, verify
## P05-SEC-02 Run #88: false-positive override validation (not a runtime failure)
Run #88 Login build job #190 stopped before `pnpm install --frozen-lockfile` when the new `transitive_override_contract.py` classified old `axios@>=...` / `brace-expansion@>=...` / `esbuild@>=...` selectors as extra parent overrides. The regex was narrowed **after** the run to accept only direct `>glob` or `>minimatch` overrides. **This fix has not been tested by CI.** Independent Login production security audit job #192 passed with **0 Moderate, 0 High, 0 Critical**; do not confuse that security result with an authenticated login, a production deployment, or a successful frozen build. A separate, explicitly approved Gitea CI run is required for complete Login dependency compatibility acceptance.
## P05-SEC-02-A01 — Run #88 validator false-positive closed in Run #89
The earlier Run #88 CI helper misread `axios@>=` and similar version-range keys as parent overrides. The already-committed suffix-only `>glob` / `>minimatch` correction **passed** in Gitea [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89), followed by successful frozen PNPM install, original Login Nx production build and **1219/1219** unit tests. The production registry vulnerability audit also passed with **0 Moderate/High/Critical**. The prior false-positive is now **CI-verified resolved**; no repeat local test or production deployment. If future login failures occur, distinguish CI build/unit success from still-untested authenticated OIDC/callback/MFA integration.
+1 -1
View File
@@ -14,6 +14,6 @@ This is the chronological **index**. Phase-specific scope/implementation evidenc
| 2026-11-22 | P05-CI-03 | Backend-only Gitea verification of portless Compose, 4 services, Postgres persistence, OIDC/JWKS and safe cleanup | **Run #86 SUCCESS** on `03fb589`, no unrelated suites rerun; [evidence](P05-CI-03.md) |
| 2026-11-22 | P05-SEC-01 | Next.js 16.4.6, compatible OTel instrumentation, frozen locks and strict advisory gates | Run #87: 3 PASS/1 FAIL; 17/19 prior findings no longer reported, 2 Moderate Login blockers. [Evidence](P05-SEC-01.md) |
| 2026-11-22 | P05-SEC-02 | Seven scoped parent overrides for glob/minimatch, pinned PNPM lock; one focused Gitea run | Run #88: Login security 0 findings PASS, build gate FAIL before frozen install on CI helper false-positive. Post-run regex fix unverified; [evidence](P05-SEC-02.md) |
| 2026-11-22 | P05-SEC-02-A01 | Dedicated one-run final acceptance of already-corrected CI parser, unchanged Login lockfile and seven overrides | No additional source changes; [pre-run plan](P05-SEC-02-A01.md), acceptance pending |
| 2026-11-22 | P05-SEC-02-A01 | One-run final acceptance of corrected CI parser and unchanged Login lockfile/seven overrides | **Run #89 SUCCESS** on `ff4c58e`: frozen install, standalone build and upstream 1219/1219 tests PASS; audit 0 Moderate/High/Critical; Account jobs skipped. [Evidence](P05-SEC-02-A01.md) |
Rules: Append new phases or fixes; never silently rewrite a past result. Separate **implemented**, **verified**, **blocked**, and **proposed**. Never log a user secret or personal data.
+1 -1
View File
@@ -10,7 +10,7 @@
| [P05-CI-03.md](P05-CI-03.md) | Backend-only pre-change scope, disposable CI run evidence and exact acceptance result | P05-CI-03 / Run #86 SUCCESS; acceptance complete |
| [P05-SEC-01.md](P05-SEC-01.md) | Pre-change security scope, remediation, exact advisory evidence, one CI run and closure | P05-SEC-01 / Run #87 completed, 2 Moderate open |
| [P05-SEC-02.md](P05-SEC-02.md) | Exact root chain, seven PNPM parent overrides, one focused Gitea CI and closure evidence | P05-SEC-02 / Run #88 security PASS, build blocked; parser post-run patch unverified |
| [P05-SEC-02-A01.md](P05-SEC-02-A01.md) | Single-run Login-only final frozen/build/unit/security acceptance, scope lock and evidence | P05-SEC-02-A01 / pending one focused Gitea run |
| [P05-SEC-02-A01.md](P05-SEC-02-A01.md) | Single-run Login-only final frozen/build/unit/security acceptance, scope lock and evidence | P05-SEC-02-A01 / Run #89 SUCCESS, accepted |
| [CHANGELOG.md](CHANGELOG.md) | Short append-only chronological phase log and links to detailed reports | DOCS-01 / active |
Update this manifest whenever any direct child file or directory changes. Use **actual source state**; a planned file must be labeled planned, not present.
+20 -2
View File
@@ -3,7 +3,7 @@
**Date:** 2026-11-22
**Approved Gitea main baseline:** `7655dbdcb48c49aab8f3bf97aab8f1867f129531`
**Previous tested SHA:** `66cfed5a8b6bd5845b229c9934695e307f9a0775`, Gitea [Run #88](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/88)
**Pre-change status:** APPROVED, SCOPE LOCKED, Gitea acceptance PENDING. This report was written **before any P05-SEC-02-A01 source edit**.
**Phase status:** ACCEPTED/PASS — one focused Gitea Run #89 completed SUCCESS. This pre-change plan was written before implementation; terminal evidence appears below.
## Approved exact scope
@@ -24,4 +24,22 @@
**FULL PASS** only if on the same tested SHA: exact seven-scoped override contract PASS; `pnpm install --frozen-lockfile` PASS; official Login Nx proto/client and standalone Next build PASS; upstream Login unit suite PASS with actual counts; Login live registry audit **0 Moderate/High/Critical**; Account jobs SKIPPED intentionally; CI run overall SUCCESS and no unrelated source changes. Without these, phase remains BLOCKED.
**CI evidence ledger:** PENDING the one authorized Gitea Actions run.
**CI evidence ledger:** COMPLETED in Gitea Run #89; see terminal evidence below.
## Terminal Gitea Run #89 — accepted 2026-11-22
**One focused run:** [Gitea Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89), manual `workflow_dispatch` with `login_only=true`, branch `main`, **tested exact source SHA `ff4c58ed861474061c8f045be3a9f0752caf6ca0`**. Started 2026-11-22 16:30:28 UTC and completed 16:34:54 UTC. Overall `status=completed`, `conclusion=success`. **One run only**; no repeat of earlier Account/backend suites.
| Job | Gitea ID | Final | Actual evidence |
| --- | ---: | --- | --- |
| Account build | #193 | **SKIPPED intentionally** | `login_only=true`; Account had separate Run #87 acceptance |
| Login frozen/install/build/units | #194 | **SUCCESS** | Existing corrected selector parser `ZITPLANE_EXACT_SEVEN_PARENT_OVERRIDES_PASS`; `ZITPLANE_GLOB_MINIMATCH_PATCHED_LOCK_CONTRACT_PASS`. Pinned `pnpm@10.30.3 install --frozen-lockfile` verified `Lockfile is up to date`, installed **1121** packages and emitted `ZITPLANE_SECURITY_LOGIN_FROZEN_INSTALL_PASS`. Original Nx proto/client/Login Next.js 16.4.6 standalone build and artifact check `ZITPLANE_SECURITY_LOGIN_BUILD_PASS`. Unmodified upstream Vitest **84/84 files and 1219/1219 unit tests PASS**, `ZITPLANE_SECURITY_LOGIN_UNIT_PASS` |
| Account production security | #195 | **SKIPPED intentionally** | `login_only=true`; Account production audit previously returned zero vulnerabilities in Run #87 |
| Login production security | #196 | **SUCCESS** | `pnpm audit --prod --audit-level high` gate PASS; live registry `No known vulnerabilities found`; `PNPM_ADVISORY_RECORDS=0`; metadata `info=0, low=0, moderate=0, high=0, critical=0`; `ZITPLANE_PNPM_ZERO_MODERATE_HIGH_CRITICAL_PASS` |
**Final verdict:** **P05-SEC-02-A01 ACCEPTED/PASS**. The source-only corrected CI contract from previous phase now runs successfully in a disposable Gitea runner. The two prior Moderate `glob` / `minimatch` advisories do not reproduce, and exact frozen dependency graph is compatible with the upstream Login production build and 1,219 unit cases. **This does not establish live authenticated OIDC browser callback, MFA, session/cookie production integration, Console human sign-in or production deployment**. Future dependency advisories remain possible; this is a point-in-time audit.
**Scope/security compliance:** Pre-run planning/documentation only (12 files), **zero CI/helper/application source edits** in A01, **zero dependency manifest/lockfile changes** and 0 secrets. Source inventory 734/734 tracked files, all five direct-folder manifests exact. Old unrelated untracked `AI_INSTRUCTIONS.md` left untouched. No local builds/tests/dev server/Docker. One Gitea cycle, no reruns. The final documentation-only closure commit is not the SHA that Run #89 tested.
**Next phase proposed:** `P05-OIDC-01` isolated real user/client **OIDC positive and negative end-to-end acceptance**, requiring separate explicit approval and disposable provisioning. Its scope must preserve protected auth logic, genuine ZITADEL challenge/PCKE/nonce/state semantics and safe resource cleanup; never call source-level metadata checks a completed user login.
+1 -1
View File
@@ -14,7 +14,7 @@ This is the **developer-focused implementation history**. `notes/CHANGELOG.md` i
| 2026-11-22 | P05-CI-03 | Dedicated manual backend-only CI acceptance, guarded disposable Compose, persistence/ready/JWKS probes and owned-state cleanup | **Gitea Run #86 SUCCESS** on `03fb589`; all steps PASS; `notes/P05-CI-03.md` |
| 2026-11-22 | P05-SEC-01 | Next.js/OTel minimal security manifests, reproducible locks, dedicated CI and strict Moderate+ gates | Run #87: Account/Login build PASS, Login Vitest 1219/1219, Account audit 0, Login 2 Moderate open; `notes/P05-SEC-01.md` |
| 2026-11-22 | P05-SEC-02 | Seven parent-targeted glob/minimatch patched resolutions, PNPM lockfile metadata-only, manual Login-only CI and post-run validator fix | Run #88: strict Login audit 0 findings PASS, Login build job blocked before install by parser false-positive; post-run fix untested. `notes/P05-SEC-02.md` |
| 2026-11-22 | P05-SEC-02-A01 | Re-accept already corrected CI-only contract with frozen pnpm, official Login build/units and strict registry audit; no new application code | Plan: `notes/P05-SEC-02-A01.md`; one focused Gitea run pending |
| 2026-11-22 | P05-SEC-02-A01 | Verify existing corrected helper, exact seven PNPM scoped overrides, frozen Login Nx build and upstream Vitest; no source/lock changes | **Gitea Run #89 SUCCESS** on `ff4c58e`, 84/84 files, 1219/1219 tests, Login audit 0 Moderate/High/Critical; `notes/P05-SEC-02-A01.md` |
## Required entry for each future change
+7
View File
@@ -117,3 +117,10 @@ Gitea Run #88 source `66cfed5`, exact tree `9a1d2abd`, intentionally skipped Acc
Run #88 (`66cfed5`) proved strict Login production vulnerability audit 0 but *did not execute* frozen PNPM install, Nx standalone build or Vitest: new CI-only `overridden()` parser previously misread `axios@>=` etc. Corrected suffix-only `>glob`/`>minimatch` version is already committed at baseline `7655dbd`; no further source/CI changes are planned.
One manual `p05-security-acceptance.yml` dispatch with `login_only=true` tests this existing code; Account build/security jobs intentionally skipped and previously accepted (Run #87). Login job: exact seven parent→child contract, PNPM v10.30.3 frozen install, Nx original proto/client/Login standalone build and upstream Vitest; Login security job: fail-closed live registry zero Moderate/High/Critical. No local tests/build/Docker or production usage; exact CI job outcomes recorded under `notes/P05-SEC-02-A01.md`. If a gate fails, this acceptance remains BLOCKED and no unapproved repeat run occurs.
## P05-SEC-02-A01 terminal acceptance — Gitea Run #89
**One** manual Gitea [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89) tested SHA `ff4c58ed861474061c8f045be3a9f0752caf6ca0`, 2026-11-22 16:30:28–16:34:54 UTC, **overall SUCCESS**. `login_only=true` skipped Account build/security jobs #193/#195, previously accepted in Run #87. Login job #194 **SUCCESS**: corrected exact seven-parent override source contract/lock matched (`ZITPLANE_EXACT_SEVEN_PARENT_OVERRIDES_PASS`, `ZITPLANE_GLOB_MINIMATCH_PATCHED_LOCK_CONTRACT_PASS`), PNPM 10.30.3 frozen installation (`Lockfile is up to date`, 1121 packages) PASS, official Nx proto/client/Login 16.4.6 standalone build/artifact PASS, upstream Vitest **84/84 test files, 1219/1219 unit tests PASS**. Login security job #196 **SUCCESS**: fail-closed HIGH/CRITICAL gate PASS, production registry `pnpm audit --prod` **0 Moderate/High/Critical**, `ZITPLANE_PNPM_ZERO_MODERATE_HIGH_CRITICAL_PASS`.
No new CI/auth/application/manifest/lock changes in A01; all checks were against the existing corrected validator. This closes the dependency-security/frozen-build acceptance only, **not** human OIDC login/callback, real MFA or production integration. See `notes/P05-SEC-02-A01.md` for exact markers/timestamps.
+5
View File
@@ -82,3 +82,8 @@ The seven *semver-major transitive* substitutions require runtime compatibility
## P05-SEC-02-A01 — acceptance of existing scoped dependency resolution (pending)
This phase **does not modify** `auth/ui/v2/pnpm-workspace.yaml`, `pnpm-lock.yaml` or any manifest. The seven original P05-SEC-02 patch parent selectors remain pinned to `glob@14.0.6` and `minimatch@11.0.9` without global major overrides. Run #88 established **zero known Moderate/High/Critical** advisories from the live Login production audit; only compatible frozen install/build/upstream-unit confirmation was missing due a CI helper false-positive. Acceptance of this existing dependency graph requires a successful Gitea Login-only run on the corrected parser baseline or its pre-run docs commit, with actual frozen PNPM, official Next standalone build and Vitest results. An audit PASS by itself is not runtime E2E.
## P05-SEC-02-A01 definitive dependency-security acceptance — verified
[Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89) verified the patched seven parent-scoped `glob@14.0.6`/`minimatch@11.0.9` graph on tested SHA `ff4c58ed861474061c8f045be3a9f0752caf6ca0`: corrected selector/lock contract PASS, `pnpm@10.30.3 install --frozen-lockfile` PASS, official Login production standalone build PASS and upstream **1219/1219** unit regressions PASS. The independent production `pnpm audit --prod` registry report was **0 Moderate / 0 High / 0 Critical (also zero Low/Info)**. No package or PNPM lock revisions occurred in this acceptance phase. Previous two Moderate transitive advisories no longer reproduce at this point in time. **Accepted within CI dependency/build/unit scope only**; authenticated OIDC/MFA and production deployment separate.
+3
View File
@@ -76,3 +76,6 @@ These are **major** dependency migrations underneath older parents, not an upstr
**P05-SEC-02 actual acceptance boundary:** Run #88 `pnpm audit --prod` found **0 known Moderate/High/Critical advisories** for the 7 scoped patched parent resolutions. But new CI helper matching `>=` as parent override stopped Login frozen install before any app build/unit case ran. Post-run regex fix to recognize only `>glob` and `>minimatch` is **not CI-verified**. The dependency migration is not yet production-accepted. Do not run local app builds/tests or silently replace the pinned PNPM lock; use separately approved Login-only Gitea acceptance.
**Final A01 evidence:** Gitea Run #89 on `ff4c58e` verified exactly seven scoped patches and frozen PNPM 10.30.3 install (1121 packages), official Login proto/client/Next 16.4.6 standalone production build, upstream Vitest **84/84 files + 1219/1219 unit tests**, and zero live Moderate/High/Critical Login production advisory records. The Account and backend jobs were deliberately not rerun. This was CI-only, without local application dependency installation, local build/test or deployment. Product user authentication integration still requires separate live disposable OIDC acceptance.
+1 -1
View File
@@ -1,6 +1,6 @@
# Git-tracked source inventory ? exact paths
**Snapshot:** 2026-11-22, P05-SEC-02-A01 source/CI plan from baseline `7655dbd`. Gitea acceptance for corrected parser **pending**.
**Snapshot:** 2026-11-22, P05-SEC-02-A01 source accepted by **Gitea Run #89 SUCCESS** on `ff4c58ed861474061c8f045be3a9f0752caf6ca0`. Corrected validator, frozen Login build/1219 unit tests and zero Moderate/High/Critical audit PASS. Final docs-only follow-up commit does not change tested source.
**Git-tracked paths: 734.** Untracked `AI_INSTRUCTIONS.md` and ignored secrets excluded.
+3
View File
@@ -19,3 +19,6 @@ No real credentials or production domains are used. Never print bootstrap PATs,
- `transitive_override_contract.py` (P05-SEC-02) validates seven exact parent-scoped PNPM overrides, lock/importer consistency and absence of affected glob/minimatch versions. **Run #88 failed in this helper before pnpm frozen install** because its first regex also matched existing `>=` version-range override keys. Post-run regex restricted to `>glob`/`>minimatch` parent selectors, **not CI-tested**; next separately approved focused run required. The independent Run #88 live production advisory audit found 0 Moderate/High/Critical. Account jobs skipped as expected with `login_only=true`.
Add new CI checks and update `MINIFEST.md`, `project/`, `docs/`, and `notes/` in the same approved phase.
**P05-SEC-02-A01 final acceptance:** Existing corrected `transitive_override_contract.py` successfully executed in **Gitea Run #89** (exact seven parent selector and patched lock markers). Frozen PNPM install, Next Login standalone build, and Vitest 84/84 files/1219/1219 cases PASS. Separate production `security_advisory_gate.py` reports **0 Moderate/High/Critical**, no suppressed findings. Two Account jobs intentionally skipped using `login_only=true`. No local test run; no real authenticated OIDC session/production deployment.