docs(oidc): record Run 105 accepted static policy across project and operator guides
This commit is contained in:
1 parent
d7721e9f41
commit
31044ff83c
8 files changed
+43
No files matched your search
@@ -204,3 +204,11 @@ Exactly one existing manual Gitea [Run #103](https://dev.ivib.cc/vibtools/ZitPla
|
||||
## 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.
|
||||
|
||||
## P05-OIDC-08-A04 — full manually dispatched synthetic production security contract accepted (Run #105)
|
||||
|
||||
**Gitea manual-only [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) / Job #221 `COMPLETED SUCCESS`**, immutable source `daaa8b259a519ae0290ba28936ef2279b3a9172c`, with existing unchanged `.gitea/workflows/p05-production-contract-dry-run.yml` and source `deployment/production-contract/compose.ci.yaml` / `routing-policy.json`. Runner installs Git/Python stdlib/Compose CLI, checks `docker compose ... config --quiet` and pipes normalized **JSON only to static validator**; no application service `up/run/pull/build`. Original synthetic images use `synthetic.invalid`, all five source and normalized replicas integer zero, internal-only network and symbolic external secret refs. Gitea runner independently provisions a temporary job container/volumes/network and cleans its owned task state.
|
||||
|
||||
**RCA verified:** `docker compose config --format json` yields **seven** per-service secret grant dictionary entries with approved symbolic `source` and exact canonical `target` under `/run/secrets/<source>`, not the earlier same-name target assumption. Safe diagnostics verified 7 `OBJECT` + `TARGET_CANONICAL_MOUNT` + `SOURCE_EXPECTED` markers, no sensitive values. Validator now enforces exact six external registry refs/required per-service sets, default-root/read-only mount grant metadata, no duplicates or extra/unknown source/target/fields. Normalized deploy `resources:{}, placement:{}, replicas:int 0` and runtime `command:null, entrypoint:null` remain narrowly allowed inert defaults.
|
||||
|
||||
**All static positive policy gates PASS**: proposed canonical HTTPS issuer/separate Account callback/OIDC policy, Login V2/Console/API h2c route policy, Host/forwarded trust/TLS policy, private internal-only networking, no exposed ports, inline creds, socket, privileged/build/active runtime. **48/48 negative fixtures PASS with exact rejection classes** (25 original, 4 runtime, 3 replica, 8 deploy, 8 new secret grants). Inert-positive and canonical-grant-positive cases PASS. Manual-only/no configured Docker lifecycle action check PASS in validator and `always()` step, job task container/two volumes/network cleanup evidenced. No CI rerun. **This is static synthetic-contract acceptance, not live production HTTPS, image, backup, MFA/passkey or SSO verification.** Prior isolated imported custom Login browser OIDC [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) stands separately. Next proposed P05-OIDC-09 docs-only release preflight requires separate approval.
|
||||
@@ -241,3 +241,10 @@ Run #101 source `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a`: Compose parse PASS,
|
||||
- **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.
|
||||
|
||||
## P05-OIDC-08-A04 — source-only normalizer acceptance and exact changed-file map
|
||||
|
||||
- **Single modified source:** `tests/ci/production_contract/validate.py`, source-tested SHA `daaa8b259a519ae0290ba28936ef2279b3a9172c`; new bounded symbolic service grant source/target/permissions classification, exact required set+duplicate rejection, 8 security-negative in-memory cases, one canonical mount positive case.
|
||||
- **Preserved read-only:** `deployment/production-contract/compose.ci.yaml` Git blob `930c0b0fbfb518555436acd6f0b4bb3bdd421937`, `deployment/production-contract/routing-policy.json`, `.gitea/workflows/p05-production-contract-dry-run.yml`, `auth/**`, `users/**`, `core/**`, all other tests and package locks; no production/runner edits.
|
||||
- **Documentation:** new `notes/P05-OIDC-08-A04.md` scope-first forensic acceptance and `docs/P05-OIDC-08-A04.md` operator guide, synchronized relevant notes/project/docs/README/MINIFEST and tracked inventory.
|
||||
- **Accepted static evidence:** [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) / Job #221 **SUCCESS**, all positive static OIDC/routing/host/secret/internal/no-runtime checks and **48/48 security-negative cases** PASS, manual-only check PASS, runner temporary job resource cleanup PASS. **Live production is not accepted**. Proposed next P05-OIDC-09 production release preflight is doc-only under separate approval.
|
||||
@@ -191,3 +191,9 @@ Run #99 confirmed input `644 UID:GID 0:0`, copied output/image executable and ac
|
||||
`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.
|
||||
|
||||
## P05-OIDC-08-A04 — secret grant normalization functions and complete negative acceptance
|
||||
|
||||
**Only source changed**: `tests/ci/production_contract/validate.py`, tested `daaa8b259a519ae0290ba28936ef2279b3a9172c`. `secret_target_class(source,target)` classifies known same-name vs exact `/run/secrets/<source>` mounts; `safe_root_owner()` requires root 0 and `safe_readonly_mode()` permits exact 0444 default (decimal 292) if metadata supplied. `diagnose_normalized_service_grants()` prints only known service names, item indices and fixed `OBJECT`/`TARGET_CANONICAL_MOUNT`/`SOURCE_EXPECTED`/permissions safety classes, not values. `service_secret_refs()` now rejects unknown fields, wrong target, unsafe UID/GID/mode, duplicates and sources outside the six-symbolic-secret registry; `validate_compose()` compares **exact per-service count and source set**, not normalizer-dependent ordering. `negative_cases()` preserves 25 original, 4 runtime, 3 replica and 8 deploy malformed cases; adds **8 secret-grant negative cases** for missing, duplicated, extra known from wrong service, unknown source, wrong target, unexpected metadata, unsafe UID and world-writable mode, plus a canonical-target positive case. Exact expected error class is mandatory.
|
||||
|
||||
**All checks executed and PASS in [Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105)**: 48/48 negatives, full static positive and manual-only safety. Input raw JSON/env/secret strings never logged by new diagnostics. No source changes to production/login/Account/backend/workflow/Compose, and actual public HTTPS, secret custody/DB recovery, Console/MFA/SSO or deployment remain NOT TESTED.
|
||||
@@ -127,3 +127,7 @@ The same manual-only Docker Compose `config` + Python stdlib pipeline was used i
|
||||
## 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`.
|
||||
|
||||
## P05-OIDC-08-A04 — static-only no new runtime dependencies, accepted CI
|
||||
|
||||
[Gitea Run #105](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/105) source `daaa8b259a519ae0290ba28936ef2279b3a9172c` uses original manually triggered workflow and installed runner Compose CLI + Python stdlib (no manifest or package-lock changes). The standalone validator now classifies exact symbolic secret grant `target` as `/run/secrets/<source>` and rejects unsafe permissions, duplicates, missing and extra grants; normalized seven canonical grants and original source's six symbolically external placeholders are **STATIC VERIFIED**. The fixture remains deliberately **non-deployable**, no real secret source or `docker compose up/build/pull/run` exists in workflow. All 48 negative cases, positive canonical OIDC issuer/Account callback/h2c/Host+Forwarded/no ports and zero-replica policy, workflow-safety checker PASS in one Gitea run. CI runner ephemeral job cleanup observed; no external DNS/TLS, production images/registry/volumes or keys were tested. Subsequent live production rollout must use a separately approved vetted real deployment design and independent security/backup validation.
|
||||
Reference in new issue
Block a user