docs(oidc): sync A01 queued Run 108 and safe env-key source RCA across manifests and changelogs

This commit is contained in:
victorsteele428 committed 2026-11-23 18:10:56 +00:00
1 parent 3b582dfc54
commit 34fab24043
10 files changed
+15 -3

No files matched your search

+1 -1
View File
@@ -9,5 +9,5 @@
| [p05-security-acceptance.yml](p05-security-acceptance.yml) | Manual isolated Account/Login frozen builds, security advisory triage and strict Moderate+ gate | P05-SEC-01 |
| [p05-production-contract-dry-run.yml](p05-production-contract-dry-run.yml) | Manual-only Compose config/static Python security checks; no service runtime | P05-OIDC-08 / Run #101 normalized validator FAIL, workflow-safety PASS |
| [p05-custom-login-acceptance.yml](p05-custom-login-acceptance.yml) | Manual-only imported Login image build and original OIDC with two-part owned cleanup | P05-OIDC-06 / Run #98 startup FAIL |
| [p05-login-provenance.yml](p05-login-provenance.yml) | Manual-only pinned Docker OCI Login provenance, 12 negative cases and always owned cleanup; Run #106 FAIL at IMAGE_SECRET_ENV_KEY, build/cleanup PASS | P05-OIDC-10 |
| [p05-login-provenance.yml](p05-login-provenance.yml) | Original manual-only pinned Docker OCI Login provenance; Run #106 FAIL at env guard/cleanup PASS. A01 Run #108 dispatched once, QUEUED, no steps, workflow unchanged | P05-OIDC-10 / P05-OIDC-10-A01 |
| [p05-oidc-acceptance.yml](p05-oidc-acceptance.yml) | Manual-only disposable ZITADEL real user/client/Chromium OIDC and mandatory owned-only cleanup | P05-OIDC-01 |
+2
View File
@@ -22,6 +22,8 @@ A green job indicates only its executed steps. Full CI acceptance also needs end
**P05-OIDC-10 new independent manual workflow:** `p05-login-provenance.yml` uses pinned Node 24 Alpine OCI runner and immutable Node22 Bookworm builder index, leaves original source Dockerfile/entrypoint and existing Run #99/105 workflows untouched, and calls the opt-in `tests/ci/login_image/build.sh`/`provenance.py` and unchanged labeled cleanup. One [Run #106](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/106) / job #222 **FAILURE** on `6ba004808ef47c8856c1a7906faaf7ee807d15a6`: 12/12 negative security cases, pinned source, frozen PNPM/Next build, temporary 0755 entrypoint and OCI local build PASS, but `IMAGE_SECRET_ENV_KEY` rejected the final image; partial SPDX/unsigned attestation files **NOT GENERATED**. `always()` builder/image/context cleanup PASS, Gitea runner job cleanup observed. Source code not patched after CI, no rerun. Proposed P05-OIDC-10-A01 requires separate approval to safely classify the key and retain strict secret environment rejection. No registry push, signed release, live users or production deployment.
**P05-OIDC-10-A01 scope-first validator-only change:** `tests/ci/login_image/provenance.py` fixes source-proven `PAT` substring boundary with finite safe env names and fixed class logging, preserving 12 original + adding 14 env negative security fixtures and PATH positive. Workflow file **unchanged**. One [Gitea Run #108](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/108) / Job #230 manually dispatched on `4452a61b0f5a0892399060fd7569231a564bce02` **QUEUED** at last inspection; no checkout/build/negatives/OCI/attestation/cleanup performed and runner online/labels/capacity UNKNOWN. No rerun or source patch after dispatch; prior Run #106 failure and original Run #99/105 accepted historical evidence unchanged. Propose P05-OIDC-10-A02 read-only existing run scheduling RCA; see `notes/P05-OIDC-10-A01.md`.
See `notes/P05-CI-01.md` and `tests/ci/`.
+1
View File
@@ -29,6 +29,7 @@ Compact, developer-friendly monorepo for a central identity service, a branded l
- **P05-OIDC-08-A04:** [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) / job #221 **SUCCESS** on `daaa8b259a519ae0290ba28936ef2279b3a9172c`: CI-only synthetic Compose static config, source five zero replicas, inert deployment metadata, canonical trusted HTTPS issuer/Account callback/h2c/header/secret reference policies PASS. Exactly **48/48** malformed config/security negative cases PASS (25 original + 4 runtime + 3 replica + 8 deploy + 8 secret grants), manual-only/no configured Docker resource lifecycle step PASS, runner-owned job cleanup PASS. Actual public HTTPS/TLS/DNS, secrets, Console/MFA/SSO/production release **NOT VERIFIED**. [A04 operator acceptance](docs/P05-OIDC-08-A04.md).
- **P05-OIDC-09:** Documentation-only production release forensic preflight on baseline `d3ee3fa4de62463c53d5213c532d097278f928c6`. Accepted [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) **synthetic static security PASS (48/48 negatives)** and [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) **real disposable custom Login browser OIDC SUCCESS** are preserved. No signed released Login/Account artifact, production image recipe for Account, real trusted HTTPS issuer/secret custody/DB encrypted restore/Console/MFA/multi-app SSO or controlled release acceptance is proven. Production go/no-go **BLOCKED**; no new CI or live actions. [Operator preflight](docs/P05-OIDC-09.md) and [full Scope Locks](notes/P05-OIDC-09.md).
- **P05-OIDC-10:** [Gitea Run #106](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/106) / Job #222 **COMPLETED FAILURE** on source `6ba004808ef47c8856c1a7906faaf7ee807d15a6`: provenance source/tree/base index and **12/12 negatives PASS**, PNPM frozen 1121 packages + imported Next16.4.6 standalone build PASS, temporary 0755 entrypoint and digest-pinned local Login OCI image build/probe PASS; final OCI `IMAGE_SECRET_ENV_KEY` fail-closed check **FAIL** (actual key not logged, possible `PAT`/`PATH` false positive NOT VERIFIED). Partial SPDX material attestation **NOT GENERATED**. Run-owned local builder/image/context and runner container/volumes/network cleanup PASS. No post-run source patch or CI rerun. Original custom Login real OIDC Run #99 and static security Run #105 remain accepted. [Operator report](docs/P05-OIDC-10.md).
- **P05-OIDC-10-A01:** Scope-first source-only `tests/ci/login_image/provenance.py` environment-key RCA on tested SHA `4452a61b0f5a0892399060fd7569231a564bce02`, safe PATH/PAT token boundary, finite known benign env names, sensitive/unknown/duplicate/malformed key rejection, 12 original + 14 new negative fixtures **DEFINED but NOT CI EXECUTED**. One [Gitea Run #108](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/108) / Job #230 **QUEUED**, job not started, runner online/labels/capacity UNKNOWN; therefore frozen Login/OCI image, partial SPDX/unsigned provenance and owned cleanup **NOT EXECUTED in A01**. No rerun, no post-dispatch source edit, no production. [Operator report](docs/P05-OIDC-10-A01.md), [next exact Scope Lock](notes/P05-OIDC-10-A01.md).
- **Production / Coolify:** no active production deployment is verified from this repository; live VPS/Coolify/DNS/TLS was deliberately **not inspected** in P05-OIDC-09 or P05-OIDC-10.
## Documentation and project knowledge
+1
View File
@@ -31,6 +31,7 @@ Every file listed below is a direct child of `docs/`. Add/remove rows whenever t
| [P05-OIDC-08-A04.md](P05-OIDC-08-A04.md) | Operator acceptance for Run #105, seven canonical service secret mount RCA, 48/48 negative cases, production boundary | P05-OIDC-08-A04 / Run #105 SUCCESS |
| [P05-OIDC-09.md](P05-OIDC-09.md) | Operator production release preflight, correct current vs synthetic CI acceptance, stop/rollback gates and independently approvable phase ladder | P05-OIDC-09 / production BLOCKED; read-only |
| [P05-OIDC-10.md](P05-OIDC-10.md) | Operator Run #106 partial OCI provenance, pinned base/build evidence and env-key failure/cleanup | P05-OIDC-10 / Run #106 FAILURE |
| [P05-OIDC-10-A01.md](P05-OIDC-10-A01.md) | Operator status and provenance source fix: PATH/PAT boundary, credential rejection, 12 original + 14 new defined tests, existing Run #108 queued | P05-OIDC-10-A01 / CI NOT EXECUTED |
| [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 -1
View File
@@ -24,7 +24,8 @@
16. [P05-OIDC-08-A04.md](P05-OIDC-08-A04.md) — Run #105 SUCCESS: seven canonical secret mounts, full synthetic production-security contract and 48/48 malformed cases PASS; real deployment not verified.
17. [P05-OIDC-09.md](P05-OIDC-09.md) — read-only production release preflight, accepted CI vs missing live gates, safe phase ordering and rollback stops.
18. [P05-OIDC-10.md](P05-OIDC-10.md) — CI-only Login OCI pin/build partial PASS, Run #106 environment-key gate FAIL, cleanup and next RCA.
19. [MINIFEST.md](MINIFEST.md) — exact files and purposes.
19. [P05-OIDC-10-A01.md](P05-OIDC-10-A01.md) — value-free env-key security RCA, source-only guard fix; Run #108 queued, no CI acceptance yet.
20. [MINIFEST.md](MINIFEST.md) — exact files and purposes.
## Rules for every future developer/AI agent
+2
View File
@@ -47,4 +47,6 @@ This is the chronological **index**. Phase-specific scope/implementation evidenc
| 2026-11-23 | P05-OIDC-10 | Scope-first locked imported Login source/Node OCI indexes, isolated opt-in builder and 12 provenance negative fixtures, independent manual workflow | [Run #106](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/106) job #222 **FAILURE** on `6ba004808ef47c8856c1a7906faaf7ee807d15a6`: pinned Git/OCI/frozen PNPM/Next build and local image/probe + 12/12 negatives PASS; `IMAGE_SECRET_ENV_KEY` FAIL before partial SPDX/attestation, exact offending key UNKNOWN, possible `PAT` match on `PATH` only hypothesis; always owned cleanup PASS, no second run or production. [Evidence](P05-OIDC-10.md) |
| 2026-11-24 | P05-OIDC-10-A01 | Pre-source Scope Lock and validator-only finite safe OCI env keys/strict credential-token segments; original 12 negatives preserved, 14 new negatives and PATH acceptance defined | Source `4452a61b0f5a0892399060fd7569231a564bce02`, exactly one [Run #108](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/108) Job #230 **QUEUED**, no job steps/log. No CI PASS/FAIL yet; build/attestation/cleanup NOT EXECUTED; runner online/label/capacity UNKNOWN. No rerun or source patch, next A02 existing-run read-only RCA. [Evidence](P05-OIDC-10-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
View File
@@ -29,6 +29,7 @@
| [P05-OIDC-08-A04.md](P05-OIDC-08-A04.md) | Pre-source Scope Lock; one successful CI Run #105 normalized secret mount RCA, exact 48/48 security negatives, full synthetic static contract accepted; next production release preflight scope | P05-OIDC-08-A04 / Run #105 SUCCESS, production NOT VERIFIED |
| [P05-OIDC-09.md](P05-OIDC-09.md) | Scope-first read-only production preflight; source/CI/live classifications, release security blockers, 13 narrow implementation phases, next P05-OIDC-10 contract | P05-OIDC-09 / docs-only audit COMPLETE; production NO-GO |
| [P05-OIDC-10.md](P05-OIDC-10.md) | Scope-first immutable Login CI provenance plan; Run #106 12 negatives and pinned build PASS, image env security gate FAIL, owned cleanup PASS, next one-file RCA | P05-OIDC-10 / FULL ACCEPTANCE BLOCKED |
| [P05-OIDC-10-A01.md](P05-OIDC-10-A01.md) | Pre-source Scope Lock and safe OCI environment-key boundary RCA; Run #108 Job #230 QUEUED, all CI tests NOT EXECUTED, runner availability UNKNOWN; next A02 existing-run scheduling acceptance | P05-OIDC-10-A01 / CI PENDING |
| [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.
+2
View File
@@ -47,6 +47,8 @@ This is the **developer-focused implementation history**. `notes/CHANGELOG.md` i
| 2026-11-23 | P05-OIDC-10 | Scope-first new `tests/ci/login_image/provenance.py` and pinned JSON, narrow opt-in `build.sh`, new manual Gitea provenance workflow; immutable original Login vendor source and existing CI workflows read-only | [Run #106](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/106) / Job #222 **COMPLETED FAILURE** on `6ba004808ef47c8856c1a7906faaf7ee807d15a6`: source/base OCI, 12/12 negative fixtures, pnpm/Next standalone image entrypoint build PASS; final `IMAGE_SECRET_ENV_KEY` failure blocked partial SPDX/unsigned provenance files, cleanup PASS, no rerun; proposed P05-OIDC-10-A01 exact one-validator source gate. `notes/P05-OIDC-10.md` |
| 2026-11-24 | P05-OIDC-10-A01 | Scope-first approved single `tests/ci/login_image/provenance.py` edit: PATH/PAT source false-positive boundary, exact benign env allowlist, fail-closed credential/unknown/duplicate/format, 14 new negative fixtures preserving original 12 | Tested source `4452a61b0f5a0892399060fd7569231a564bce02`, pre-CI two-path diff audit PASS. One [Run #108](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/108) / Job #230 dispatched, **QUEUED / NOT EXECUTED**; no terminal CI acceptance, no cleanup claim for Run #108, runner status UNKNOWN, no rerun/source patch; `notes/P05-OIDC-10-A01.md`. |
## Required entry for each future change
Date, phase, approval/scope, baseline SHA, source files changed, reason/functional effect, interface/security impacts, migration/config steps, test/CI evidence, docs updated, commit SHA, verified/unverified limitations. Append one record for every approved change/fix, including documentation-only changes. Never overwrite old conclusions without noting correction.
+1 -1
View File
@@ -6,5 +6,5 @@
| [MINIFEST.md](MINIFEST.md) | Exact direct file register | P05-OIDC-06 |
| [build.sh](build.sh) | Disposable frozen imported build + local image packaging | P05-OIDC-06 |
| [cleanup.sh](cleanup.sh) | Always-run exact-labeled builder/image/temp context teardown; reused unchanged in P05-OIDC-10 Run #106 SUCCESS cleanup | P05-OIDC-06 / P05-OIDC-10 |
| [provenance.py](provenance.py) | Safe Git/OCI pin validation, 12 negative cases, image env/security gate, partial SPDX/unsigned attestation planned; Run #106 final env gate FAILED | P05-OIDC-10 |
| [provenance.py](provenance.py) | P10 original source/OCI pin validation & 12 negatives; A01 value-free allowlisted env diagnostics, strict credential-key segments, PATH positive and 14 extra negative definitions. Run #108 QUEUED: CI NOT EXECUTED | P05-OIDC-10 / P05-OIDC-10-A01 |
| [provenance-lock.json](provenance-lock.json) | Immutable imported Login source tree/blob plus pinned Node22 builder/Node24 runtime public OCI index identities | P05-OIDC-10 |
+2
View File
@@ -8,6 +8,8 @@ This directory is used solely by the manual Gitea P05-OIDC-06 workflow. It build
**P05-OIDC-10 CI-only provenance addition:** `provenance-lock.json` pins the imported Git tree/PNPM lock/Dockerfile/entrypoint, public Docker Hub Node 22 Bookworm builder OCI index and Node 24 Alpine runtime OCI index, both linux/amd64. `provenance.py` validates source/OCI labels, nonroot image/entrypoint, 12 negative cases, and is designed to produce PARTIAL SPDX source/base materials and an UNSIGNED local attestation. The new manual `p05-login-provenance.yml` opts into this mode with `ZITPLANE_PROVENANCE_CI=1`; existing Run #99 workflow/default builder behavior is unchanged. **Actual [Run #106](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/106) / job #222 FAILURE**: Git tree, 12/12 negatives, PNPM frozen standalone and pinned OCI image build/probe PASS, but `IMAGE_SECRET_ENV_KEY` FAIL before attestation files. Possible bare `PAT` matched harmless `PATH` is **UNVERIFIED** because exact key not logged. Always-owned builder/image/context cleanup PASS. No registry/production work; future P05-OIDC-10-A01 validator-only approval required. Never treat partial material SPDX as complete dependency/OS SBOM or a production signature.
**P05-OIDC-10-A01 (source complete, CI pending):** Only `provenance.py` changed after scope-first `notes/P05-OIDC-10-A01.md`: fixed known harmless OCI environment-key allowlist, sensitive credential token/segment checks, fail-closed unexpected/duplicate/malformed keys, diagnostics logging only preapproved safe key names or fixed generic classes. The old unanchored `PAT` check also matches benign `PATH` *by source logic*, but the exact rejected Run #106 image key remains UNKNOWN until fixed-name diagnostics actually execute. Original 12 negatives preserved; 14 additional credential/env rejection cases and benign PATH acceptance defined, NOT CI EXECUTED. Exactly one unchanged workflow dispatch [Run #108](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/108) / Job #230 on `4452a61b0f5a0892399060fd7569231a564bce02` was QUEUED with no steps/log at last review. Runner online/capacity/labels UNKNOWN, no second dispatch and no post-dispatch source patch. Partial SPDX/unsigned provenance, pinned build and cleanup in Run #108 are NOT EXECUTED. Run #106 temporary image cleanup and original Run #99 OIDC acceptance remain separate historical facts. Next separately approved A02 should inspect **existing** Run #108, never rerun.
Update these helpers only in a separately approved source scope; maintain MINIFEST.md and never copy upstream source edits, credentials or CI output to Git.
**A01 accepted update (2026-11-23):** [Gitea Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) / Job #214 **SUCCESS** on tested source `7d6b6d0704b9e39bcb6e74257dadf0b64a19fc0f`. The upstream Git entrypoint stays `100644`; its temporary standalone copy measured `644` owner `0:0`. `build.sh` alone now checks mode/owner/no-symlink/shebang and changes that **temporary copy only** to `755`, checks built image executable under its default non-root user without network/secrets, then uses the existing custom Login/Chromium OIDC workflow. Four services/actual running source-built Login image/PKCE/state/nonce/Auth.js protected session/negative/logout and both cleanup systems PASS. The Run #98 OCI failure is historical; production HTTPS/MFA/SSO untested.