Wire ArgoCD to Authentik OIDC #253
Reference in New Issue
Block a user
Delete Branch "benvin/argocd-oidc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
ArgoCD had no external ingress and only local admin auth. This exposes
argocd-serverbehind the traefik-internal gateway and enables Authentik SSO, so operators log in with their Authentik identity and group membership. Pairs with unkin/terraform-authentik#3 (creates the OAuth2 provider).Changes
urlandoidc.config(Authentik issueridentity.unkin.net/application/o/argocd/,argocdclient, openid/profile/email scopes). Client secret resolved from theargocd-oidcSecret via$argocd-oidc:client_secret.groupsclaim; defaultrole:readonly; map theargocd-adminsAuthentik group torole:admin.server.insecure=truesoargocd-serverserves HTTP behind the TLS-terminating gateway.argocd.k8s.syd1.au.unkin.net(mirrors the grafana pattern: traefik-internal, vault-issuer cert, external-dns).kv/kubernetes/namespace/argocd/default/oauth-credentialsinto theargocd-oidcSecret (labelledpart-of=argocdso ArgoCD will resolve the$reference).Notes / rollout
defaultSA already has Vault read access via thedefaultk8s role, so no terraform-vault change is needed.argocd-serverneeds a one-time rollout restart to pick upserver.insecure.Validated with
kustomize build --enable-helm clusters/au-syd1/bootstrap,make kubeconform, and pre-commit (yamllint + no-plain-secrets).