blumeops/docs/how-to/authentik/deploy-authentik.md
Erich Blume fbf230b414 Move Mikado cards to topic subdirectory, not plans/
Mikado cards are discovered through failed attempts, not designed
upfront — they don't belong in plans/. Cards now live where they
topically belong (how-to/authentik/ for this chain). Updated
agent-change-process to document this convention.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 09:53:07 -08:00

1.9 KiB

title status modified requires tags
Deploy Authentik Identity Provider active 2026-02-20
build-authentik-container
provision-authentik-database
create-authentik-secrets
how-to
authentik
security
oidc

Deploy Authentik Identity Provider

Replace dex with Authentik as the SSO identity provider. Authentik adds central user/group management, multi-protocol support (OIDC, SAML, LDAP), self-service flows, and an admin UI that Dex lacks. Forgejo remains the upstream identity source via OAuth2 connector.

Architecture Decisions

Decision Choice Rationale
Cluster ringtail (k3s) IdP independent of main services cluster, same as Dex
Database CNPG blumeops-pg on indri Cross-cluster via Tailscale, no new operator needed
Redis Co-deployed in authentik namespace Required for caching/sessions/task queue
Containers Nix-built (dockerTools.buildLayeredImage) Supply chain control, consistent with Dex/ntfy pattern
Manifests Kustomize (no Helm) Consistent with all other BlumeOps services
Networking Tailscale Ingress + Caddy reverse proxy Same pattern as Dex

Open Questions

  • nixpkgs: Verify pkgs.authentik exists. Resolved: exists at v2025.10.1, entrypoint is ak (bash wrapper). See build-authentik-container.
  • Cross-cluster metrics: Prometheus on indri scraping authentik on ringtail needs a new pattern (Dex has no metrics collection today).
  • Dex decommission: Separate effort after all OIDC clients migrate to Authentik.