feat: prepare isolated ZITADEL v4 local backend (Docker verification pending)

This commit is contained in:
Vib Tools committed 2026-11-22 04:02:48 -08:00
1 parent 8f54ccb304
commit 433a0a32f8
9 files changed
+500 -68

No files matched your search

+22 -21
View File
@@ -1,30 +1,31 @@
# Phase register and scope locks
Only **Phase 01** is approved for implementation in this session. Each later phase requires its own explicit approval and exact scope lock.
Implement one explicitly approved phase at a time. Keep out-of-scope files, existing authentication machinery and production systems unchanged.
## P01 — Foundation
- **Allowed writes:** `README.md`, `AGENTS.md`, `.gitignore`, `.editorconfig`, `docs/**`, and README placeholders under `core/backend/zitadel/`, `auth/ui/v2/`, `users/ui/`, `packages/`, `deployment/`, `scripts/`, `tests/`.
- **Action:** Create compact repository structure; configure repository-local Git identity (Vib Tools / hello@vibtools.io); create initial local main-branch commit.
- **Excluded:** Backend source/image download, dependencies, UI code, Compose deployment, secrets, external Git pushes, builds.
- **Acceptance:** Repository tree and Git identity confirmed; no unexpected files; clean worktree after commit.
## P01 — Foundation (COMPLETE)
- Baseline commit `8f54ccb30426f2955472c0cd40fb94d0b18e86ac`.
- Initial monorepo folder structure, docs, project Git identity and clean commit completed.
## P02 — ZITADEL local backend (proposed; NOT approved)
- **Write scope to approve:** `core/backend/zitadel/**`, `deployment/docker/compose.backend.dev.yaml`, `.env.example`, backend-focused `tests/**`, and narrowly `docs/**` / `README.md`.
- Pin official image version/digest, local PostgreSQL and persistence, safe bootstrap + local test admin, startup/health checks. No Go backend vendoring.
- No public domain, Coolify deploy, real users, Login V2 import, new UI or production master keys.
- Focused acceptance: local startup + admin console reachability, persistence after restart, and clean shutdown; document exact lock and versions.
## P02 — ZITADEL local backend (APPROVED 2026-11-22)
- **Allowed source writes:** `core/backend/zitadel/**`, `deployment/docker/compose.backend.dev.yaml`, `.env.example`, backend-focused `tests/**`, and narrow `docs/**` / `README.md`.
- Official versioned ZITADEL v4 backend image, local PostgreSQL persistence, secure random dev secret generation, first-admin bootstrap and health checks.
- Official prebuilt Login V2 image as a **runtime dependency only** (v4 Admin Console login requires it); no Login V2 source import.
- No backend Go source vendoring, UI redesign, public domain, Coolify deploy, production keys, remote push or changes to unrelated files.
- Verify: static focused test/patch audit; with Docker available, live startup/ready/Admin Console, persistent DB after restart and shutdown.
- **Execution evidence:** Docker CLI/Desktop absent on connected Windows PC; live Compose startup, admin login and persistence remain BLOCKED, not passed. Local static verification results and Git commit are recorded upon phase closure in `docs/P02-EVIDENCE.md`.
- Existing unrelated untracked `AI_INSTRUCTIONS.md` must remain untouched.
## P03 — Login V2 import (proposed)
Import one compatible official upstream commit including required workspace/dependencies under approved paths; unmodified functional baseline; verify one build and baseline auth route. No visual redesign.
## P03 — Login V2 import (proposed, NOT approved)
Import one compatible upstream commit and necessary workspace/dependencies under an exact approved scope; verify original behavior. No visual redesign. Do not claim P02 runtime integration was verified if Docker remains unavailable.
## P04 — Account portal foundation (proposed)
Implement OIDC-protected basic user self-service skeleton under `users/ui/`; no fake production authentication.
## P04 — Account portal foundation (proposed, NOT approved)
OIDC-protected basic account self-service skeleton; no fake production authentication.
## P05 — Integration (proposed)
Local development workflows, shared design tokens as needed, production-safe Compose topology, routing drafts, tests and docs. No live deployment.
## P05 — Integration (proposed, NOT approved)
Local development, shared UI tokens as needed, production-safe Docker topology, routing drafts, tests/docs. No live deployment.
## P06 — UI redesign (proposed)
Compact login and account UI, accessibility, responsive design and scoped visual regression. No change to protected authentication semantics.
## P06 — UI redesign (proposed, NOT approved)
Compact login and account UI, accessibility, responsive design and scoped regressions. Protected authentication semantics unchanged.
## P07 — Production deployment (proposed)
Coolify, secured external domains, HTTPS, secrets, backups, persistent volumes and focused end-to-end readiness checks; only on explicit approval.
## P07 — Production deployment (proposed, NOT approved)
Coolify, HTTPS, secrets, backups, durable storage and focused production readiness; explicit approval required.