docs(oidc): record queued A01 Run 108 and strict env-key source behavior across project and operator docs
This commit is contained in:
1 parent
34fab24043
commit
6f811e81b1
9 files changed
+36
No files matched your search
@@ -222,3 +222,9 @@ Read-only reviewed accepted [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/act
|
||||
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.
|
||||
|
||||
## P05-OIDC-10-A01 — validator-only env-key boundary, CI dispatch queued
|
||||
|
||||
Scope-first `notes/P05-OIDC-10-A01.md` commit `46e2897380b736b970a0b1de15a161c3600abcb6` and immutable tested source `4452a61b0f5a0892399060fd7569231a564bce02`. Source change ONLY `tests/ci/login_image/provenance.py`; `.gitea/workflows/p05-login-provenance.yml`, builder `build.sh`, `cleanup.sh`, OCI index lock, imported `auth/**` and existing Run #99/105 workflows unchanged. Old unanchored `PAT` matcher is proven by source logic to also match benign `PATH`; exact Run #106 rejected key was never logged and remains **UNKNOWN**. New `classify_oci_env_key()` recognizes whole underscore-separated credential segments, allowing only finite expected Node/OCI key names. New `diagnose_oci_image_env()` emits fixed allowlisted benign key names or generic sensitive/unknown/invalid/duplicate classes; no arbitrary keys, values or inspect JSON. Existing 12 + new 14 rejection fixtures and positive PATH fixture are present in source and not yet CI-executed.
|
||||
|
||||
One [Gitea Run #108](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/108) / Job #230 was dispatched on `4452a61b0f5a0892399060fd7569231a564bce02`, existing workflow **active** but run and job **QUEUED** at last read; job `started_at` unset, steps empty, no log; runner online/ubuntu-latest match/capacity/registration **UNKNOWN**, not assumed offline. **No successful/failing A01 job check yet**: immutable runtime build, 12+14 negatives, partial SPDX/unsigned provenance and cleanup are all NOT EXECUTED for Run #108. No new run/rerun/post-dispatch source patch. Proposed P05-OIDC-10-A02 read-only **existing Run #108 scheduling/terminal acceptance** requires separate approval. Prior [Run #106](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/106) local image build/cleanup and Run #99/105 historical acceptance remain separate.
|
||||
@@ -99,3 +99,7 @@ Historical [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89) repo
|
||||
## 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.
|
||||
|
||||
## P05-OIDC-10-A01 — OCI image ENV policy (proposed CI gate still QUEUED)
|
||||
|
||||
Source `4452a61b0f5a0892399060fd7569231a564bce02` replaces unsafe unanchored `PAT` key scan (which by code also matches standard harmless PATH) with strict token-segment credential detection and finite OCI key allowlisting in `tests/ci/login_image/provenance.py`. Unknown/duplicate/malformed keys, AUTH_SECRET, LOGIN_CLIENT_PAT, ZITADEL_MASTERKEY/SERVICE_USER_TOKEN, DB passwords, private/access keys fail closed; benign PATH positive and 14 new in-memory negatives defined, original 12 source/OCI negative fixtures retained. Diagnostic names are either preapproved safe keys or fixed security classes and never expose values or arbitrary input. **Actual image key in prior Run #106 still UNKNOWN**, not conclusively PATH. Existing pinned Node builder/runtime indexes, imported Git tree/PNPM lock, source build and partial unsigned material SPDX implementation unchanged. Exactly one [Run #108](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/108) queued without running the gate, package/OCI builds or cleanup; **no current A01 CI acceptance**. Full transitive/OS SBOM, cryptographic signatures, registry publishing and production runtime remain release blockers. Previous Run #106 build and Run #99/105 success are historical evidence only.
|
||||
@@ -266,3 +266,7 @@ Run #101 source `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a`: Compose parse PASS,
|
||||
- **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.
|
||||
|
||||
## P05-OIDC-10-A01 — exact immutable two-path source scope and queued CI
|
||||
|
||||
Baseline `195568a8be978304a686c826cdcbf0ab0d36c6a6` to CI source `4452a61b0f5a0892399060fd7569231a564bce02` changed ONLY `notes/P05-OIDC-10-A01.md` (committed FIRST) and `tests/ci/login_image/provenance.py`. The new validator adds exact benign env allowlist, strict sensitive segment matching, safe fixed-name diagnostics, 14 new env negatives/benign PATH positive while preserving original 12. **READ ONLY** `auth/**`, `users/**`, `core/**`, `deployment/**`, `tests/ci/login_image/{build.sh,cleanup.sh,provenance-lock.json}`, all existing workflow YAMLs, other tests and package files. New documentation-only `docs/P05-OIDC-10-A01.md`, README/MINIFEST and notes/project/docs updates after dispatch. One [Run #108](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/108) / Job #230 **QUEUED** against `4452a61b0f5a0892399060fd7569231a564bce02`; NO executed job steps or cleanup evidence yet, runner scheduling evidence limited. Source-level PAT/PATH collision proven, actual previous image key unknown. Independent proposed A02: read-only runner/Run #108 acceptance, no new CI.
|
||||
@@ -203,3 +203,7 @@ Actual [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) confir
|
||||
`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 SPDX 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.
|
||||
|
||||
## P05-OIDC-10-A01 — finite OCI environment-key functions (source only)
|
||||
|
||||
Only `tests/ci/login_image/provenance.py` changed at candidate SHA `4452a61b0f5a0892399060fd7569231a564bce02`: `SAFE_OCI_ENV_KEYS` is a fixed set of known benign Node/OCI image ENV names (PATH/NODE_VERSION/YARN_VERSION and exact upstream runtime keys). `SENSITIVE_OCI_ENV_SEGMENTS` is an underscore-separated **complete-token** set of AUTH/SECRET/TOKEN/PAT/MASTERKEY/PASSWORD/PRIVATE/KEY/DB and related credentials. `classify_oci_env_key()` maps arbitrary input **only to SAFE/SENSITIVE/UNKNOWN/INVALID**, not its value. `diagnose_oci_image_env()` logs known-safe whitelisted key names and fixed generic error classes, plus legacy PATH matcher evidence **only if verified in a real inspected OCI image**. `validate_image()` fails closed for sensitive, unknown, bad-format, duplicates, non-production NODE_ENV, existing unsafe user/labels/entrypoint/platform and image ID. The 12 original fixture definitions remain; `negative_cases()` now adds 9 sensitive-key + 5 malformed/unknown/duplicate/development-mode rejects (=14) and one benign PATH positive. No value printing, no arbitrary name output, no new network/API operations. **Run #108 currently QUEUED**, so these are SOURCE VERIFIED, NOT CI VERIFIED; actual previous rejected key remains UNKNOWN until runner executes [Run #108](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/108). No builder, workflow, CI pins or app edits; full details `notes/P05-OIDC-10-A01.md`.
|
||||
@@ -139,3 +139,7 @@ The read-only source inventory verifies tracked Account npm **package-lock.json*
|
||||
## 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.
|
||||
|
||||
## P05-OIDC-10-A01 — no new runtime dependencies or changes to frozen source
|
||||
|
||||
Only stdlib-only `tests/ci/login_image/provenance.py` modified to classify known default Node OCI environment keys and fail-close on real credential segments, unknown/duplicate/malformed keys. Root PNPM workspace, nested Login toolchain, Docker base-index lock, existing `build.sh` and workflow unchanged; no image manifest, package lock, imported Dockerfile, runner config or production environment edits. Source `4452a61b0f5a0892399060fd7569231a564bce02` has original 12 plus 14 new in-memory negative checks and a PATH acceptance positive, but existing manual [Run #108](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/108) / job #230 **QUEUED and NOT EXECUTED** at last inspection. Running the unchanged workflow is the only approved way to produce actual OCI image and temporary partial material SPDX/unsigned provenance; no local tests or production services started in this phase. Next A02 may inspect existing run/runner **read-only only**, separate permission for any runner action.
|
||||
Reference in new issue
Block a user