docs
Authentik with GitOps Enterprise
One Authentik login for ArgoCD, Grafana, Coder and Radar. GitOps wires each app's OIDC client from your repo: no OAuth app to create, no client ID or secret to copy.
EnterpriseSingle sign-on is included in the Enterprise pack. See the Enterprise pack →
SIGNS IN ONCE
- Youone Authentik account
You sign in once with Authentik
Authentik
One Authentik login for every app
- ArgoCD
- Grafana
- Coder
- Radar
Use case
A platform team puts ArgoCD, Grafana, Coder and Radar behind Authentik, then adds its own app. Each app must be enrolled in Authentik as an OIDC client.
| Step | Authentik by hand | Authentik with GitOps |
|---|---|---|
| Client | In the Authentik admin, create a provider and an application, and type the redirect URL. | A blueprint in the repo creates both. The redirect URL is built from global.domain. |
| Secret | Copy the client ID and secret from Authentik into the app's config. | Generated in the cluster and copied to the app's namespace. It never goes through Git. |
| Changes | Clicks in the admin, with no review and no history in Git. | One pull request, nothing to click in Authentik. |
| New domain | Fix the redirect URL of each app in Authentik, one by one. | Change global.domain in cluster.yaml and push. |
What you get
The Enterprise pack enrolls four apps in Authentik: ArgoCD, Grafana, Coder and Radar. ArgoCD and Grafana come with every pack, Coder with AI Platform and Enterprise, Radar with Enterprise only.
Get started
Single sign-on is on as soon as the Enterprise pack is installed. There is nothing to configure: you only create the users.
Create the Authentik admin
Open
https://auth.<domain>/if/flow/initial-setup/and set the password ofakadmin. This account is in theauthentik Adminsgroup.Add your users
In Authentik, go to Directory › Users. Put the people who run the platform in the
authentik Adminsgroup. Members of this group are also Authentik administrators.Sign in
Open any of the four apps and pick the Authentik button. In the other apps, the same button signs you in without asking for your password again.
Who can do what
Access follows the authentik Admins group:
| App | authentik Admins | Other users |
|---|---|---|
| ArgoCD | Admin | Read-only |
| Grafana | Admin | Viewer |
| Radar | Read-only in every namespace (Kubernetes role view): no Secrets, nodes or RBAC | Nothing, until you give them a role |
| Coder | Signs in, roles are set in Coder | Signs in, roles are set in Coder |
To change it, edit the RBAC in helm/platform/argocd/values.yaml, role_attribute_path in helm/platform/monitoring/values.yaml or helm/platform/radar/templates/rbac.yaml, then push.
Add your own app
Your apps use the same mechanism, declared in Git: one pull request, nothing to click in Authentik. Paths are in helm/platform/authentik/ unless noted.
Blueprint
Copy
blueprints/grafana.yamltoblueprints/<app>.yamland replacegrafanawith your app's name everywhere: blueprint name, provider name, application name and slug,client_idandAUTHENTIK_OIDC_<APP>_SECRET. Then set your app's redirect and launch URLs. Authentik matches blueprints to existing objects by name and slug, so a leftovergrafanawould overwrite Grafana's client.Secret
Add the app to the list in
templates/oidc-secrets.yamland to theresourceNamesof the reader Role, then add itsAUTHENTIK_OIDC_<APP>_SECRETvariable invalues.yaml.App side
Copy
helm/platform/coder/templates/oidc-secret.yamlinto your chart and replacecoderwith your app's name. Then point the app to the issuerhttps://auth.<domain>/application/o/<app>/and the<app>-oidcsecret.
Troubleshooting
- “Redirect URI mismatch”Authentik still has the old redirect URL, usually after a change of
global.domain. Check that ArgoCD synced theauthentikapp and that the blueprints have the new domain:kubectl -n authentik get cm authentik-blueprints -o yaml | grep -A2 redirect_uris. If they do, restart the Authentik worker: it applies the blueprints again when it starts. - “invalid_client”The app's copy of the client secret is missing or differs from Authentik's. Check that
authentik/oidc-<app>and<app>-oidcin the app's namespace both showSecretSynced:kubectl get externalsecret -A | grep oidc. - Radar shows nothingYour user is not in
authentik Adminsand has no role binding.