workout-system: SparkyFitness OIDC-only auth (email login+signup off, OIDC signup on)

Admin bootstrapped via Authentik OIDC. Finalize the intended auth posture:
- Remove SPARKY_FITNESS_FORCE_EMAIL_LOGIN fail-safe (OIDC confirmed working).
- Add SPARKY_FITNESS_DISABLE_EMAIL_LOGIN=true -> email/password login + registration off.
- Keep SPARKY_FITNESS_DISABLE_SIGNUP=false so OIDC auto-register keeps working
  (the global signup gate would otherwise block OIDC self-registration too).
Net: Authentik OIDC is the only login + signup path; emergency recovery documented
inline (set FORCE_EMAIL_LOGIN=true to re-enable email login).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-27 16:00:27 +02:00
parent a1e73466a6
commit 6d21576e00
+14 -9
View File
@@ -208,10 +208,13 @@ spec:
value: "INFO"
- name: SPARKY_FITNESS_FRONTEND_URL
value: "https://workout.dooplex.hu"
# TEMPORARILY "false" to bootstrap the first admin account. With signup
# disabled, even OIDC auto-register is blocked ("Signups are currently
# disabled by the administrator"). Flip back to "true" immediately after
# the admin (SPARKY_FITNESS_ADMIN_EMAIL) has logged in via Authentik once.
# MUST stay "false": this is the GLOBAL signup gate, and "true" blocks
# OIDC auto-register too ("Signups are currently disabled by the
# administrator"). We want OIDC self-registration to work, so it stays
# false; email/password registration is instead blocked by disabling
# email login entirely (SPARKY_FITNESS_DISABLE_EMAIL_LOGIN below).
# Who may actually register is then governed by Authentik (only users
# authorized for the SparkyFitness application can complete OIDC).
- name: SPARKY_FITNESS_DISABLE_SIGNUP
value: "false"
- name: SPARKY_FITNESS_ADMIN_EMAIL
@@ -220,11 +223,13 @@ spec:
value: "true"
- name: SPARKY_FITNESS_EXTRA_TRUSTED_ORIGINS
value: "https://workout.home"
# ---- Fail-safe: keep email/password login working during bring-up
# so a misconfigured OIDC can't lock you out. REMOVE this (and
# optionally set SPARKY_FITNESS_DISABLE_EMAIL_LOGIN=true) once the
# Authentik OIDC login is confirmed working end-to-end.
- name: SPARKY_FITNESS_FORCE_EMAIL_LOGIN
# OIDC login confirmed working (admin bootstrapped via Authentik 2026-05-27),
# so the email-login fail-safe is removed and email/password login +
# registration are disabled — Authentik (OIDC) is the only auth/signup path.
# EMERGENCY RECOVERY if ever locked out of OIDC: set
# SPARKY_FITNESS_FORCE_EMAIL_LOGIN=true on the deployment and restart to
# re-enable email/password login (it overrides DISABLE_EMAIL_LOGIN).
- name: SPARKY_FITNESS_DISABLE_EMAIL_LOGIN
value: "true"
# ---- OIDC (Authentik) — env-based provider upsert ----
- name: SPARKY_FITNESS_OIDC_AUTH_ENABLED