2026-02-20 12:55:59 -08:00
---
title: Authentik
modified: 2026-02-20
tags:
- service
- security
- oidc
---
# Authentik
OIDC identity provider for BlumeOps. Authentik is the **source of truth ** for user identity — users are created and managed in Authentik, and services authenticate against it via OIDC.
## Quick Reference
| Property | Value |
|----------|-------|
| **URL ** | https://authentik.ops.eblu.me |
| **Admin UI ** | https://authentik.ops.eblu.me/if/admin/ |
| **Tailscale URL ** | https://authentik.tail8d86e.ts.net |
| **Namespace ** | `authentik` |
| **Cluster ** | k3s (ringtail) |
| **Manifests ** | `argocd/manifests/authentik/` |
| **Container build ** | `containers/authentik/default.nix` |
## Architecture
Authentik runs on [[ringtail]]'s k3s cluster, isolated from the main services on indri's minikube. This means the IdP is independent of the minikube cluster lifecycle.
Three deployments:
- **server** — HTTP/HTTPS interface, handles OIDC flows
- **worker** — Background tasks, blueprint application
- **redis** — Caching, sessions, task queue
## Database
Uses the shared CNPG `blumeops-pg` cluster on [[indri]], accessed cross-cluster via `pg.ops.eblu.me:5432` . Database `authentik` with managed role.
## Blueprints
2026-02-20 17:39:50 -08:00
Authentik configuration is managed via Blueprints (YAML) stored as a ConfigMap mounted into the worker at `/blueprints/custom/` . Current blueprints:
2026-02-20 12:55:59 -08:00
2026-02-20 17:39:50 -08:00
- **`common.yaml` ** — shared identity resources (`admins` group)
- **`mfa.yaml` ** — MFA enforcement on the default authentication flow (`not_configured_action: configure` )
- **`grafana.yaml` ** — Grafana OAuth2 provider, application, and policy binding
- **`forgejo.yaml` ** — Forgejo OAuth2 provider, application, and policy binding
Group membership is included in the `profile` scope claim (Authentik built-in). Services use `--group-claim-name groups` to read it.
2026-02-20 12:55:59 -08:00
Blueprint file: `argocd/manifests/authentik/configmap-blueprint.yaml`
## OIDC Clients
| Client | Status |
|--------|--------|
| [[grafana]] | Active |
2026-02-20 17:39:50 -08:00
| [[forgejo]] | Active |
2026-02-20 12:55:59 -08:00
2026-02-20 17:39:50 -08:00
Future clients: [[argocd]], [[miniflux]], [[zot]]
2026-02-20 12:55:59 -08:00
## Secrets
2026-03-09 11:57:35 -07:00
Injected via [[external-secrets]] from the "Authentik (blumeops)" 1Password item (see [[create-authentik-secrets]] for setup).
2026-02-20 12:55:59 -08:00
| 1Password Field | Purpose |
|-----------------|---------|
| `secret-key` | Authentik secret key |
| `db-password` | PostgreSQL password |
| `grafana-client-secret` | OIDC client secret for Grafana |
2026-02-20 17:39:50 -08:00
| `forgejo-client-secret` | OIDC client secret for Forgejo |
2026-02-20 12:55:59 -08:00
| `api-token` | Authentik API token |
## Container Image
Nix-built via `dockerTools.buildLayeredImage` . The entrypoint wrapper symlinks built-in blueprint directories from the Nix store into `/blueprints/` at runtime, allowing custom blueprints to coexist with defaults. `AUTHENTIK_BLUEPRINTS_DIR=/blueprints` overrides the hardcoded Nix store path.
## Related
- [[federated-login]] - How authentication works across BlumeOps
- [[grafana]] - First OIDC client
- [[deploy-authentik]] - Deployment how-to
2026-03-09 11:57:35 -07:00
- [[migrate-grafana-to-authentik]] - Grafana SSO migration from Dex
- [[build-authentik-from-source]] - Nix-based container build
- [[mirror-authentik-build-deps]] - Supply chain mirrors for the build
2026-02-20 12:55:59 -08:00
- [[external-secrets]] - Secrets injection from 1Password