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 ONCEYouone Authentik accountONE LOGIN FORArgoCDGrafanaCoderRadarAuthentik

SIGNS IN ONCE

  • Youone Authentik account

You sign in once with Authentik

Authentik

One Authentik login for every app

  • ArgoCD
  • Grafana
  • Coder
  • Radar
Your repo declares each app's OIDC client and ArgoCD applies it. Only the client secrets are generated, inside the cluster.

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.

Enrolling an app in Authentik, by hand and with GitOps
StepAuthentik by handAuthentik with GitOps
ClientIn 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.
SecretCopy 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.
ChangesClicks in the admin, with no review and no history in Git.One pull request, nothing to click in Authentik.
New domainFix 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.

  1. Create the Authentik admin

    Open https://auth.<domain>/if/flow/initial-setup/ and set the password of akadmin. This account is in the authentik Admins group.

  2. Add your users

    In Authentik, go to Directory › Users. Put the people who run the platform in the authentik Admins group. Members of this group are also Authentik administrators.

  3. 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:

Access in each app, for members of authentik Admins and for other users
Appauthentik AdminsOther users
ArgoCDAdminRead-only
GrafanaAdminViewer
RadarRead-only in every namespace (Kubernetes role view): no Secrets, nodes or RBACNothing, until you give them a role
CoderSigns in, roles are set in CoderSigns 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.

  1. Blueprint

    Copy blueprints/grafana.yaml to blueprints/<app>.yaml and replace grafana with your app's name everywhere: blueprint name, provider name, application name and slug, client_id and AUTHENTIK_OIDC_<APP>_SECRET. Then set your app's redirect and launch URLs. Authentik matches blueprints to existing objects by name and slug, so a leftover grafana would overwrite Grafana's client.

  2. Secret

    Add the app to the list in templates/oidc-secrets.yaml and to the resourceNames of the reader Role, then add its AUTHENTIK_OIDC_<APP>_SECRET variable in values.yaml.

  3. App side

    Copy helm/platform/coder/templates/oidc-secret.yaml into your chart and replace coder with your app's name. Then point the app to the issuer https://auth.<domain>/application/o/<app>/ and the <app>-oidc secret.

Troubleshooting

  • “Redirect URI mismatch”Authentik still has the old redirect URL, usually after a change of global.domain. Check that ArgoCD synced the authentik app 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>-oidc in the app's namespace both show SecretSynced: kubectl get externalsecret -A | grep oidc.
  • Radar shows nothingYour user is not in authentik Admins and has no role binding.