5.0 KiB
P05-OIDC-07 — Production HTTPS, Issuer/Ingress & Secrets/Recovery Deployment Contract Forensic Design
Date: 2026-11-23 (Asia/Dhaka)
Approved Gitea main baseline: 620b165e9d3f2c26ad967db54e540387a076292b, independently verified before this note.
Existing accepted CI: Gitea Run #99 / Job #214, completed/success on immutable tested source 7d6b6d0704b9e39bcb6e74257dadf0b64a19fc0f; source-built imported Login V2 image, actual running image identity, four healthy disposable services, real Chromium PKCE/state/nonce/Auth.js callback/session/Account negatives/logout and BOTH run-owned cleanup systems PASS.
Phase: Documentation-only read-only production deployment security/operational contract audit; absolutely no new runtime acceptance.
Exact pre-document-change Scope Lock
This scope note must be committed before any other P05-OIDC-07 documentation modifications.
WRITE ONLY: notes/**, relevant project/**, relevant docs/** and their associated README/MINIFEST entries (root README only if needed for accurate navigation). No other changed paths; no first-party product features, CI tooling or deployment code modifications.
STRICT READ-ONLY: auth/** including imported upstream Login source/Dockerfile, users/** including Auth.js and UI, core/**, deployment/** including both Compose files, tests/**, .gitea/workflows/**, every package manifest/lock, runner configuration and access, live VPS/DNS/Coolify/Cloudflare/TLS and other production infrastructure, production secrets/tokens/keys, unrelated files; preserve untracked root AI_INSTRUCTIONS.md unchanged. No source/config edit, CI dispatch/rerun, local build/test/dev server, actual real-user login, DNS/TLS/infrastructure edit, production deploy, registry push, tags or releases. No production state may be inferred from public DNS/docs or current CI.
Design goals, read-only evidence approach
- Audit Gitea HEAD/tree, accepted Run #99 and relevant existing immutable source (not mutate). Distinguish
IMPLEMENTED,VERIFIED,UNVERIFIED,BLOCKED,PROPOSEDper supported artifact. - Treat
auth.vib.toolsandaccount.vib.toolsas proposed domains only; do not verify or access live DNS, external endpoints or infrastructure under this phase. Define canonical external HTTPS issuer, ZITADEL API, Login V2 and Console routes, Account OIDC client/callback/logout registration, trust boundaries, secure cookies, OAuth safety. - Define supported TLS termination/certificate renewal, safe forwarding and Host header validation, HTTP/2/h2c upstream, no public DB/Go/plaintext admin ports and ingress rate limits/monitoring/HA contracts. Record the development-only HTTP localhost configuration and limitations without deploying it.
- Audit imported image source-vs-release gap, Auth.js host trust/session protection, token rotation/federated logout, Console/IAM_OWNER break-glass and Login V2 safe cutover requirements.
- Define minimum secure ZITADEL master key, Login Client PAT and OIDC confidential client secrets/bootstrap ownership/rotations, SMTP and recovery, production IAM least privilege, encrypted Postgres backups including key identity escrow and restore acceptance, upgrades/rollback and monitoring/incident response.
- Audit CI image/provenance/reproducibility vs immutable digest/SBOM/signature/advisory refresh supply-chain contract, and separate internal disposable integration from actual production security acceptance.
- Produce a prioritized, smallest CI-only production-config dry-run implementation Scope Lock for separately approved P05-OIDC-08 (or other evidence-based narrow next phase), including exact proposed write/read-only file list, repeatable checks, failure/cleanup/secret-redaction rules and one authorized CI gate. No such implementation in P05-OIDC-07.
- Synchronize evidence in
notes/**,project/**,docs/**, README/MINIFEST/source inventory as relevant. Perform one focused final Markdown/manifest/exact diff/security audit, documentation-only commit/push and remote Gitea main SHA verification. Never claim tests were run or production was verified.
Initial evidence and deliberate exclusions
- Verified main baseline
620b165e9d3f2c26ad967db54e540387a076292bhad 771 Git-tracked blobs; accepted Run #99 job #214 recorded 5/5 SUCCESS and mandatory cleanup PASS. CI tested source7d6b6d0704b9e39bcb6e74257dadf0b64a19fc0fis distinct from this phase's later documentation SHAs. - Prior
P05-OIDC-05andP05-OIDC-06-A01notes document dev-only localhost HTTP/backend Compose, imported image actual disposable OIDC acceptance and outstanding production/TLS/secret/MFA/multi-app gates. - This phase cannot show that real production DNS, certificates, auth/account subdomains, Coolify/VPS, SMTP, issuer tenants or secrets exist; do not make such claims. Do not read live production credentials or touch any connected hosting service in this scope.
Disposition at creation: FORENSIC AUDIT PENDING, production deployment and HTTPS real-domain acceptance NOT EXECUTED.