docs(oidc): synchronize Run 101 phase status and static-only operator guidance

This commit is contained in:
victorsteele428 committed 2026-11-23 12:42:01 +00:00
1 parent ce116a6b4c
commit 354cfdf9c4
5 files changed
+23

No files matched your search

+4
View File
@@ -32,3 +32,7 @@ Each external SaaS authenticates through ZITADEL using OIDC authorization code +
## P05-OIDC-07 — proposed production two-origin trust architecture (not live)
`https://auth.vib.tools` is the **proposed single ZITADEL OIDC issuer** with TLS 443 edge, exact `/ui/v2/login/**` route to private imported Login V2 port 3000 and remaining OIDC discovery/API/`/ui/console/**` routed via **h2c HTTP/2** to official ZITADEL Go port 8080; neither internal server nor PostgreSQL port 5432 is host published. `https://account.vib.tools` is the **proposed distinct relying-party HTTPS origin**, not a second issuer, with registered `/api/auth/callback/zitadel`; issuer/Host/forwarded headers must be canonical and scrubbed at edge, and production session/cookies tested. Private Login IAM_LOGIN_CLIENT token, separate break-glass IAM_OWNER, 32-byte master-key custody, encrypted PostgreSQL restore and immutable images are mandatory security/recovery design gates. This is **documentation-only**, not validated DNS/TLS or runtime. Detailed source/evidence/next CI-only static dry-run proposal: `notes/P05-OIDC-07.md`, `docs/P05-OIDC-07.md`.
## P05-OIDC-08 — intended synthetic routing topology (not live or accepted)
The dedicated `deployment/production-contract/routing-policy.json` models exactly one **proposed** `https://auth.vib.tools` OIDC issuer: Login prefix `/ui/v2/login` → synthetic private `zitadel-login:3000`, Console `/ui/console` and API `/` → synthetic `zitadel-api:8080` requiring **h2c**, plus `https://account.vib.tools` → synthetic private Account service, exact confidential OIDC callback. Strict Host reject and trusted Forwarded strip/replace are **declarative policy values, not running proxy behavior**. The associated Compose service images resolve to reserved `synthetic.invalid`, replicas are zero, no ports or real credentials. [Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) parsed Compose successfully but normalized validation failed; full 25 negative checks not run, so policy gate NOT ACCEPTED. Real production DNS/SSL infrastructure remains unverified. See `notes/P05-OIDC-08.md`.
+2
View File
@@ -63,3 +63,5 @@ Future feature additions need an evidence-backed status update here, an exact de
**P05-OIDC-06-A01 accepted custom source-built Login V2 (2026-11-23):** Actual [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) job #214 **SUCCESS** on immutable `7d6b6d0704b9e39bcb6e74257dadf0b64a19fc0f`. Git original entrypoint mode `100644` produced disposable copied mode `644`; CI-only temporary copy `755`, actual Docker image default-user executable gate and running custom-image identity PASS. Four services/private issuer and real Chromium **imported custom Login V2** password→PKCE/state/nonce→Auth.js callback/subject/Account protected API/page, anonymous/invalid callback negatives, portal-local logout PASS. Dual exact-owned cleanup PASS. **This verifies custom Login runtime, not production HTTPS/domain, MFA/passkey, Admin Console, federated logout or multi-app SSO.** [Guide](P05-OIDC-06-A01.md).
**P05-OIDC-07 production readiness status (2026-11-23):** Imported **custom source-built** Login V2 / real Chromium OIDC→Auth.js protected Account/session/negative/logout and dual cleanup **VERIFIED in disposable Run #99** (unchanged). Account `validatedUrl()` production HTTPS-origin guard, PKCE/state/nonce, subject/expiry checks and existing UI/identity API **IMPLEMENTED**. Proposed `auth.vib.tools` single issuer and `account.vib.tools` RP, secure TLS/h2c ingress, trusted headers, registered exact callback/real HTTPS Secure/SameSite cookies, Console cutover, production secret manager/32-byte master-key escrow, backups+isolated restore, SMTP, immutable image release and monitoring **UNVERIFIED / BLOCKED**. MFA/passkey, federated logout and second-app SSO **NOT EXECUTED**. These domain names are hypothetical, and this read-only phase made **no new source/CI/deployment changes**. [Audit](P05-OIDC-07.md).
**P05-OIDC-08 (2026-11-23) static contract result:** CI-only synthetic proposed issuer/routing policy, 5 zero-replica `synthetic.invalid` services and stdlib validator **IMPLEMENTED**. [Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) Job #217 **FAILURE**: Compose `config --quiet` **PASS**; strict normalized `RUNTIME_BEHAVIOR` validation **FAIL** (unknown normalized field), so 25 negative security fixtures **NOT EXECUTED**; manual-only/no-resource-action workflow safety **PASS**. Nothing was deployed and no real DNS/TLS/keys or users verified. Earlier source-built custom Login real OIDC [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) **PASS** remains a separate disposable HTTP localhost acceptance; public HTTPS/Console/MFA/SSO/backup **BLOCKED**. [P05-OIDC-08 report](P05-OIDC-08.md).
+7
View File
@@ -157,3 +157,10 @@ Approved baseline `b3841d8c05d6b47ceaf1dbc5f7103b8de4f256e6`, accepted [Run #96]
- **Production-context verdict BLOCKED / NOT VERIFIED:** proposed `https://auth.vib.tools` single issuer and Login/Console, `https://account.vib.tools` relying party exact callback, HTTPS/h2c/forwarded Host and cookies, IAM_LOGIN_CLIENT/break-glass IAM_OWNER/master-key custody, encrypted PostgreSQL recovery, SMTP, digest-pinned images, SBOM/signature/rollback and operations contracts were documented, **not implemented or accepted in production**. Prior P05-OIDC-05 architecture note was superseded only in respect of **custom Login runtime** by Run #99; production findings remain.
- **Write scope** `notes/**`, relevant `project/**`, `docs/**` and necessary README/MINIFEST only; all source/CI/config/infrastructure strictly read-only. Details: [forensic design](../notes/P05-OIDC-07.md), [operator guide](P05-OIDC-07.md).
- **Next proposed separately approved P05-OIDC-08:** new synthetic-only CI dry-run contract files, one manual static/negative test Gitea job, **no production/deploy/real TLS**. Exact whitelist in `notes/P05-OIDC-07.md`.
## P05-OIDC-08 — Synthetic CI-only production contract, terminal FAILURE (2026-11-23)
- Verified baseline `4c4bb8155fb6c3c57f935d0c98af6a40325c60be`, pre-source Scope Lock note first committed at `3fc49916cac1301dbbf9a0aecb89f0a558279b65`. Exactly eight approved new workflow/fixture/validator source files, unchanged existing protected Login/Auth.js/dev Compose/CI tests/packages; source tested SHA `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a`.
- New manual workflow `p05-production-contract-dry-run.yml` and five-service `synthetic.invalid`, zero-replica, private-network, no-host-port Compose contract are **non-deployable**. Proposed `https://auth.vib.tools` issuer and `https://account.vib.tools` origin/callback NOT live checked.
- Exactly one [Gitea Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) / Job #217 **COMPLETED FAILURE**: toolchain+checkout PASS, `docker compose ... config --quiet` PASS, strict Python normalized service validator **FAIL** at `ZITPLANE_P08_FAIL_CLOSED_RUNTIME_BEHAVIOR`; offending field/type not exposed; all 25 in-memory negative cases **NOT EXECUTED**. `always()` workflow static manual-only/no-resource-action check PASS. Gitea job container/volumes/network removed; no application services deployed.
- **Phase outcome: SOURCE IMPLEMENTED / STATIC COMPOSE PARSE PASS / FULL SECURITY CONTRACT ACCEPTANCE BLOCKED**. No local tests, reruns, live DNS/SSL, real secrets/users, image pulls/build, production deployment. Next separately approved `P05-OIDC-08-A01` limits source writes to `tests/ci/production_contract/validate.py` for safe normalized-key RCA and narrow inert-default normalization, retaining actual behavior rejection. See [notes](../notes/P05-OIDC-08.md) and [operator guide](P05-OIDC-08.md).
+6
View File
@@ -144,3 +144,9 @@ Do **not** modify imported upstream Login source or developer Compose, publish t
For a later separately approved production rollout, plan **one** HTTPS ZITADEL issuer `https://auth.vib.tools` with `/ui/v2/login/**` to private custom Login and the remaining ZITADEL API/Console to internal HTTP/2 h2c; a separate HTTPS Account origin `https://account.vib.tools` and exact OIDC callback `https://account.vib.tools/api/auth/callback/zitadel`. Both are proposed hostnames, **not live verified DNS/certificates**. Browser cookies, Host/Forwarded headers, proxy IP trust, no public backend ports, Login client credentials, master-key escrow, secure DB backup/restore, SMTP, monitored TLS and rollback require independent acceptance.
**Do not copy** `deployment/docker/compose.backend.dev.yaml`, its `localhost:8080`, `EXTERNALSECURE=false`, bootstrap first-admin, locally generated `.env`, dev PAT, DB volume or Docker socket mount into production. A protected **32-byte** ZITADEL master key plus matching DB backup must be recoverable; keep Login `IAM_LOGIN_CLIENT` separate from emergency `IAM_OWNER`. Do not automatically switch instance-wide Login V2 before real Console login and break-glass rollback are proven. Current Account `AUTH_TRUST_HOST=true` must be used only behind edge-sanitized forwarded headers. This document is a **design**, not a shell setup guide or deployment. [P05-OIDC-07 operator guide](P05-OIDC-07.md).
## P05-OIDC-08 — NON-DEPLOYABLE static contract, not a setup command
`deployment/production-contract/compose.ci.yaml` contains only reserved-domain synthetic images, zero replicas, private network, no ports and external *placeholder names* for secrets. **NEVER run `docker compose up`, `run`, `build` or `pull` against it; never use this fixture as a production Coolify/VPS installer.** `routing-policy.json` specifies *proposed* HTTPS issuer `https://auth.vib.tools`, separate `https://account.vib.tools` and exact callback but does not configure a real reverse proxy. The manual Gitea workflow is limited to Compose `config` and Python-only static checks.
[Gitea Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) on `2ca1b4493bd47209d0c7eabf7453feaeb1f5174a` confirmed Compose syntax PASS but **FAILED** its normalized service runtime-field security validator, before 25 deliberately malformed cases were run. Workflow static no-lifecycle policy PASS; this is not live TLS/credential/backup acceptance. Wait for separately approved `P05-OIDC-08-A01` normalized JSON key-only RCA; do not disable security checks or invoke production endpoints. [Full operator status](P05-OIDC-08.md).
+4
View File
@@ -105,3 +105,7 @@ If a previous imported image fails with `exec: "/app/entrypoint.sh": permission
If a later public login is broken, **do not** assume [Run #99](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/99) verified HTTPS: it tested custom Login using isolated HTTP localhost. With separately authorized production access, first compare exact external `https://auth.vib.tools` issuer and advertised OIDC discovery (no port/scheme mismatch), registered Account callback, certificate chain, strict Host/Forwarded rewrites and HTTP/2 h2c to API (Console gRPC-Web). Check only **redacted** response status, TLS/cookie flags, Login health and Console session behavior. Never share session cookies, auth codes, bearer tokens, PATs, callback URLs with query values, private keys or unredacted logs. Do not disable PKCE/state/nonce, relax redirect allowlist or set `AUTH_TRUST_HOST` behind an untrusted header path. No live DNS/Coolify/VPS/SSL system was inspected or altered in this phase.
If master-key or DB recovery is needed, preserve existing key/volumes and use an **approved isolated restore**, not blind key regeneration or unattended production restoration. Login V2 instance-wide cutover may lock out Console; require independent vaulted IAM_OWNER emergency access and planned rollback. Detailed prerequisites and gates: [P05-OIDC-07.md](P05-OIDC-07.md).
## P05-OIDC-08 — synthetic Compose parsed but normalized validator refused it
[Run #101](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/101) printed `ZITPLANE_P08_COMPOSE_STATIC_CONFIG_PASS` followed by `ZITPLANE_P08_FAIL_CLOSED_RUNTIME_BEHAVIOR` in the `validate.py` stage. This class means a **normalized Compose service field** intersected the validator's disallowed runtime-behavior keys (`build`, `command`, `entrypoint`, `configs`). It does **not** identify which field was present or prove an unsafe runtime; no normalized JSON/secret values were logged. Don't claim a specific null/default cause or edit the production source/Compose/workflow to work around the guard. The manual-only/no-resource-action `always()` check PASS and the runner cleaned its job environment. 25 negative cases were **NOT EXECUTED**. A separately approved A01 phase may report only safe field name/type classification, accept only evidence-proven inert defaults and reverify all negatives once. Never run the synthetic Compose or access live production for troubleshooting. [Report](P05-OIDC-08.md).