feat(infra): IdP staging stack live on idp.failsulit.com (phase 2) #134

Merged
amiryahaya merged 1 commit from feat/staging-idp into main 2026-11-09 18:19:00 +01:00
Owner

Phase 2 of the staging bring-up — the passkey-enablement pass. Live and verified end-to-end on the VPS:

  • https://idp.failsulit.com — Zitadel v4.16 behind Traefik with real Let's Encrypt certs (HTTP-01), issuer = the domain, Login v2 UI routed at /ui/v2/login
  • deploy/idp/compose.staging.yml: production-shaped variant of the spike (TLS entrypoints + LE resolver, secure external domain, secrets from VPS-local idp/.env — never committed; generated masterkey/db/cookie secrets + staging admin creds live in ~/deploy/failsulit/idp on the box)
  • compose.yml: the api service now carries the IdP-first env contract (Auth__IdpEnabled + Idp__* interpolated from the deployment .env) — gotcha captured: .env alone does NOT reach containers, compose interpolation is the path
  • staging-deploy.sh: creates the shared edge network, opens ufw 80/443, brings up the IdP stack when bootstrapped, generates the VPS-local compose overlay (edge network + api.failsulit.com Traefik labels)
  • Verified: DNS → LE cert → discovery → Zitadel project 'FailSulit Drive' + OIDC app (code flow, confidential, devMode for the IP callback — HTTPS API name comes with the browser-client phase) → Drive authorize 302 → IdP authorize page with signed state, end-to-end

Phase 2 of staging bring-up; app stack + CD from PR #133 continue unchanged.

Phase 2 of the staging bring-up — the passkey-enablement pass. Live and verified end-to-end on the VPS: - **https://idp.failsulit.com** — Zitadel v4.16 behind Traefik with real Let's Encrypt certs (HTTP-01), issuer = the domain, Login v2 UI routed at /ui/v2/login - **deploy/idp/compose.staging.yml**: production-shaped variant of the spike (TLS entrypoints + LE resolver, secure external domain, secrets from VPS-local idp/.env — never committed; generated masterkey/db/cookie secrets + staging admin creds live in ~/deploy/failsulit/idp on the box) - **compose.yml**: the api service now carries the IdP-first env contract (Auth__IdpEnabled + Idp__* interpolated from the deployment .env) — gotcha captured: .env alone does NOT reach containers, compose interpolation is the path - **staging-deploy.sh**: creates the shared edge network, opens ufw 80/443, brings up the IdP stack when bootstrapped, generates the VPS-local compose overlay (edge network + api.failsulit.com Traefik labels) - **Verified**: DNS → LE cert → discovery → Zitadel project 'FailSulit Drive' + OIDC app (code flow, confidential, devMode for the IP callback — HTTPS API name comes with the browser-client phase) → Drive authorize 302 → IdP authorize page with signed state, end-to-end Phase 2 of staging bring-up; app stack + CD from PR #133 continue unchanged.
feat(infra): IdP staging stack live on idp.failsulit.com (phase 2 bring-up)
All checks were successful
Security CI / security-scan (pull_request) Successful in 2m40s
ab6e953a7e
- deploy/idp/compose.staging.yml: production-shaped Zitadel stack —
  Traefik 80/443 + Let's Encrypt (HTTP-01), web→websecure redirect,
  Zitadel external domain idp.failsulit.com (secure, EXTERNALPORT 443),
  Login v2 base URIs on the public host, secrets from VPS-local idp/.env
  (never committed), shared 'edge' network.
- compose.yml: api service contract for the IdP-first env
  (Auth__IdpEnabled + Idp__* interpolated from the deployment .env —
  compose interpolation is the injection path; .env alone does not reach
  containers) + documented staging overlay (edge network + Traefik labels
  for api.failsulit.com live in the VPS-local compose.staging.yml
  generated by staging-deploy.sh).
- staging-deploy.sh: edge network creation, ufw 80/443, IdP stack compose
  when idp/.env exists, overlay generation.

Live state (2026-11-10): https://idp.failsulit.com issuing real LE certs,
project 'FailSulit Drive' + OIDC app registered (redirect =
http://217.216.35.191:8080/api/auth/idp/callback, devMode — HTTPS API
name comes with the browser-client phase), app .env carries Idp:* +
Auth:IdpEnabled=true, Drive authorize 302 → IdP verified end-to-end.
Zitadel admin creds: VPS ~/deploy/failsulit/idp/{.admin-credentials,steps.yaml}.
Sign in to join this conversation.
No description provided.