docs: record P05 security run 87 and two moderate blockers

This commit is contained in:
Vib Tools committed 2026-11-22 06:16:57 -08:00
1 parent 752d243ae8
commit 43eee54e7a
18 files changed
+77 -16

No files matched your search

+2 -2
View File
@@ -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 Account/Login/Security baseline, Run #86 backend-only SUCCESS; P05-SEC-01 patched dependency workflow pending | Not deployed |
| Dependency Moderate security patch/acceptance | P05-SEC-01 manifest and lockfile candidates; strict independent CI gates | **NOT YET CI VERIFIED**: original 18 Login Moderate records and 1 Account package; glob/minimatch likely unresolved | Not deployed |
| 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 | Account/Login Next.js and OTel patched manifests/locks, strict CI acceptance | Run #87: Account 0, Login 2 Moderate (`glob`, `minimatch`), High/Critical 0; **security acceptance BLOCKED** | 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
@@ -10,7 +10,7 @@ Every file listed below is a direct child of `docs/`. Add/remove rows whenever t
| [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 / run #83 done; Docker acceptance blocked |
| [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 / awaiting Gitea CI |
| [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 |
| [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
@@ -2,7 +2,7 @@
**Date:** 2026-11-22
**Approved baseline:** `1a602551ad9a791efcc594834f2fa6ce748339ae`
**State:** Source patch prepared; one focused Gitea security CI cycle pending.
**State:** **Run #87 complete: 3 PASS / 1 FAIL.** Account/ Login builds and Account audit PASS; Login audit correctly FAILS on 2 remaining Moderate transitive advisories.
## Scope and goals
@@ -41,4 +41,4 @@ Separate build and audit jobs preserve useful evidence even if remaining advisor
**Security acceptance requires both dependency audits at zero Moderate/High/Critical, frozen installs and application builds/tests PASS**, with exact evidence and no out-of-scope changes. A nonzero Moderate finding is explicitly a **BLOCKED** gate even when build jobs PASS.
**PENDING REAL CI:** run ID, SHA, individual job results, current vulnerabilities and follow-up needed. Full authenticated OIDC callback, MFA, Admin Console login, global SSO and production deployment are outside this phase. See `notes/P05-SEC-01.md` for pre-change plan/closure log.
**ACTUAL CI:** [Gitea Run #87](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/87), tested `752d243ae8fb24ce3cfa990343082e2d0431306b`, **overall FAILURE — 3 PASS / 1 FAIL**. Account frozen install, TypeScript, Next.js production build and negative identity regressions PASS. Login pinned pnpm frozen install, original proto/client/Login production build and **84/84 files, 1219/1219 upstream unit tests PASS**. Account npm audit **zero vulnerabilities**. Login pnpm audit **zero High/Critical** but **2 Moderate**: `GHSA-3g3m-2fjr-6pw4` (`glob`, patched >=14.0.2) and `GHSA-g3hv-75wg-m249` (`minimatch`, patched >=11.0.1). Strict Moderate+ gate correctly failed. Previous 19 findings reduced to **2** (17 no longer reported). **Security phase is PARTIALLY REMEDIATED / ACCEPTANCE BLOCKED**, not a production release. Full authenticated OIDC callback, MFA, Admin Console login, global SSO and deployment remain outside scope. See `notes/P05-SEC-01.md` for exact job evidence and proposed narrow follow-up.
+1 -1
View File
@@ -57,7 +57,7 @@ Implement one explicitly approved phase at a time. Keep out-of-scope files, exis
- Baseline `1a602551ad9a791efcc594834f2fa6ce748339ae`. Previous Run #83 security: 18 Moderate Login advisory records and 1 Moderate Account vulnerable Next.js package; Run #86 backend-only SUCCESS.
- Narrow approved manifest writes: `users/ui/{package.json,package-lock.json}`, `auth/ui/v2/apps/login/package.json`, root `auth/ui/v2/{package.json,pnpm-lock.yaml}` only if justified; new `.gitea/workflows/p05-security-acceptance.yml`, focused `tests/ci/**`, notes/project/docs and associated README/MINIFEST. **`pnpm-workspace.yaml`, application source, Go backend, developer Compose, production and unrelated files remain read-only.**
- Direct Next.js pinned 16.4.6; Login coordinated OTel auto-instrumentation 0.80.0 / SDK 0.222.0 family, PNPM/npm metadata-only lockfile reconciliation. Root overrides are read-only, so glob14/minimatch11 major transitive remediation remains an explicit blocker if registry audit reproduces it.
- Dedicated manual Gitea CI: independent Account/Login frozen installs and builds/regressions, plus separate fail-closed HIGH+ gates and **zero Moderate/High/Critical** gates. Exactly one run, accurate unresolved audit evidence; no local app build/test/dev server or production deployment. Details: `notes/P05-SEC-01.md`, `docs/P05-SEC-01.md`.
- **Gitea Run #87**, tested SHA `752d243ae8fb24ce3cfa990343082e2d0431306b`: 3 job PASS (Account npm frozen typecheck/build/anonymous regressions, Login pnpm frozen Nx build + 1219/1219 unit tests, Account security 0), Login security FAIL on 2 Moderate transitive advisories (`glob` and `minimatch`), High/Critical 0. Prior 19 reported records reduced to 2; **full security acceptance BLOCKED**. Only one CI run, no local app build/test/dev server, no backend/production change. Exact result: `notes/P05-SEC-01.md`, `docs/P05-SEC-01.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.
+1 -1
View File
@@ -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 dependency security patches and remaining audit blockers 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 #87 security patch evidence and its two remaining Moderate advisory blockers 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
@@ -81,3 +81,6 @@ In Gitea `vibtools/ZitPlane` → **Actions** → **ZitPlane P05-CI-03 Backend Ac
## P05-SEC-01 security acceptance on Gitea (manual only)
On Gitea `vibtools/ZitPlane` open Actions → `ZitPlane P05-SEC-01 Dependency Security Acceptance` → Run workflow on `main` **after** the approved source commit is pushed. Jobs use fresh CI runner containers, immutable committed npm/pnpm locks, and no production identity credentials. Account/official Login V2 reproducible builds and unit/negative regressions run separately from Account and Login registry audits. Audits fail if there is **any** Moderate, High or Critical finding; the script prints exact advisory IDs so an outstanding transitive dependency can be fixed in another explicit Scope Lock. The P02 developer Compose, local Windows PC and production Coolify are not modified. See `docs/P05-SEC-01.md` and `project/DEPENDENCY-SECURITY.md`.
**P05-SEC-01 actual evidence:** [Run #87](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/87) verified Account/Login frozen dependency installs, production builds and **1219/1219** Login unit tests; the Account security audit is clean. However Login `glob` and `minimatch` each still have one Moderate advisory, and the strict security job correctly **failed**. Production usage and package-security acceptance remain blocked until separate transitive-remediation approval and CI. No local application tests or deployment.
+5
View File
@@ -30,3 +30,8 @@ Include environment (local disposable vs CI vs production), exact phase/commit,
## Known limitations
Account Portal and Login V2 build CI passed in Run #83, disposable backend acceptance passed in Run #86, and dependency lockfiles/workflows exist. **Real authenticated OIDC callback/positive session, MFA/passkey, Admin Console human login, production Coolify/TLS/backup and production support remain UNVERIFIED.** Preserve the Scope Lock in `notes/` and ZITADEL security boundaries.
## P05-SEC-01 exact security-blocker troubleshooting
Gitea Run #87 produced 3 PASS and 1 FAIL. The FAILED `security_login` job is a **deliberate fail-closed Moderate threshold**: `GHSA-3g3m-2fjr-6pw4` in `glob` (fix >=14.0.2) and `GHSA-g3hv-75wg-m249` in `minimatch` (fix >=11.0.1). Account npm audit returned 0. Login's earlier Next.js/OTel advisories no longer reproduce, its frozen build and 1219 tests PASS, and High/Critical remain 0. Do not turn off auditing, ignore Moderate reports, modify protected auth code or force incompatible package majors. A separate P05-SEC-02 exact Scope Lock must allow controlled PNPM workspace overrides or verified compatible parent upgrades; only a new focused CI run can close security acceptance.