spike(idp): Zitadel v4 compose stack — OIDC code+PKCE round trip proven (task 0.1) #49
No reviewers
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit!49
Loading…
Reference in a new issue
No description provided.
Delete branch "spike/zitadel-idp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task 0.1 exit criteria met (dev plan Phase 0): Zitadel v4.16 running on a self-contained compose stack (
deploy/idp/, projectfailsulit-idp, Traefik on localhost:8080, dedicated postgres per OPS-01) with headless bootstrap (FailSulit org, human admin, IAM_OWNER machine SA PAT + JSON key → bootstrap files), an OIDC application (code+PKCE, dev mode) registered, and the full authorization-code + S256 PKCE round trip proven against a scratch .NET endpoint (deploy/idp/roundtrip/) — id_token validated over real HTTP and claims rendered.Findings recorded in
spike-notes.md: FirstInstance time-env-var decode gotcha (use --steps yaml), v4 API paths rooted at / (management/v1 prefix gone — Connect client = Phase 8 open item), Login v2 as a separate container, userinfo claim contract for task 0.5, passkey ceremony deferred to Phase 2 real-browser E2E (support verified present in Console + Login v2 UI).Closes #9
ponytail-review (§2.4 AI first-pass) — Verdict: Ship (spike).
What this change does: adds a self-contained dev-only compose project for Zitadel v4.16 (api + Login v2 + Traefik + dedicated postgres) and a scratch .NET endpoint that proves authorization-code + S256 PKCE end-to-end; findings documented in spike-notes.md.
Checked: compose is project-scoped (
name: failsulit-idp) so it cannot collide with the existing local/dev stacks; ports limited to 127.0.0.1:8080 (8080 was free); secrets are spike-local (banner comment; production IdP deployment is a separate runbook per ADR §10); steps.yaml time fields avoid the env-var decode gotcha; diagnostics ([PROBE-*]) reverted from handlers; DEBUG tests removed from OidcFlowTests; roundtrip endpoint binds 127.0.0.1 only and hardcodes spike-local config deliberately.Notes (not blocking): committed local-only masterkey/PAT values are fine for a spike stack but must not be copied into the production runbook; the passkey ceremony is deferred to Phase 2 with the Console/Login-v2 support verified present; the v4 management-API Connect path remains an open question tracked for Phase 8.
Not checked: upgrade path v4.16 → newer patch versions; Windows compose parity.