docs(oidc): synchronize P10 Run 106 fail-closed env gate in manifests and readmes

This commit is contained in:
victorsteele428 committed 2026-11-23 17:48:04 +00:00
1 parent 2119719394
commit 9dc2aa4b27
10 files changed
+18 -3

No files matched your search

+1
View File
@@ -9,4 +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-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
@@ -20,6 +20,8 @@ Job responsibilities:
A green job indicates only its executed steps. Full CI acceptance also needs end-to-end OIDC session/callback, real login/MFA, admin console and session controls in a disposable environment, documented separately.
**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.
See `notes/P05-CI-01.md` and `tests/ci/`.
+2 -1
View File
@@ -28,7 +28,8 @@ Compact, developer-friendly monorepo for a central identity service, a branded l
- **P05-OIDC-08-A03:** [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) / job #220 **FAILURE** on `7954938fcee4d11c0b27751c7cf7abdcc64cd243`: synthetic Compose static config PASS; all five normalized `deploy` mappings show integer-zero replicas and extra **empty** `resources:{}` / `placement:{}` (verified inert defaults); previous DEPLOY_DISABLED gate passed, next `SERVICE_SECRET_REFS` FAIL with exact normalized secret grant shape UNKNOWN. Original 25 + runtime 4 + replica 3 + deploy 8 negatives **NOT EXECUTED**. Manual workflow safety and runner task cleanup PASS, no production work. [A03 report](docs/P05-OIDC-08-A03.md).
- **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).
- **Production / Coolify:** no active production deployment is verified from this repository; live VPS/Coolify/DNS/TLS was deliberately **not inspected** in P05-OIDC-09.
- **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).
- **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
@@ -30,6 +30,7 @@ Every file listed below is a direct child of `docs/`. Add/remove rows whenever t
| [P05-OIDC-08-A03.md](P05-OIDC-08-A03.md) | Operator Run #104 empty Compose deploy defaults, next service-secret-reference failure and RCA boundary | P05-OIDC-08-A03 / Run #104 FAILURE |
| [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 |
| [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
@@ -23,7 +23,8 @@
15. [P05-OIDC-08-A03.md](P05-OIDC-08-A03.md) — Run #104 confirmed empty deploy resources/placement, next service-secret-grant blocker, 40 negatives not executed.
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. [MINIFEST.md](MINIFEST.md) — exact files and purposes.
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.
## Rules for every future developer/AI agent
+2
View File
@@ -45,4 +45,6 @@ This is the chronological **index**. Phase-specific scope/implementation evidenc
| 2026-11-23 | P05-OIDC-09 | Documentation-only source/evidence production release preflight, release blocker matrix and separate minimal implementation phase locks | Baseline `d3ee3fa4de62463c53d5213c532d097278f928c6`; [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) 48/48 synthetic static PASS and [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) disposable browser OIDC SUCCESS retained; no new CI, source edits or real domain/production access. Live release NO-GO/BLOCKED. [Audit](P05-OIDC-09.md) |
| 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) |
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
@@ -28,6 +28,7 @@
| [P05-OIDC-08-A03.md](P05-OIDC-08-A03.md) | Scope-first exact validator change, Run #104 verified empty resources/placement metadata, secret grant shape blocker, 40 negatives unexecuted and A04 scope | P05-OIDC-08-A03 / Run #104 FAILURE; full contract BLOCKED |
| [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 |
| [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
@@ -45,6 +45,8 @@ This is the **developer-focused implementation history**. `notes/CHANGELOG.md` i
| 2026-11-23 | P05-OIDC-09 | Scope-first read-only forensic production preflight, release artifact, image dependency, real HTTPS/Host/h2c, vault/PAT/IAM_OWNER, encrypted DB restore, Console/MFA/SSO and monitoring phase dependencies | No code/CI/infra action; accepted [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) static synthetic 48/48 and [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) isolated real OIDC only. Live production GO/NO-GO **BLOCKED**. 13 proposed narrow phases and exact next `P05-OIDC-10` in `notes/P05-OIDC-09.md`. |
| 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` |
## 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.
+3 -1
View File
@@ -5,4 +5,6 @@
| [README.md](README.md) | Scope/ownership/privacy and manual CI usage | P05-OIDC-06 |
| [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 | 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-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
@@ -6,6 +6,8 @@ This directory is used solely by the manual Gitea P05-OIDC-06 workflow. It build
- `cleanup.sh`: used by the workflow `always()` step, **after** the existing OIDC cleanup; verify labels and remove only this run's builder/image/temp build context.
- The existing real browser acceptance harness remains the security authority; custom-image mode is explicit opt-in and uses separate Compose overlay.
**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.
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.