Grafana SSO
Goal: GitHub login through Authentik lands every user in Grafana’s Public org, and grafana-admins members in the main org. About 5 minutes.
Phase 4 already created the Grafana OIDC app (grafana-homelab) and the grafana-admins group, and Phase 2 put the matching client secret in OpenBao. What remains is group membership and the second org.
Procedure
Section titled “Procedure”-
In Authentik, open Directory → Groups → grafana-admins and add your user.
-
Create the Public org. It must get ID 2, which
grafana.gomaps every SSO user to as Viewer. The recipe is idempotent and fails if the ID differs.Terminal window just grafana-init
Open https://grafana.madhan.app, sign in with GitHub through Authentik, and confirm you land in the main org as Admin. A user outside grafana-admins lands in Public as Viewer.