ci: record P05 run 83 and isolate disposable proxy from host ports
This commit is contained in:
1 parent
c27fe3d323
commit
4857558005
20 files changed
+139
-44
No files matched your search
@@ -10,7 +10,7 @@ This is the **developer-focused implementation history**. `notes/CHANGELOG.md` i
|
||||
| 2026-11-22 | P04 | `users/ui/` Account Portal OIDC, pages, styling, read-only identity API | `40af500`; `docs/P04-ACCOUNT-PORTAL.md`; no build/CI |
|
||||
| 2026-11-22 | DOCS-01 | Documentation governance; developer architecture, reviewed first-party function/file/page mapping and 701-path source inventory; user manual/setup/status/troubleshooting | Documentation complete; manifest/link/source-scope audit PASS; `notes/DOCS-01.md`, local commit SHA via Git history |
|
||||
| 2026-11-22 | P05-CI-01 | `.gitea/workflows/p05-ci.yml`, `tests/ci/**`, Account npm lock, Login pnpm importer reconciliation and in-scope Alpine Git checkout correction | Run #81 overall FAIL; 2 jobs PASS, 2 FAIL; Login 1219/1219 tests PASS, Account TS2345 and Docker checkout blocked; `notes/P05-CI-01.md` |
|
||||
| 2026-11-22 | P05-CI-02 | Type-safe Auth.js subject narrowing; Gitea CI negative API/OIDC tests, Postgres restart persistence and Moderate advisory detail inventory | CI result pending; `notes/P05-CI-02.md`, `docs/P05-CI-02.md` |
|
||||
| 2026-11-22 | P05-CI-02 | Type-safe Auth.js subject narrowing, Account anonymous negative tests, Login regression, structured advisory triage and CI-only portless Docker override | Run #83: 3 PASS/1 FAIL; Docker proxy 8080 collision, cleanup PASS, portless fix unverified; see `notes/P05-CI-02.md` |
|
||||
|
||||
## Required entry for each future change
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# ZitPlane P05-CI-01 - Gitea Actions verification architecture
|
||||
|
||||
**Status:** source implemented; Gitea Run #81 completed overall FAILURE (Login and high/critical security jobs PASS; Account and backend checkout FAIL). Follow-up acceptance pending. **Approved baseline:** `7ecf53169776cc7f08af3dde6fe4b4492acf3ea1` (2026-11-22).
|
||||
**Status:** P05-CI-01 Run #81 overall FAIL; P05-CI-02 Run #83 **3 PASS / 1 FAIL** (Account, Login, Security pass; backend proxy host-port collision). CI-only portless source correction after Run #83 remains unverified. Full OIDC and runtime acceptance pending. **Approved baseline:** `7ecf53169776cc7f08af3dde6fe4b4492acf3ea1` (2026-11-22).
|
||||
|
||||
## Exact job map
|
||||
|
||||
@@ -51,3 +51,12 @@ Reference: `notes/P05-CI-01.md`, `docs/PHASES.md`, `.gitea/workflows/p05-ci.yml`
|
||||
Initial dispatched commit `42b79362c13b9dbb07f85a58ad278742d91b1f5b`. Two PASS: Login V2 frozen reproducible install, production build and 1219/1219 upstream unit tests; dependency advisory gate at high/critical only (18 moderate findings outstanding). Two FAIL: Account Portal TS2345 Auth.js session callback type mismatch; Alpine backend actions/checkout fallback `Not found` because Git missing before checkout. The Docker runtime and full interactive OIDC flow **were not executed**.
|
||||
|
||||
Pre-checkout Git install inserted in the backend workflow after this failed run; this is only a **source fix** until a future run actually passes. Reference `docs/P05-CI-01.md` for job numbers and `notes/P05-CI-01.md` for the next phase defect IDs. There was no second CI run or local test.
|
||||
|
||||
|
||||
## P05-CI-02 Run #83 final evidence and post-run portless exception
|
||||
|
||||
Gitea [Run #83](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/83) on SHA `c27fe3d3234d16375b962b88014cdd8733ab2fb4`: three job PASS (Account `npm ci`/typecheck/build/anonymous 401 and protected redirect; Login V2 frozen/Nx build + **1219 tests**; HIGH/CRITICAL security audit with 18 Moderate Login records and 1 Moderate Account package); Docker job FAIL after Postgres, ZITADEL API and prebuilt Login V2 reported healthy. Traefik proxy attempted to bind occupied runner TCP 8080. Always cleanup removed only job-owned containers, network and volumes; persistence and OIDC discovery were not reached.
|
||||
|
||||
**Only after that run**, a P05-scoped CI overlay at `tests/ci/compose.portless.override.yaml` set `proxy.ports: !reset []`, as documented by Docker Compose: https://docs.docker.com/reference/compose-file/merge/#reset-value. Every backend workflow Compose call now includes this override; a fail-closed effective-config probe rejects any inherited host port. The P02 Compose and application logic remain untouched. **Post-run override has not been CI tested.** New exact Gitea main commit is documentation/source only and must not be described as the tested Run #83 SHA.
|
||||
|
||||
Unresolved: one separately approved isolated backend re-verification cycle for the portless override, Postgres restart persistence and live OIDC/JWKS; distinct disposable authenticated OIDC/client/user + MFA E2E; targeted dependency-only security remediation of Moderate findings (no upgrades in P05-CI-02).
|
||||
+2
-1
@@ -101,7 +101,8 @@ These paths describe **source**, not a verified running app. Do not infer API co
|
||||
| Path | Verified narrow function |
|
||||
| --- | --- |
|
||||
| `users/ui/src/auth.ts` | `callbacks.session` optional JWT subject type narrowing; no change to provider, policy or PKCE/state/nonce |
|
||||
| `.gitea/workflows/p05-ci.yml` | CI-only Account negative smoke, Postgres restart persistence, registry advisory JSON collection and cleanup status |
|
||||
| `.gitea/workflows/p05-ci.yml` | CI-only Account negative smoke, Postgres restart persistence, registry advisory JSON collection, portless Compose config and cleanup status |
|
||||
| `tests/ci/compose.portless.override.yaml` | Post-run CI-only removal of inherited developer Traefik host port 8080; unverified until next CI run |
|
||||
| `tests/ci/account_negative.py` | Anonymous API 401 and protected route redirect CI probe |
|
||||
| `tests/ci/advisory_triage.py` | Nonmutating npm/pnpm vulnerability inventory with IDs and patch availability |
|
||||
| `tests/ci/oidc_discovery.py` | Read-only disposable issuer/JWKS negative validation and live metadata smoke |
|
||||
|
||||
@@ -42,3 +42,10 @@ The P03 upstream `pnpm-lock.yaml` contained 8 importer metadata records but the
|
||||
## Pending checks before any release
|
||||
|
||||
Version security review, reproducible installs, TypeScript/typecheck, Next.js build, OIDC state/PKCE, callback, token expiry, local vs global logout, self-service access, routing, secrets handling, production TLS, backup/restore, monitoring, and isolated Gitea CI verification. No current public deployment exists per recorded phase evidence.
|
||||
|
||||
|
||||
## P05-CI-02 current checked results (2026-11-22)
|
||||
|
||||
Gitea Run #83 proved Account Portal TypeScript and Next.js production build, anonymous identity API 401/no-store and protected route redirect. Login V2 frozen build/standalone and upstream unit tests 1219/1219 passed. Dependency audits exposed 1 Moderate Account `next` vulnerable package (npm recommends Next.js 16.4.6) and 18 Moderate Login workspace records (seven Next.js GHSA IDs, eight OpenTelemetry driver instrumentation records, one OpenTelemetry HTTP, `glob`, `minimatch`). No dependency package/lock versions were changed.
|
||||
|
||||
The runner's published TCP 8080 was already in use, so P02's local-only Traefik mapping prevented the CI proxy from starting even though PostgreSQL, ZITADEL API and Login V2 became healthy. A **CI-only** two-file Compose merge uses `tests/ci/compose.portless.override.yaml` to clear `proxy.ports`; config asserts that no host ports will be published. This was added after Run #83 and remains **unverified**. Live DB restart/data persistence and discovery checks have not passed. No production secrets or volumes were accessed.
|
||||
+16
-15
@@ -1,25 +1,25 @@
|
||||
# Source inventory ? all Git-tracked paths
|
||||
|
||||
**Snapshot:** 2026-11-22, P05-CI-02 staged source on baseline `42adaba`; before final CI acceptance.
|
||||
**Snapshot:** 2026-11-22, P05-CI-02 post-Run #83 documentation and CI-only portless correction based on tested `c27fe3d`. This source change has not been retested.
|
||||
|
||||
**Exact tracked file paths: 718.** This is a locator and does not assert every upstream file/function was independently audited or tested. Untracked `AI_INSTRUCTIONS.md` and ignored secrets are excluded.
|
||||
**Tracked paths: 719.** Exact Git-index path list; untracked `AI_INSTRUCTIONS.md` and ignored secrets excluded. Source existence does not prove runtime acceptance.
|
||||
|
||||
| Top-level group | Files | Ownership |
|
||||
| --- | ---: | --- |
|
||||
| `(repository root)` | 6 | Git-tracked content |
|
||||
| `.gitea` | 5 | Gitea manual CI files |
|
||||
| `auth` | 639 | Original Login V2 upstream imports |
|
||||
| `core` | 2 | ZITADEL backend orchestration |
|
||||
| `(repository root)` | 6 | Repository root |
|
||||
| `.gitea` | 5 | Gitea manual CI workflows |
|
||||
| `auth` | 639 | Upstream Login V2 import |
|
||||
| `core` | 2 | Backend config/helper |
|
||||
| `deployment` | 2 | Dev-only Docker Compose |
|
||||
| `docs` | 14 | Operator/user guides and CI evidence |
|
||||
| `notes` | 6 | Pre-change plans and phase logs |
|
||||
| `packages` | 1 | Shared package placeholder |
|
||||
| `project` | 10 | Developer architecture and source map |
|
||||
| `scripts` | 1 | Script placeholder |
|
||||
| `tests` | 8 | Backend and CI scripts |
|
||||
| `users` | 24 | Account Portal and Auth.js |
|
||||
| `docs` | 14 | User/operator docs |
|
||||
| `notes` | 6 | Phase scope and evidence |
|
||||
| `packages` | 1 | Shared packages placeholder |
|
||||
| `project` | 10 | Developer source map |
|
||||
| `scripts` | 1 | Scripts placeholder |
|
||||
| `tests` | 9 | CI verification scripts |
|
||||
| `users` | 24 | Account Portal |
|
||||
|
||||
## Exact Git-tracked paths
|
||||
## Exact tracked paths
|
||||
|
||||
### (repository root) ? 6 files
|
||||
|
||||
@@ -737,13 +737,14 @@
|
||||
|
||||
- `scripts/README.md`
|
||||
|
||||
### tests ? 8 files
|
||||
### tests ? 9 files
|
||||
|
||||
- `tests/README.md`
|
||||
- `tests/ci/MINIFEST.md`
|
||||
- `tests/ci/README.md`
|
||||
- `tests/ci/account_negative.py`
|
||||
- `tests/ci/advisory_triage.py`
|
||||
- `tests/ci/compose.portless.override.yaml`
|
||||
- `tests/ci/oidc_discovery.py`
|
||||
- `tests/ci/source_contract.py`
|
||||
- `tests/test_backend_dev.py`
|
||||
|
||||
Reference in new issue
Block a user