docs(oidc): synchronize Run 106 OCI env gate failure in project and operator documentation

This commit is contained in:
victorsteele428 committed 2026-11-23 17:49:36 +00:00
1 parent 9dc2aa4b27
commit fa5917f184
9 files changed
+43

No files matched your search

+6
View File
@@ -216,3 +216,9 @@ The unchanged **manual-only** `.gitea/workflows/p05-production-contract-dry-run.
## P05-OIDC-09 — CI evidence versus unreleased production artifact boundary
Read-only reviewed accepted [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) job #221, source `daaa8b259a519ae0290ba28936ef2279b3a9172c`: `COMPLETED SUCCESS` **static** nondeliverable Compose `config --quiet`, normalized security policy and 48/48 negative fixture checks, manual-only resource-action safety, cleanup of owned runner job resources. There is no signed registry image, live issuer or Console/MFA/SSO proof from that workflow. Independent [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) source-built **temporary** custom Login image/Chromium OIDC and cleanup accepted; no image was retained as a production artifact. Historical [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89) accepted Login frozen PNPM/build/1219 units/then-current zero Moderate+ registry advisories; Account [Run #87](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/87) frozen npm build/security accepted. Fresh pre-release risk/advisory/SBOM/signature checks remain **BLOCKED**. Current six `.gitea/workflows/*.yml` are CI-specific; no signed/published production release workflow evidenced. Next individually approvable `P05-OIDC-10` is a **new separate CI-only** Login image provenance gate, not a replacement/rerun of accepted workflows. No new CI dispatched in P05-OIDC-09. Operator failure/rollback thresholds in `notes/P05-OIDC-09.md`.
## P05-OIDC-10 — single-run CI imported Login OCI provenance gate, partial evidence
New `.gitea/workflows/p05-login-provenance.yml` is **manual-only** with a pinned `node:24-alpine@sha256:116b800c…` task container, read-only SHA-pinned checkout, targeted `tests/ci/login_image/provenance.py` source/security and 12 mutation-negative assertions, opt-in existing `build.sh` for pinned Node22 Bookworm builder `sha256:e13726ca…` and temporary pinned Node24 Alpine runtime Dockerfile, an isolated no-network entrypoint probe and unchanged always `cleanup.sh`. Original Run #99 custom Login OIDC workflow, Run #105 static contract workflow, imported `auth/**` and dev Compose untouched.
Exactly one [Gitea Run #106](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/106) Job #222 `COMPLETED FAILURE`, tested SHA `6ba004808ef47c8856c1a7906faaf7ee807d15a6`. Toolchain/checkout and 12/12 negatives PASS, Git immutable source tree and lock PASS, 1121 packages frozen root PNPM10.30.3 install and Next16.4.6 standalone/proto/client build PASS; nested Login package invokes its own hash-qualified PNPM10.28.2. Temporary 644→755 entrypoint PASS, pinned runtime OCI image `sha256:9ddaccf7f6e60e6d72d580de6b285df697d1404cc8f48e5d2719953a4ea69078` built and no-network executable probe PASS, builder linux/amd64 index PASS. `ZITPLANE_P10_FAIL_CLOSED_IMAGE_SECRET_ENV_KEY` **FAIL** before final source-to-image material SPDX-lite/unsigned attestation, so those files **NOT EXECUTED/EMITTED**. Env key unknown; plain regex `PAT` may match ordinary `PATH`, unverified hypothesis. `always()` run-owned builder/image/context cleanup PASS; Gitea runner-owned job container/two volumes/network removed. No CI rerun/post-run source edit. No registry publish/release/live services. Full gate **BLOCKED** pending separately approved P05-OIDC-10-A01 provenance.py-only safe key-boundary RCA.
+4
View File
@@ -95,3 +95,7 @@ Historical [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89) repo
## P05-OIDC-09 — historical advisories versus current release provenance (read-only)
[Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89) on the approved Login source graph verified pinned `pnpm@10.30.3` frozen install, 1219 upstream unit cases and at-that-time **zero Moderate/High/Critical production audit**. Account [Run #87](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/87) verified frozen npm build and then-current Account audit. `users/ui/package-lock.json` now **exists** in tracked repository. These results are **CI VERIFIED historical**, not proof of today/future third-party advisory status, actual production OCI image base/package CVEs or signed/SBOM provenance. Login Dockerfile `FROM node:24-alpine` and CI temporary builder `node:22-bookworm` are tag-based and not proven immutable; dev backend Go/Postgres/Traefik likewise reference tags. The custom Login Run #99 image was erased and not published as a digest. Release gates: immutable pinned OCI bases/dependencies, fresh reproducible source-to-image proof, package/container SCA at release, SBOM for each component, cryptographic signature and verification at deployment, retained roll-back digest; registry publish only by separate approval, no production keys in build. **P05-OIDC-09 changed no manifest, lockfile or runtime source, ran no CI.** Next recommended separate `P05-OIDC-10` Login OCI CI-only provenance gate. Full exact Scope Locks `notes/P05-OIDC-09.md`.
## P05-OIDC-10 — provenance image build results and residual release blockers
[Run #106](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/106) source `6ba004808ef47c8856c1a7906faaf7ee807d15a6` confirmed imported source-tree and `pnpm-lock.yaml` blob hash integrity, pinned Node22 Bookworm builder/Node24 Alpine runtime index use, root PNPM10.30.3 frozen 1121 packages, Nx/Next16.4.6 standalone PASS, but nested Login package invokes hash-qualified PNPM10.28.2. Those are **historical CI source pins**, not a fresh global CVE scan or claim of exact bit-reproducible OCI output across independent builds. The temporary OCI image ID `sha256:9ddaccf7f6e60e6d72d580de6b285df697d1404cc8f48e5d2719953a4ea69078` and nonroot entrypoint probe PASS, yet final env key scan `IMAGE_SECRET_ENV_KEY` FAIL before unsigned partial SPDX/material provenance generation, so **full P10 acceptance blocked**. Actual key unknown; regex PAT vs PATH a hypothesis. Future genuine complete dependency+OS SBOM, BuildKit signed/cryptographically verified SLSA provenance, updated SCA, repeat-build determinism and immutable registry release are still independently unverified even if next A01 passes. No signing keys, registry push, production or DNS.
+9
View File
@@ -257,3 +257,12 @@ Run #101 source `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a`: Compose parse PASS,
- Undeployable contract: `deployment/production-contract/{compose.ci.yaml,routing-policy.json}`, `tests/ci/production_contract/validate.py`, unchanged `.gitea/workflows/p05-production-contract-dry-run.yml`; [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) static 48/48 negative cases only.
- **New documentation-only** `notes/P05-OIDC-09.md` (scope-first release blockers/phases) and `docs/P05-OIDC-09.md` (operator checklist). No other application/CI/deployment source modified.
- Exact 13 proposed narrow phase Scope Locks for OCI provenance, Account packaging, backend pin, signing, vault/recovery, backup, private runtime, HTTPS proxy, Console, live OIDC, MFA, second SaaS SSO and final release in `notes/P05-OIDC-09.md`.
## P05-OIDC-10 — exact CI-only source paths and acceptance boundary
- **NEW** `tests/ci/login_image/provenance-lock.json`: source-tree+file blob pins, upstream v4.20.4 revision claim and Node22-bookworm/Node24-alpine linux/amd64 OCI index digests.
- **NEW** `tests/ci/login_image/provenance.py`: safe git source/lock, OCI configuration labels, nonroot, secret-env key validation, 12 in-memory negatives, planned partial material SPDX/unsigned local provenance files.
- **NARROW existing** `tests/ci/login_image/build.sh`: `ZITPLANE_PROVENANCE_CI=1` opt-in for pinned builder and temporary Dockerfile `FROM @sha256` and extra labels; default Run #99 mode preserved.
- **NEW** `.gitea/workflows/p05-login-provenance.yml`: manual-only dedicated CI for pinned source/build, no registry or production, always unchanged run-owned cleanup.
- **NEW docs** `notes/P05-OIDC-10.md` pre-source Scope Lock+Run #106 ledger, `docs/P05-OIDC-10.md` operator report, relevant developer/README/MINIFEST/inventory updates. Source-tested `6ba004808ef47c8856c1a7906faaf7ee807d15a6`; no protected `auth/**`/`users/**`/`core/**`/`deployment/**` or pre-existing CI/workflow/lock edits.
- **Run #106** [terminal failure](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/106): pinned image build/12 negatives PASS; environment key guard FAIL, actual key unknown; partial SPDX/attestation not written; cleanup PASS. P05-OIDC-10-A01 must modify only provenance.py if separately approved.
+6
View File
@@ -197,3 +197,9 @@ Actual [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) confir
**Only source changed**: `tests/ci/production_contract/validate.py`, tested `daaa8b259a519ae0290ba28936ef2279b3a9172c`. `secret_target_class(source,target)` classifies known same-name vs exact `/run/secrets/<source>` mounts; `safe_root_owner()` requires root 0 and `safe_readonly_mode()` permits exact 0444 default (decimal 292) if metadata supplied. `diagnose_normalized_service_grants()` prints only known service names, item indices and fixed `OBJECT`/`TARGET_CANONICAL_MOUNT`/`SOURCE_EXPECTED`/permissions safety classes, not values. `service_secret_refs()` now rejects unknown fields, wrong target, unsafe UID/GID/mode, duplicates and sources outside the six-symbolic-secret registry; `validate_compose()` compares **exact per-service count and source set**, not normalizer-dependent ordering. `negative_cases()` preserves 25 original, 4 runtime, 3 replica and 8 deploy malformed cases; adds **8 secret-grant negative cases** for missing, duplicated, extra known from wrong service, unknown source, wrong target, unexpected metadata, unsafe UID and world-writable mode, plus a canonical-target positive case. Exact expected error class is mandatory.
**All checks executed and PASS in [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105)**: 48/48 negatives, full static positive and manual-only safety. Input raw JSON/env/secret strings never logged by new diagnostics. No source changes to production/login/Account/backend/workflow/Compose, and actual public HTTPS, secret custody/DB recovery, Console/MFA/SSO or deployment remain NOT TESTED.
## P05-OIDC-10 — imported OCI provenance helpers (CI-only)
`tests/ci/login_image/provenance.py` new stdlib functions `validate_lock`, `verify_source` (exact tracked `HEAD:auth/ui/v2` Git tree/source Dockerfile/entrypoint/PNPM lock), `pin_dockerfile` (only run-owned temporary Dockerfile FROM replacement), `expected_labels`, `validate_image` (image ID, linux/amd64, USER nextjs, exact entrypoint, source/base labels and allowed env keys), `verify_builder` (OCI base index/arch), `negative_cases` (6 lock tampering + 6 bad OCI image configurations) and `write_material_attestations` (partial source/base SPD​X metadata+unsigned JSON in temporary run context). `tests/ci/login_image/build.sh` default original Run #99 behavior remains; new `ZITPLANE_PROVENANCE_CI=1` source-verified pinned builder/runtime and `--verify-image` opt-in. No real secret values printed.
[Run #106](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/106) source `6ba004808ef47c8856c1a7906faaf7ee807d15a6`: `verify_source`, `negative_cases` 12/12, temporary `pin_dockerfile`, entrypoint fix, pinned image packaging and `verify_builder` **PASS**; `validate_image` **FAIL** at `IMAGE_SECRET_ENV_KEY`, before `write_material_attestations`. Its current unanchored `PAT` substring regex can also match `PATH`; actual offending key **UNKNOWN**. No attestation files. Next independent P05-OIDC-10-A01: ONLY this validator source to add value-free fixed key classification, retain secret rejection with token boundaries, plus PATH/true-PAT focused negatives; no other source edits.
+4
View File
@@ -135,3 +135,7 @@ A03 retains **the exact existing manual workflow**: a temporary Gitea Node Alpin
## P05-OIDC-09 — actual installed-source prerequisites versus production release blockers
The read-only source inventory verifies tracked Account npm **package-lock.json** (the older P04 discussion that Account lacks a lockfile predates P05 dependency remediation), `next@16.4.6`, `next-auth@5.0.0-beta.32` and locked Login `pnpm@10.30.3` at the root imported workspace. The nested Login package declares PNPM `10.28.2`; CI uses `10.30.3`, which was accepted at its historical source and must be reconciled as part of release provenance. Imported Login original Dockerfile `node:24-alpine` and temporary builder `node:22-bookworm` are mutable image **tags**; official ZITADEL Go `v4.20.4`, Postgres `17.10-alpine` and Traefik `v3.7.7` are version tags in dev Compose, NOT a vetted immutable production digest set. Historical Run #89 Login frozen build/audit and Run #99 disposable actual image/browse PASS, and Run #105 synthetic static contract 48/48 PASS, do **not** replace current per-artifact pinned OCI digest, SBOM, verified signature, vulnerability review, production secret/DB recovery or TLS proof. P05-OIDC-09 performs **no install, build, test, DNS query or deployment**, only source/docs verification. Future `P05-OIDC-10` CI-only provenance gate is a separate authorization, `notes/P05-OIDC-09.md`.
## P05-OIDC-10 — pinned import build inputs and terminal CI-only outcome
Public Docker Hub `node:22-bookworm` OCI index `sha256:e13726ca604184d7a91fcacab1fc09eefd642dc28e79ac34e85540dd93b78cfb` and `node:24-alpine` `sha256:116b800c3754b440ee0aa3ed2f20f5bf3d99a554bfd9adeea09ea8017f6e85f5` are pinned in `tests/ci/login_image/provenance-lock.json`; disposable Gitea CI pulled/used immutable references. Source `auth/ui/v2` Git tree `76683086acb5d4ccf3b2094f894e19a8aa0fafa9` and frozen lock blob verified. [Run #106](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/106) source `6ba004808ef47c8856c1a7906faaf7ee807d15a6`: 4 PNPM workspace projects, 1121 locked packages, root PNPM `10.30.3` and nested hash-qualified Login `10.28.2` noted (different toolchains), Nx/proto/client/Login standalone build PASS and local OCI entrypoint/image PASS. Builder emits legacy `docker build` deprecation warning; actual production BuildKit/SBOM/signing still unverified. Security gate `IMAGE_SECRET_ENV_KEY` FAIL, preventing material manifest and final provenance acceptance; cleanup PASS. Images temporary, no registry publish, no production secret/endpoint. Next separately approved one-file A01; no local application test.