Add traefik OAuth2 provider/application and akP-traefik-admin #20
Reference in New Issue
Block a user
Delete Branch "benvin/traefik-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
The traefik dashboards (internal + external) are being exposed behind oauth2-proxy; Authentik needs an OAuth2 provider/application for them first. This is the provider-side prerequisite.
Changes
config/providers_oauth2/traefik.yamlmirroring the arrstack provider: confidential client,client_idtraefik, client secret read from Vault kv mountkvatkubernetes/namespace/traefik-system/default/oauth-credentials, openid/email/profile scope mappings (the hierarchicalak_groupsmapping is attached to every oauth2 provider by the module), strict redirect URIshttps://traefik-internal.k8s.syd1.au.unkin.net/oauth2/callbackandhttps://traefik-external.k8s.syd1.au.unkin.net/oauth2/callbackconfig/permissions/akP-traefik-admin.yamlbound to thetraefikapplication, gating dashboard accessakP-traefik-adminunderakR-global-adminalongside the other app admin permissionsNOTE: requires Ben to seed kv
kubernetes/namespace/traefik-system/default/oauth-credentials(keys:client_id,client_secret,cookie_secret_internal,cookie_secret_external) before apply.CI status: pre-commit is green; the
planstep is red as expected —data.vault_kv_secret_v2.oauth2["traefik"]reads the client secret at plan time and kvkubernetes/namespace/traefik-system/default/oauth-credentialsis not seeded yet.Seed spec (kv-v2, mount
kv), then re-run the pipeline:Only
client_secretis read by this repo; the cookie secrets are for the oauth2-proxy deployments (internal/external) consuming the same path.