docs(oidc): synchronize A03 secret-grant blocker in project and operator documentation

This commit is contained in:
victorsteele428 committed 2026-11-23 16:18:26 +00:00
1 parent 6d9a037ce3
commit 657e3aa931
8 files changed
+37

No files matched your search

+2
View File
@@ -69,3 +69,5 @@ Future feature additions need an evidence-backed status update here, an exact de
**P05-OIDC-08-A01 (2026-11-23) latest synthetic contract status:** [Run #102](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/102) / Job #218 **FAIL** after `docker compose config` PASS; diagnostics **VERIFIED** null `command` and `entrypoint` on all five services, correcting previous Run #101 runtime-default false positive. Next strict normalized zero-replica `DEPLOY_DISABLED` rule **FAIL** with exact field/type UNKNOWN, so all 25 original and four added runtime security negative checks **NOT EXECUTED**. Manual-only/no-resource-action policy PASS and runner job cleanup observed. Full synthetic production-config gate **BLOCKED**; no real TLS/DNS/secrets/deploy or actual Login/MFA/Console acceptance. Prior source-built imported Login V2 real **disposable** Run #99 remains SUCCESS. [A01 report](P05-OIDC-08-A01.md). **P05-OIDC-08-A01 (2026-11-23) latest synthetic contract status:** [Run #102](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/102) / Job #218 **FAIL** after `docker compose config` PASS; diagnostics **VERIFIED** null `command` and `entrypoint` on all five services, correcting previous Run #101 runtime-default false positive. Next strict normalized zero-replica `DEPLOY_DISABLED` rule **FAIL** with exact field/type UNKNOWN, so all 25 original and four added runtime security negative checks **NOT EXECUTED**. Manual-only/no-resource-action policy PASS and runner job cleanup observed. Full synthetic production-config gate **BLOCKED**; no real TLS/DNS/secrets/deploy or actual Login/MFA/Console acceptance. Prior source-built imported Login V2 real **disposable** Run #99 remains SUCCESS. [A01 report](P05-OIDC-08-A01.md).
**P05-OIDC-08-A02 (2026-11-23) synthetic security acceptance status:** Gitea [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) Job #219 **FAILURE**; Compose `config --quiet` PASS, source five `replicas: 0` PASS, normalized `deploy.replicas` **integer zero in all five** VERIFIED, but **all five contain additional deploy fields**, name/type/effect UNKNOWN. Strict `DEPLOY_DISABLED` rejects extra keys; **25+4+3 negative fixtures NOT EXECUTED**. Manual-only/no Docker resource action safety PASS, runner task cleanup observed. Full static contract **BLOCKED**, production HTTPS/domains/keys/backups/Console/MFA/SSO NOT VERIFIED. Earlier real disposable custom Login V2 Run #99 **SUCCESS** unaffected. [A02 operator guide](P05-OIDC-08-A02.md). **P05-OIDC-08-A02 (2026-11-23) synthetic security acceptance status:** Gitea [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) Job #219 **FAILURE**; Compose `config --quiet` PASS, source five `replicas: 0` PASS, normalized `deploy.replicas` **integer zero in all five** VERIFIED, but **all five contain additional deploy fields**, name/type/effect UNKNOWN. Strict `DEPLOY_DISABLED` rejects extra keys; **25+4+3 negative fixtures NOT EXECUTED**. Manual-only/no Docker resource action safety PASS, runner task cleanup observed. Full static contract **BLOCKED**, production HTTPS/domains/keys/backups/Console/MFA/SSO NOT VERIFIED. Earlier real disposable custom Login V2 Run #99 **SUCCESS** unaffected. [A02 operator guide](P05-OIDC-08-A02.md).
**P05-OIDC-08-A03 (2026-11-23) static production-config contract latest:** [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) / Job #220 **FAILURE**. Docker Compose static config PASS. Normalized all five `replicas` int zero, with exactly **empty `resources: {}` and `placement: {}`** in deploy mappings (safe diagnostics VERIFIED); previous `DEPLOY_DISABLED` blocker passed. Next `SERVICE_SECRET_REFS` FAIL, exact normalized secret grant source/target semantics UNKNOWN. The original 25 + runtime 4 + replica 3 + deploy 8 negative cases are **NOT EXECUTED**, not accepted. Manual-only/no-resource-action step and runner job cleanup PASS. Full synthetic contract and real production HTTPS/DNS/secrets/backup/Console/MFA/SSO still BLOCKED; imported custom Login V2 real disposable browser OIDC [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) remains previously accepted. [A03 details](P05-OIDC-08-A03.md).
+6
View File
@@ -178,3 +178,9 @@ Approved baseline `b3841d8c05d6b47ceaf1dbc5f7103b8de4f256e6`, accepted [Run #96]
- `docker compose config --quiet` PASS, source checked five `replicas:0` PASS. New type-only diagnostics: **all five normalized deploy mappings are objects with integer `replicas:0`, plus extra unknown fields**. Strict `DEPLOY_DISABLED` rule rejects the additional fields, hence CI terminal FAIL. Normalized replicas are **not** missing, string or nonzero. Extra key names/semantics **UNKNOWN**. - `docker compose config --quiet` PASS, source checked five `replicas:0` PASS. New type-only diagnostics: **all five normalized deploy mappings are objects with integer `replicas:0`, plus extra unknown fields**. Strict `DEPLOY_DISABLED` rule rejects the additional fields, hence CI terminal FAIL. Normalized replicas are **not** missing, string or nonzero. Extra key names/semantics **UNKNOWN**.
- Workflow-safety `always()` PASS and runner task cleanup observed. **All 25 original, 4 runtime and 3 replica negatives NOT EXECUTED**. No actual HTTPS/DNS/production secret/login or image/server deploy. - Workflow-safety `always()` PASS and runner task cleanup observed. **All 25 original, 4 runtime and 3 replica negatives NOT EXECUTED**. No actual HTTPS/DNS/production secret/login or image/server deploy.
- Phase outcome **PARTIAL RCA PASS / OVERALL CONTRACT ACCEPTANCE BLOCKED**. Next separately approved `P05-OIDC-08-A03`: validator-only safe extra deploy-key classification and evidence-proven narrow inert-default handling, then exactly one independent static CI run to reach positive and negative checks. [Forensic notes](../notes/P05-OIDC-08-A02.md), [operator report](P05-OIDC-08-A02.md). - Phase outcome **PARTIAL RCA PASS / OVERALL CONTRACT ACCEPTANCE BLOCKED**. Next separately approved `P05-OIDC-08-A03`: validator-only safe extra deploy-key classification and evidence-proven narrow inert-default handling, then exactly one independent static CI run to reach positive and negative checks. [Forensic notes](../notes/P05-OIDC-08-A02.md), [operator report](P05-OIDC-08-A02.md).
## P05-OIDC-08-A03 — Extra deployment defaults resolved, next secret-grant blocker (2026-11-23)
Approved baseline `b3b1878e03b3d189ae97ce24a87d6d87c6151811`, pre-source note-first commit `756f3e134affcf908c3cce800cd177d78c192c78`. **Exactly one** source change in `tests/ci/production_contract/validate.py`, tested source SHA `7954938fcee4d11c0b27751c7cf7abdcc64cd243`; all Compose/JSON/workflow/Auth.js/Login/backend/packages read-only. **Exactly one** [Gitea Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) / Job #220 **COMPLETED FAILURE**: toolchain, checkout, static Compose config PASS; all five source and normalized zero replicas and empty `resources: {}` / `placement: {}` verified. The previous `DEPLOY_DISABLED` false-positive was passed on the checked path. Strict next `SERVICE_SECRET_REFS` FAIL before full positive markers or any of **40** negative fixtures (25+4+3+8). Manual workflow-safety `always()` PASS; runner-owned task container/two volumes/network removed. No repeated CI, post-run source patch, local application test, real DNS/TLS/secret, image build or deployment.
**Decision:** A03 partial RCA PASS / full synthetic contract security acceptance BLOCKED. Next separately approved `P05-OIDC-08-A04`: validator-only safe type/classification for service secret grants and exact expected canonical source/target mapping; preserve 40 negative fixtures, add focused secret-grant negatives, one new manual static-only run and documentation closure. [Forensic notes](../notes/P05-OIDC-08-A03.md) and [operator guide](P05-OIDC-08-A03.md).
+4
View File
@@ -158,3 +158,7 @@ Existing `deployment/production-contract/compose.ci.yaml` remains purposely non-
## P05-OIDC-08-A02 — static result, not an installation instruction ## P05-OIDC-08-A02 — static result, not an installation instruction
The unchanged `deployment/production-contract/compose.ci.yaml` is *non-deployable* (`synthetic.invalid` images, zero replicas, private network, name-only external secrets); never start/build/pull it or apply it to real Coolify/VPS. [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) checked five source and five JSON normalized integer-zero replicas, but extra normalized `deploy` object fields failed the strict security allowlist. Names/types unknown; all 32 planned invalid fixtures NOT EXECUTED. Do not loosen `DEPLOY_DISABLED`, alter DNS/TLS/keys or call a real deployment. Later A03 is validator-only normalization RCA, separately approved. The unchanged `deployment/production-contract/compose.ci.yaml` is *non-deployable* (`synthetic.invalid` images, zero replicas, private network, name-only external secrets); never start/build/pull it or apply it to real Coolify/VPS. [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) checked five source and five JSON normalized integer-zero replicas, but extra normalized `deploy` object fields failed the strict security allowlist. Names/types unknown; all 32 planned invalid fixtures NOT EXECUTED. Do not loosen `DEPLOY_DISABLED`, alter DNS/TLS/keys or call a real deployment. Later A03 is validator-only normalization RCA, separately approved.
## P05-OIDC-08-A03 — synthetic-only status, no runtime setup
**Do not deploy** `deployment/production-contract/compose.ci.yaml`; it has reserved `synthetic.invalid` images, zero replicas, a private network and unresolved external secret placeholder names. A03 [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) verified five source `replicas: 0`, five normalized integer zeros and harmless empty Compose `resources: {}` / `placement: {}`, but **failed** strict `SERVICE_SECRET_REFS` before all 40 negative tests ran. The actual normalized secret grant shape is not known; never work around the failure by copying real keys, disabling secret validation, running `up` or contacting live `auth.vib.tools`/`account.vib.tools` endpoints. Only a separately approved A04 validator-only RCA may change this CI contract; production HTTPS/TLS/backup/SSO remains independently unverified. See [A03 operator report](P05-OIDC-08-A03.md).
+4
View File
@@ -117,3 +117,7 @@ If master-key or DB recovery is needed, preserve existing key/volumes and use an
## P05-OIDC-08-A02 — normalized replicas are integer zero; unknown extra deploy fields ## P05-OIDC-08-A02 — normalized replicas are integer zero; unknown extra deploy fields
In [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103), `ZITPLANE_P08_SOURCE_ALL_FIVE_REPLICAS_ZERO_PASS` proves the canonical fixture's five explicit zero declarations; all five `ZITPLANE_P08_NORMALIZED_DEPLOY_*_REPLICAS_INT_ZERO` markers prove the normalized JSON retained integer zero. But `*_UNEXPECTED_FIELDS_PRESENT` on all five precedes `ZITPLANE_P08_FAIL_CLOSED_DEPLOY_DISABLED`. **Do not troubleshoot this as a replica type/string/missing problem** or allow arbitrary deploy keys; actual extra field names were not logged, so no confident classification of their harmlessness exists. Only next independently approved A03 can add safe finite-allowlist key/type diagnostics and adjust inert metadata narrowly if proven; preserve fail-closed rejection of actual deployment behavior, all 32 negatives, HTTP/wildcard/ports/secrets guardrails. Never output raw normalized JSON/credentials or run synthetic Compose `up`/build/pull. [Detailed report](P05-OIDC-08-A02.md). In [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103), `ZITPLANE_P08_SOURCE_ALL_FIVE_REPLICAS_ZERO_PASS` proves the canonical fixture's five explicit zero declarations; all five `ZITPLANE_P08_NORMALIZED_DEPLOY_*_REPLICAS_INT_ZERO` markers prove the normalized JSON retained integer zero. But `*_UNEXPECTED_FIELDS_PRESENT` on all five precedes `ZITPLANE_P08_FAIL_CLOSED_DEPLOY_DISABLED`. **Do not troubleshoot this as a replica type/string/missing problem** or allow arbitrary deploy keys; actual extra field names were not logged, so no confident classification of their harmlessness exists. Only next independently approved A03 can add safe finite-allowlist key/type diagnostics and adjust inert metadata narrowly if proven; preserve fail-closed rejection of actual deployment behavior, all 32 negatives, HTTP/wildcard/ports/secrets guardrails. Never output raw normalized JSON/credentials or run synthetic Compose `up`/build/pull. [Detailed report](P05-OIDC-08-A02.md).
## P05-OIDC-08-A03 — additional deploy keys classified, next SERVICE_SECRET_REFS guard failed
The previous [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) showed unknown extra deploy keys. [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) now identifies them **exactly**: normalized `resources: {}` and `placement: {}` on each of five zero-replica synthetic services. Only these safely empty known defaults can be tolerated; arbitrary populated mode/resources/placement/update/restart policies, unknown keys, nonzero replicas, public ports or executable runtime config remain disallowed. The validator reached `ZITPLANE_P08_FAIL_CLOSED_SERVICE_SECRET_REFS`. Current `service_secret_refs()` accepts string entries or restricted source/target dictionaries and checks `target == source`; it has **no safe per-entry log**, so do not presume a particular path discrepancy. A04 (requires separate approval) must log only fixed source/target **classification** of known placeholder grants, never actual values/secrets or raw Compose JSON, then accept only evidence-proven canonical mapping, run all 40+ security negatives in one new CI. Do not modify deployment/CI workflow or execute `docker compose up`, real DNS/SSL or credential actions. [Full A03 evidence](P05-OIDC-08-A03.md).
+4
View File
@@ -200,3 +200,7 @@ Exactly one manual [Gitea Run #102](https://dev.ivib.cc/vibtools/ZitPlane/action
## P05-OIDC-08-A02 — five normalized zero replicas confirmed, unknown extra deploy keys ## P05-OIDC-08-A02 — five normalized zero replicas confirmed, unknown extra deploy keys
Exactly one existing manual Gitea [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) / Job #219 `completed/failure` at source `45a2edb854acd98546e60a68482075bc5f742bd2`. Unchanged synthetic `compose.ci.yaml` parses under `docker compose config --quiet` **PASS**. Stdlib validator independently confirmed all five tracked source `deploy.replicas: 0` declarations and read the canonical Compose JSON: **each** of five service `deploy` mappings retained a true JSON/Python **integer zero** `replicas` property, **but each also contained additional unknown top-level deploy keys**. Strict `set(deploy).issubset({"replicas"})` therefore fail-closed with `ZITPLANE_P08_FAIL_CLOSED_DEPLOY_DISABLED`. Extra key **names, types and effects NOT VERIFIED**; do not infer harmlessness. Source original 25 + four runtime + three new replica negatives **NOT EXECUTED**; separate `always()` manual-only/no Docker lifecycle action checker **PASS**. Runner task container/two volumes/network removed. No application service or production DNS/TLS/secret/deployment touched. Next independently approved `P05-OIDC-08-A03`: validator-only safe exact extra-key classification and evidence-proven inert-default narrowing, one manual CI; do not change Compose/workflow. Prior real imported Login V2 OIDC Run #99 separate success. Exactly one existing manual Gitea [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) / Job #219 `completed/failure` at source `45a2edb854acd98546e60a68482075bc5f742bd2`. Unchanged synthetic `compose.ci.yaml` parses under `docker compose config --quiet` **PASS**. Stdlib validator independently confirmed all five tracked source `deploy.replicas: 0` declarations and read the canonical Compose JSON: **each** of five service `deploy` mappings retained a true JSON/Python **integer zero** `replicas` property, **but each also contained additional unknown top-level deploy keys**. Strict `set(deploy).issubset({"replicas"})` therefore fail-closed with `ZITPLANE_P08_FAIL_CLOSED_DEPLOY_DISABLED`. Extra key **names, types and effects NOT VERIFIED**; do not infer harmlessness. Source original 25 + four runtime + three new replica negatives **NOT EXECUTED**; separate `always()` manual-only/no Docker lifecycle action checker **PASS**. Runner task container/two volumes/network removed. No application service or production DNS/TLS/secret/deployment touched. Next independently approved `P05-OIDC-08-A03`: validator-only safe exact extra-key classification and evidence-proven inert-default narrowing, one manual CI; do not change Compose/workflow. Prior real imported Login V2 OIDC Run #99 separate success.
## P05-OIDC-08-A03 — inert Compose deploy fields verified; normalized secret grant blocks full CI
The unchanged **manual-only** `.gitea/workflows/p05-production-contract-dry-run.yml` dispatched exactly once in [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104), Job #220, **completed/failure** on immutable source `7954938fcee4d11c0b27751c7cf7abdcc64cd243`. CLI install/checkout and `docker compose ... config --quiet` **PASS**. The only source patch, `tests/ci/production_contract/validate.py`, pinned the original `compose.ci.yaml` Git blob, safely classified named normalized `deploy` entries and allowed only structurally empty/null known deployment metadata. Five normalized `deploy` mappings each had `replicas: 0` integer, `resources: {}`, `placement: {}` and no unknown-key marker, **VERIFIED**. The prior `DEPLOY_DISABLED` barrier was passed on the execution path, then **`ZITPLANE_P08_FAIL_CLOSED_SERVICE_SECRET_REFS`** stopped the validator. Secret list item/target detail **UNKNOWN**; 25 original, 4 runtime, 3 replica and 8 deploy negative assertions all **NOT EXECUTED**. `always()` manual-only/no Docker lifecycle command checker **PASS**, runner task container/two volumes/network removed as job logs show. No app services or production state touched. Next proposed independently approved A04: only validator source, safe grant type/target classification, then one manual CI; no new run in A03.
+7
View File
@@ -234,3 +234,10 @@ Run #101 source `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a`: Compose parse PASS,
- **Strict read-only:** `deployment/production-contract/compose.ci.yaml` and `routing-policy.json`, existing `.gitea/workflows/p05-production-contract-dry-run.yml`, all other tests and Login/Auth.js/backend, lockfiles, runner and infrastructure. - **Strict read-only:** `deployment/production-contract/compose.ci.yaml` and `routing-policy.json`, existing `.gitea/workflows/p05-production-contract-dry-run.yml`, all other tests and Login/Auth.js/backend, lockfiles, runner and infrastructure.
- **CI Run #103 terminal:** Compose config and five original-zero fixture declarations PASS; five normalized `replicas` int zero PASS; **five unexpected extra deploy fields PRESENT**, exact name unknown; `DEPLOY_DISABLED` rejection FAIL; all 32 negative fixture cases NOT EXECUTED. Existing `notes/P05-OIDC-08-A02.md`, `docs/P05-OIDC-08-A02.md` record honest security-blocking result. - **CI Run #103 terminal:** Compose config and five original-zero fixture declarations PASS; five normalized `replicas` int zero PASS; **five unexpected extra deploy fields PRESENT**, exact name unknown; `DEPLOY_DISABLED` rejection FAIL; all 32 negative fixture cases NOT EXECUTED. Existing `notes/P05-OIDC-08-A02.md`, `docs/P05-OIDC-08-A02.md` record honest security-blocking result.
- Next source edit only with separately approved `P05-OIDC-08-A03`; no post-dispatch patch in this phase. - Next source edit only with separately approved `P05-OIDC-08-A03`; no post-dispatch patch in this phase.
## P05-OIDC-08-A03 — exact changed-file map and accepted evidence boundary
- **Only application/CI source edited**: `tests/ci/production_contract/validate.py` (tested `7954938fcee4d11c0b27751c7cf7abdcc64cd243`). Added pinned synthetic fixture Git SHA check, known deployment metadata type-only diagnostics, allow-only-empty metadata gate and eight negative fixture definitions.
- **Read-only preserved**: `deployment/production-contract/{compose.ci.yaml,routing-policy.json}`, prior manual `.gitea/workflows/p05-production-contract-dry-run.yml`, all `auth/**`, `users/**`, `core/**`, other tests, package files/locks/runner/production.
- **Phase evidence and user guide**: `notes/P05-OIDC-08-A03.md`, `docs/P05-OIDC-08-A03.md` plus synchronized notes/project/docs and associated README/MINIFEST. Source five zero replicas, normalized empty resources/placement defaults VERIFIABLE; **full static contract NOT accepted** due `SERVICE_SECRET_REFS`. All 40 invalid fixtures source present but NOT EXECUTED.
- **Next proposed A04** only validator service-secret-grant safe-shape RCA under separate approval. No post-run A03 source fix.
+6
View File
@@ -185,3 +185,9 @@ Run #99 confirmed input `644 UID:GID 0:0`, copied output/image executable and ac
`tests/ci/production_contract/validate.py::verify_tracked_zero_replica_fixture()` reads ONLY the checked-in `deployment/production-contract/compose.ci.yaml` as text, requires exact five service blocks and one `deploy: replicas: 0` per block, prints a static PASS marker. Confirmed **PASS** in Run #103. `diagnose_normalized_deploy()` examines only recognized five service IDs, `deploy` mapping presence/type, unexpected extra field **existence** and `replicas` zero/nonzero TYPE classes without printing arbitrary keys/values. In Run #103, all 5 `deploy` mappings were OBJECT with `REPLICAS_INT_ZERO` and `UNEXPECTED_FIELDS_PRESENT`. Actual unknown key names were intentionally not logged. `tests/ci/production_contract/validate.py::verify_tracked_zero_replica_fixture()` reads ONLY the checked-in `deployment/production-contract/compose.ci.yaml` as text, requires exact five service blocks and one `deploy: replicas: 0` per block, prints a static PASS marker. Confirmed **PASS** in Run #103. `diagnose_normalized_deploy()` examines only recognized five service IDs, `deploy` mapping presence/type, unexpected extra field **existence** and `replicas` zero/nonzero TYPE classes without printing arbitrary keys/values. In Run #103, all 5 `deploy` mappings were OBJECT with `REPLICAS_INT_ZERO` and `UNEXPECTED_FIELDS_PRESENT`. Actual unknown key names were intentionally not logged.
`validate_compose()` continues to reject build/executable overrides, public ports, Docker socket, privilege, unexpected images, nonzero replicas and unfamiliar `deploy` keys, with conditional handling of proven source-zero normalized omission. The **actual** normalized mapping had extra keys, so strict `DEPLOY_DISABLED` **FAIL**, before final positive marker or `negative_cases()`. All original 25, prior 4 runtime and 3 additional replica negatives remain **SOURCE PRESENT / NOT CI EXECUTED**. The unchanged `workflow_safety()` checker **PASS**. Future A03 must first identify extra normalized deploy key name/safe type and only narrow-allow inert defaults if truly proven, retaining fail-closed security. No app/backend/Compose/workflow/source other than validator changed. `validate_compose()` continues to reject build/executable overrides, public ports, Docker socket, privilege, unexpected images, nonzero replicas and unfamiliar `deploy` keys, with conditional handling of proven source-zero normalized omission. The **actual** normalized mapping had extra keys, so strict `DEPLOY_DISABLED` **FAIL**, before final positive marker or `negative_cases()`. All original 25, prior 4 runtime and 3 additional replica negatives remain **SOURCE PRESENT / NOT CI EXECUTED**. The unchanged `workflow_safety()` checker **PASS**. Future A03 must first identify extra normalized deploy key name/safe type and only narrow-allow inert defaults if truly proven, retaining fail-closed security. No app/backend/Compose/workflow/source other than validator changed.
## P05-OIDC-08-A03 — new inert metadata function, safe diagnostics, next grant RCA
`tests/ci/production_contract/validate.py::inert_deploy_metadata(key,value)` recognizes **only a finite list of Docker Compose deploy metadata keys**, accepting null/empty structures (including resources with strictly empty `limits`/`reservations`) and rejecting populated deployment behavior, `mode` strings, unknown keys and nonzero or missing replicas. `safe_deploy_shape()` and `diagnose_normalized_deploy()` emit predefined known field names and fixed shape categories, never arbitrary input keys or values. `verify_tracked_zero_replica_fixture()` now validates unchanged synthetic fixture Git blob SHA `930c0b0fbfb518555436acd6f0b4bb3bdd421937` plus exact five source `replicas:0`. Eight hostile extra-deploy negative fixtures added to preserved 25+4+3.
Actual [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) confirmed `resources: {}` and `placement: {}` on five services, all normalized replicas integer zero, with old `DEPLOY_DISABLED` rejection no longer emitted. **New fail-closed `SERVICE_SECRET_REFS`** came from pre-existing `service_secret_refs()`: it allows string secret entries or restricted dict source/target where `target == source` and then compares expected service grants. The actual normalized grant structure was **not logged**, so a source/target mismatch is only a hypothesis. All 40 negative cases remained NOT EXECUTED. A04 may add value-free per-entry classification and narrowly adapt to actual canonical target if independently verified, without exposing secret values or broadening permissions. No other source/security checks changed.
+4
View File
@@ -123,3 +123,7 @@ The same manual-only Docker Compose `config` + Python stdlib pipeline was used i
## P05-OIDC-08-A02 — static Compose normalization evidence, not production dependencies ## P05-OIDC-08-A02 — static Compose normalization evidence, not production dependencies
[Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) uses **unchanged** manual workflow, Git/python3 stdlib/Docker Compose CLI only; no new external app dependencies, images, credentials or actual production endpoint. Source `45a2edb854acd98546e60a68482075bc5f742bd2` verified original five `replicas: 0` declarations and normalized Docker Compose JSON integer-zero `replicas` for every synthetic service. The strict `deploy` keys check failed only because **additional unknown metadata fields** were present in all normalized objects. Do **not** infer those fields' names, allow production behavior, use the synthetic fixture as actual Compose, or start services. CI safety passed; 32 malformed contract assertions were NOT EXECUTED. Production TLS, secret vault and encrypted restore continue to require separate authorization. [Run #103](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/103) uses **unchanged** manual workflow, Git/python3 stdlib/Docker Compose CLI only; no new external app dependencies, images, credentials or actual production endpoint. Source `45a2edb854acd98546e60a68482075bc5f742bd2` verified original five `replicas: 0` declarations and normalized Docker Compose JSON integer-zero `replicas` for every synthetic service. The strict `deploy` keys check failed only because **additional unknown metadata fields** were present in all normalized objects. Do **not** infer those fields' names, allow production behavior, use the synthetic fixture as actual Compose, or start services. CI safety passed; 32 malformed contract assertions were NOT EXECUTED. Production TLS, secret vault and encrypted restore continue to require separate authorization.
## P05-OIDC-08-A03 — no new production or runtime dependency
A03 retains **the exact existing manual workflow**: a temporary Gitea Node Alpine runner with Git, Python stdlib and Docker Compose CLI invokes only Compose `config`, Python validation and the always safety check. No package manifest, lockfile, registry image, real master key, PAT, DNS/TLS certificate or production infrastructure was modified. A03 validator source adds only stdlib `hashlib` and safe in-memory static fixture rules. The unchanged `synthetic.invalid` images, zero replicas and symbolic external secrets are never used as deployment. [Run #104](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/104) confirms Compose parse PASS, original five source zeros, normalized integer zeros and empty deploy resources/placement; later strict secret grant normalization FAIL, with **40 negative cases unexecuted**. No local app builds/tests or production deployment. Consult `notes/P05-OIDC-08-A03.md`.