6.7 KiB
P05-OIDC-09 — Production Release Preflight (Read-only)
Verdict: Forensic documentation audit COMPLETE; production release remains BLOCKED / LIVE NOT VERIFIED. Baseline d3ee3fa4de62463c53d5213c532d097278f928c6. Scope-first note committed before any other changes. No source edit, CI dispatch, local test, build, DNS/TLS query, VPS/Coolify/Cloudflare change, secret or production deployment in this phase.
The existing accepted Gitea Run #105 / Job #221 SUCCESS confirms a deliberately non-deployable synthetic Compose policy with 48/48 security-negative fixtures PASS on source daaa8b259a519ae0290ba28936ef2279b3a9172c. Run #99 SUCCESS confirms actual custom imported Login V2/Chromium/OIDC/Auth.js in disposable HTTP localhost CI. Neither certifies public production availability, image provenance, actual HTTPS, key custody, Console or MFA/SSO.
Production configuration: what exists versus what does not
| Area | Current evidence | Operator disposition |
|---|---|---|
| ZITADEL + Postgres + Traefik | deployment/docker/compose.backend.dev.yaml references Go ZITADEL v4.20.4, PostgreSQL 17.10-alpine and Traefik 3.7.7; localhost HTTP and dev first-admin/PAT |
SOURCE VERIFIED / dev CI verified. Never deploy this developer Compose as-is; official Go is not vendored or release-pinned by digest |
| Imported Login V2 | auth/ui/v2/ source tag v4.20.4; temporary custom source-built Run #99 OIDC PASS, image removed |
CI VERIFIED disposable; production image BLOCKED. Reproducible/digest-pinned, signed/safe artifact not published |
| Account Portal | users/ui/ Auth.js confidential OIDC, HTTPS-origin validation, PKCE/state/nonce, protected session/API and local logout; package-lock.json exists; no Account OCI Dockerfile in tracked tree |
SOURCE + historic CI VERIFIED; production packaging BLOCKED. Automatic token refresh/global logout and portal-native factor management not implemented |
| Synthetic static contract | deployment/production-contract/** and manual .gitea/workflows/p05-production-contract-dry-run.yml |
CI VERIFIED only. Images are synthetic.invalid, replicas zero; never compose up |
| Actual public issuer, Account callback and cookies | Target https://auth.vib.tools, separate https://account.vib.tools, exact /api/auth/callback/zitadel |
LIVE NOT VERIFIED / BLOCKED; no real DNS/certificate/client registration/cookie security evidence |
| Masterkey/PAT/first admin/IAM_OWNER | notes/P05-OIDC-07.md proposes 32-byte ZITADEL master key, vault+break-glass, least-privilege service credentials |
DESIGN ONLY / BLOCKED; no real custody, rotation or tested emergency recovery |
| Encrypted database backup/rollback | Dev named volumes, ephemeral CI persistence/cleanup | BLOCKED; encrypted offsite backup, matching-key escrow, PITR and isolated restore unverified |
| Console/MFA/passkey/SMTP/second SaaS SSO | Imported UI routes and central identity self-service links | SOURCE VERIFIED UI; LIVE NOT VERIFIED. No real Console human, WebAuthn factor, recovery, second client or federated logout acceptance |
| Monitoring/controlled release | Dev healthchecks and CI cleanup; no production signed release workflow | BLOCKED; alerts, RPO/RTO, immutable artifact release, rollback and incident drill missing |
Canonical deployment target — design, not live
Issuer: https://auth.vib.tools on TLS 443. Route /ui/v2/login/** to private Login V2 HTTP port 3000, /ui/console/** and the default remaining ZITADEL API/discovery to private Go port 8080 h2c/HTTP2 (gRPC-Web as required). Trusted edge rejects unknown SNI/Host and rewrites, never trusts user-supplied Forwarded/X-Forwarded-*. No publicly bound DB 5432/API 8080/Login 3000 on either IPv4 or IPv6. Account: https://account.vib.tools, separate HTTPS origin, exact confidential OIDC callback https://account.vib.tools/api/auth/callback/zitadel. Check real production Secure/HttpOnly/SameSite host-scoped cookies; stage HSTS only after all domain/certificate recovery gates.
Operator stop gates and recovery
DO NOT CUT OVER if image source/digest/SBOM/signature and current advisories are not acceptable, master key/PG encrypted backup and matching-key restore not rehearsed, independent IAM_OWNER break-glass unavailable, real Console human access unverified, edge Host/forwarding/h2c/callback tests fail, any API/DB port public, cert renewal unmanaged, first-admin policy/SMTP recovery absent, signed rollback digest lost or monitoring unready. Never replace a persistent database or regenerate an existing master key as a rollout convenience. Keep old image digest/route, reversible migration or validated recovery point, operator-owned rollback decision and audit trail. No actual rollback was performed here.
Minimal independent phase order
- P05-OIDC-10: CI-only imported Login OCI provenance and pinned build evidence, no registry/production.
- P05-OIDC-11: Account OCI packaging and frozen-lock CI provenance separately.
- P05-OIDC-12: Official Go/PG/Traefik digest + CVE/compatibility review.
- P05-OIDC-13: Attested/signed release + non-production registry publish separately from live deploy.
- P05-OIDC-14: Master key/secret custody + least-privilege IAM_OWNER emergency contract, never expose user PAT.
- P05-OIDC-15: Encrypted PostgreSQL backup, matching-key isolated restore, RPO/RTO and rollback.
- P05-OIDC-16: Approved private production runtime, health/alerts/rollback foundation, no public ingress.
- P05-OIDC-17: Separately approved real DNS/TLS issuer, trusted h2c/Host ingress and callback test.
- P05-OIDC-18: Real Admin Console, IAM_OWNER recovery and gradual LoginV2 canary cutover.
- P05-OIDC-19: Real HTTPS Account OIDC/cookies/protected API/redirect negatives.
- P05-OIDC-20: MFA/passkey/SMTP enrollment and recovery.
- P05-OIDC-21: Second independent SaaS OIDC client/SSO and logout semantics.
- P05-OIDC-22: Final operator-authorized release go/no-go, incident/rollback acceptance.
Each future phase is proposed, NOT APPROVED, with its own pre-source note/Scope Lock, exact path allowlist, independent CI/live safety acceptance and rollback. Do not combine protected secrets, registry publishing, DNS and real deployment into a single phase. Source and release details, exact risks and recommended next phase Scope Lock: notes/P05-OIDC-09.md.
Next separate approval recommendation: P05-OIDC-10, a disposable Gitea-only Login image provenance gate with narrowly scoped new helper/workflow, no vendor source edit, registry push, real secrets, deployment, tags or release. No approval implied by this document.