- Delete dex manifests, ArgoCD app, container build, and reference doc - Remove dex from Caddy reverse proxy config - Create authentik.md reference doc - Rewrite federated-login.md for Authentik architecture - Update grafana, forgejo, ringtail, harden-zot-registry docs - Update services-check: replace dex health/pod checks with authentik - Fix all broken [[dex]] wiki-links Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 KiB
3 KiB
| title | modified | requires | tags | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Deploy Authentik Identity Provider | 2026-02-20 |
|
|
Deploy Authentik Identity Provider
Replace Dex with Authentik as the SSO identity provider. Authentik is the source of truth for user identity in BlumeOps. Users are created and managed in Authentik; services authenticate against it via OIDC. Forgejo federation is deferred to a future effort (existing eblume account has extensive automations that need careful migration).
Architecture Decisions
| Decision | Choice | Rationale |
|---|---|---|
| Identity model | Authentik is source of truth | Central user/group management, not Forgejo-upstream like Dex |
| Cluster | ringtail (k3s) | IdP independent of main services cluster, same as Dex |
| Database | CNPG blumeops-pg on indri |
Cross-cluster via Caddy L4 (pg.ops.eblu.me), 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 |
| IaC | Authentik Blueprints (YAML in ConfigMap) | GitOps-native, config stored in repo |
What Was Done
- Built Nix container image (
v1.1.2-nix) —pkgs.authentik+coreutils+bashInteractive+ entrypoint wrapper for blueprint symlinks - Created 1Password item "Authentik (blumeops)" with secret key and DB credentials
- Provisioned
authentikdatabase and CNPG managed role onblumeops-pg - Deployed to ringtail k3s: server, worker, Redis (3 deployments)
- ExternalSecret pulls config from 1Password
- Tailscale Ingress at
authentik.tail8d86e.ts.net - Caddy reverse proxy at
authentik.ops.eblu.me - Completed first-run wizard (admin account created)
- Migrated Grafana OIDC from Dex to Authentik (Blueprint-driven)
- Decommissioned Dex (ArgoCD app deleted, manifests removed, Caddy entry removed)
URLs
- Admin: https://authentik.ops.eblu.me/if/admin/
- Tailscale: https://authentik.tail8d86e.ts.net
Future Work (not blocking this card)
- Forgejo federation: Make Forgejo an OIDC client of Authentik (deferred — needs careful
eblumeaccount migration) - Cross-cluster metrics: Prometheus on indri scraping authentik on ringtail
- Redis image: Replace upstream
redis:7-alpinewith Nix-built container
Related
- authentik — OIDC identity provider
- federated-login — How authentication works across BlumeOps
- adopt-oidc-provider — Dex deployment plan (completed)
- ringtail — Target cluster
- agent-change-process — C2 methodology used for this change