From d5561fa37c6dd5acbda0cbbe74f357fbc490d08d Mon Sep 17 00:00:00 2001 From: Md Nurnobi Date: Mon, 23 Nov 2026 11:18:58 +0000 Subject: [PATCH] docs(audit): lock P05-OIDC-07 production security design scope before documentation changes --- notes/P05-OIDC-07.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 notes/P05-OIDC-07.md diff --git a/notes/P05-OIDC-07.md b/notes/P05-OIDC-07.md new file mode 100644 index 0000000..3f9a1c8 --- /dev/null +++ b/notes/P05-OIDC-07.md @@ -0,0 +1,33 @@ +# 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](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/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 + +1. Audit Gitea HEAD/tree, accepted Run #99 and relevant existing immutable source (not mutate). Distinguish `IMPLEMENTED`, `VERIFIED`, `UNVERIFIED`, `BLOCKED`, `PROPOSED` per supported artifact. +2. Treat `auth.vib.tools` and `account.vib.tools` as **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. +3. 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. +4. 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. +5. 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. +6. 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. +7. 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. +8. 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 `620b165e9d3f2c26ad967db54e540387a076292b` had **771 Git-tracked blobs**; accepted Run #99 job #214 recorded 5/5 SUCCESS and mandatory cleanup PASS. CI tested source `7d6b6d0704b9e39bcb6e74257dadf0b64a19fc0f` is distinct from this phase's later documentation SHAs. +- Prior `P05-OIDC-05` and `P05-OIDC-06-A01` notes 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.