diff --git a/README.md b/README.md index 07eeef7..b93dd0f 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ Compact, developer-friendly monorepo for a central identity service, a branded l - **P05-OIDC-08-A01:** [Run #102](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/102) / Job #218 **FAILURE** on `07c91ea5bcb2037e3c7b76261e1eb106b49d223f`: static Compose config and manual no-resource-actions PASS; safe normalized diagnostics verified `command:null` and `entrypoint:null` across five services, prior RUNTIME_BEHAVIOR blocker resolved, then new `DEPLOY_DISABLED` failure; original 25 + four new runtime negative cases **NOT EXECUTED**. Existing imported custom Login Run #99 remains accepted. No production action. [A01 report](docs/P05-OIDC-08-A01.md). - **P05-OIDC-08-A02:** [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) / job #219 **FAILURE** on `45a2edb854acd98546e60a68482075bc5f742bd2`: synthetic source and normalized **five integer-zero replicas** PASS; unexpected additional normalized `deploy` keys in all five services rejected by strict `DEPLOY_DISABLED` gate, exact keys UNKNOWN; 25+4+3 invalid fixtures NOT EXECUTED, workflow safety/runner job cleanup PASS. No second run, source patch or production deployment. [Operator report](docs/P05-OIDC-08-A02.md). - **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). - **Production / Coolify:** not configured or deployed. ## Documentation and project knowledge diff --git a/docs/MINIFEST.md b/docs/MINIFEST.md index 2ed0a82..38338be 100644 --- a/docs/MINIFEST.md +++ b/docs/MINIFEST.md @@ -28,6 +28,7 @@ Every file listed below is a direct child of `docs/`. Add/remove rows whenever t | [P05-OIDC-08-A01.md](P05-OIDC-08-A01.md) | Operator summary: normalized null runtime field RCA, Run #102 zero-replica blocker, next scope | P05-OIDC-08-A01 / Run #102 FAILURE | | [P05-OIDC-08-A02.md](P05-OIDC-08-A02.md) | Run #103 verified zero replicas and extra normalized deployment fields, acceptance limits and next remediation scope | P05-OIDC-08-A02 / Run #103 FAILURE | | [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 | | [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 | diff --git a/docs/README.md b/docs/README.md index cb36dee..816a64b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -21,7 +21,8 @@ 13. [P05-OIDC-08-A01.md](P05-OIDC-08-A01.md) — Run #102 confirmed Compose-normalized command/entrypoint null defaults; new DEPLOY_DISABLED blocker, 29 fixtures not executed. 14. [P05-OIDC-08-A02.md](P05-OIDC-08-A02.md) — Run #103 verified all five normalized integer-zero replicas; extra deploy metadata still blocks full 32-negative acceptance. 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. [MINIFEST.md](MINIFEST.md) — exact files and purposes. +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. [MINIFEST.md](MINIFEST.md) — exact files and purposes. ## Rules for every future developer/AI agent diff --git a/notes/CHANGELOG.md b/notes/CHANGELOG.md index 4598f45..f0cb87f 100644 --- a/notes/CHANGELOG.md +++ b/notes/CHANGELOG.md @@ -41,4 +41,6 @@ This is the chronological **index**. Phase-specific scope/implementation evidenc | 2026-11-23 | P05-OIDC-08-A03 | Validator-only pinned source fixture, finite safe extra-deploy field classification/empty defaults, eight added deploy negative cases | Source `7954938fcee4d11c0b27751c7cf7abdcc64cd243`; [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) job #220 **COMPLETED FAILURE**: Compose config PASS, five `resources:{}` + `placement:{}` alongside int-zero replicas VERIFIED, old DEPLOY_DISABLED barrier passed, next SERVICE_SECRET_REFS FAIL, all 25+4+3+8 negatives NOT EXECUTED, workflow safety/runner cleanup PASS. No rerun. [Evidence](P05-OIDC-08-A03.md) | +| 2026-11-23 | P05-OIDC-08-A04 | One validator-only source fix for normalized canonical `/run/secrets/` target, exact grant set and root/read-only security; eight new secret grant negatives | Source `daaa8b259a519ae0290ba28936ef2279b3a9172c`; [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) job #221 **SUCCESS**: Compose config/source integrity/private runtime/OIDC issuer+callback/h2c/headers/secrets ALL PASS, original 25 + runtime 4 + replica 3 + deploy 8 + secret-grant 8 = **48/48** security-negative rejects PASS, manual workflow-safety PASS, runner job cleanup observed, no production. [Evidence](P05-OIDC-08-A04.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. diff --git a/notes/MINIFEST.md b/notes/MINIFEST.md index 3ead1ac..1bb96b7 100644 --- a/notes/MINIFEST.md +++ b/notes/MINIFEST.md @@ -26,6 +26,7 @@ | [P05-OIDC-08-A01.md](P05-OIDC-08-A01.md) | Pre-source Scope Lock, Run #102 proven Compose-generated command/entrypoint null RCA and new zero-replica blocker | P05-OIDC-08-A01 / Run #102 FAILURE; 29 negatives NOT EXECUTED | | [P05-OIDC-08-A02.md](P05-OIDC-08-A02.md) | Scope-first normalized replica RCA, Run #103 five integer-zero replicas with unknown extra deploy keys, all 32 negatives not executed and next A03 scope | P05-OIDC-08-A02 / CI FAILURE; deploy metadata gate BLOCKED | | [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 | | [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. diff --git a/project/CHANGELOG.md b/project/CHANGELOG.md index 291b88f..f78307b 100644 --- a/project/CHANGELOG.md +++ b/project/CHANGELOG.md @@ -41,6 +41,8 @@ This is the **developer-focused implementation history**. `notes/CHANGELOG.md` i | 2026-11-23 | P05-OIDC-08-A03 | Exact-only `tests/ci/production_contract/validate.py` strict pin of unchanged synthetic fixture, safe named deployment-metadata diagnostics and allow-only-empty resources/placement plus eight source-negative definitions | Source `7954938fcee4d11c0b27751c7cf7abdcc64cd243`, [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) job #220 **FAILURE**: five resources/placement EMPTY_OBJECT and replicas INT_ZERO verified; next SERVICE_SECRET_REFS policy reject, 40 negatives NOT EXECUTED; workflow-safety PASS and runner cleanup observed, no production. `notes/P05-OIDC-08-A03.md` | +| 2026-11-23 | P05-OIDC-08-A04 | Scope-first, only `tests/ci/production_contract/validate.py` modified: safe symbolic grant type/target/permission checks, canonical normalized mounts and eight strict grant negatives; no other source changes | Source `daaa8b259a519ae0290ba28936ef2279b3a9172c`, [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) job #221 **COMPLETED SUCCESS**: 7 approved secret-grant objects at canonical mounts verified, all static positive policy gates PASS, 48/48 negatives PASS, manual-only+runner cleanup PASS; no live production. `notes/P05-OIDC-08-A04.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. diff --git a/tests/ci/README.md b/tests/ci/README.md index 79c3e3b..5505876 100644 --- a/tests/ci/README.md +++ b/tests/ci/README.md @@ -20,6 +20,8 @@ No real credentials or production domains are used. Never print bootstrap PATs, Add new CI checks and update `MINIFEST.md`, `project/`, `docs/`, and `notes/` in the same approved phase. +**P05-OIDC-08-A04 final synthetic static acceptance:** [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) / Job #221 **SUCCESS** on `daaa8b259a519ae0290ba28936ef2279b3a9172c`. Compose config, exact five 0-replica source, normalized seven canonical symbolic secret grants, proposed canonical HTTPS issuer/Account callback, h2c Login/Console/API, Host/forwarded header and no public port/socket/build/privilege policy **PASS**; **48/48 security-negative fixtures PASS**; manual-only/no resource lifecycle policy and runner cleanup PASS. No local app service tests or real production secrets/SSL/DNS/deployment. See `production_contract/README.md` and `notes/P05-OIDC-08-A04.md`. + **P05-OIDC-08-A03:** [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) / Job #220 **FAILURE** on `7954938fcee4d11c0b27751c7cf7abdcc64cd243`: static Compose parse and five source zeros PASS; normalized deploy `resources:{}` + `placement:{}` on every service verified as empty, earlier DEPLOY_DISABLED blocker resolved, next SERVICE_SECRET_REFS rejects normalized service grants. **All 40 source-defined negative fixtures NOT EXECUTED**; workflow-safety and runner job cleanup PASS. No service startup, live secrets or public endpoints. Read `production_contract/README.md` and `notes/P05-OIDC-08-A03.md`; no rerun in A03. **P05-OIDC-08-A01 status:** [Run #102](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/102) / Job #218 **FAILURE** after Compose config PASS: safe diagnostics identified normalized null `command`/`entrypoint` for all five synthetic services; previous `RUNTIME_BEHAVIOR` blocker resolved, subsequent `DEPLOY_DISABLED` check FAIL, **25 original + four new runtime negative fixtures NOT EXECUTED**. Manual-only safety step PASS, runner task cleanup observed; unchanged workflow and synthetic Compose. Exact next validator-only RCA in `notes/P05-OIDC-08-A01.md`. Never start the synthetic services. diff --git a/tests/ci/production_contract/README.md b/tests/ci/production_contract/README.md index 8243de3..52bbebd 100644 --- a/tests/ci/production_contract/README.md +++ b/tests/ci/production_contract/README.md @@ -2,10 +2,12 @@ **Owner:** ZitPlane CI/security maintainers. New P05-OIDC-08 folder; update only under separately approved Scope Lock and synchronize this README, MINIFEST and notes/project/docs. -`validate.py --compose-json-stdin` accepts *normalized* JSON from `docker compose -f deployment/production-contract/compose.ci.yaml config --format json`, validates a strict source-controlled policy and all service/secret/network constraints, then runs **25 original in-memory negative fixtures, four runtime-override fixtures, three replica/deployment-mode fixtures and eight unsafe extra-deploy metadata fixtures** (40 source-present negative assertions). **In Run #104 all 40 remained NOT EXECUTED** because strict service-secret-grant validation failed before `negative_cases()`. Each deliberately malformed issuer, exact callback, wildcard, Login/Console/API route, h2c, Host/Forwarded, public ports, missing secret reference, embedded credential, Docker socket, privileged mode and deployability must be rejected by the exact expected rule. +`validate.py --compose-json-stdin` accepts *normalized* JSON from `docker compose -f deployment/production-contract/compose.ci.yaml config --format json`, validates a strict source-controlled policy and all service/secret/network constraints, then runs **25 original in-memory negative fixtures, four runtime-override fixtures, three replica/deployment-mode fixtures and eight unsafe extra-deploy metadata fixtures** (40 preserved original negative assertions), plus **eight new secret-grant negative fixtures**. In [Gitea Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105), **all 48** ran and PASSed with their exact expected rejection class, after normalized grant source/target policy PASS. The earlier Run #104 failure (40 NOT EXECUTED) remains historical evidence. Each deliberately malformed issuer, exact callback, wildcard, Login/Console/API route, h2c, Host/Forwarded, public ports, missing secret reference, embedded credential, Docker socket, privileged mode and deployability must be rejected by the exact expected rule. `validate.py --workflow-safety` checks that the manual Gitea workflow includes only two Docker Compose **config** commands and no Docker resource lifecycle. This is static evidence of **no resource actions configured**, not a read of live daemon state. **P05-OIDC-08-A03 actual status:** [Gitea Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) / Job #220 **FAILURE**: Compose config PASS, five source and normalized int-zero replicas PASS, five `resources:{}` + `placement:{}` inert defaults VERIFIED; previous deployment metadata rejection cleared, next `SERVICE_SECRET_REFS` FAIL before any negative fixture executed. Only validator code changed; Compose, JSON policy and manual workflow unchanged. Next A04 validator-only grant-shape diagnostics requires separate approval. +**P05-OIDC-08-A04 accepted:** [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) / Job #221 **COMPLETED SUCCESS** on `daaa8b259a519ae0290ba28936ef2279b3a9172c`. Seven normalized service grant objects use symbolic approved source names and canonical `/run/secrets/` mount targets (classified without printing values). Exact sources by service, root/read-only grant metadata, zero replicas, inert deploy/runtime, issuer, h2c, Host/forwarding, private ports/secret registry and all 48 negative security fixtures PASS. Manual-only/no Docker resource lifecycle commands and runner task cleanup PASS. Source-only fix in validator; workflow, YAML fixture and policy unchanged. See `notes/P05-OIDC-08-A04.md` and `docs/P05-OIDC-08-A04.md`. + No production DNS, real HTTPS/TLS, login/user/client, secrets/keys, production server or deployment is reached by test logic; no Compose up/build/pull/run. See [P05-OIDC-08](../../../notes/P05-OIDC-08.md).