You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
Move Grafana off its built-in GitHub OAuth onto ArgoCD's embedded Dex,
matching Headlamp's pattern. One Dex, one GitHub OAuth app, one
team→role mapping in one place. Drops a separately-registered GitHub
OAuth App (clientID \`Ov23liI2Cr1ur3xnZdlj\`) — that one can be removed
from github.com/organizations/makeitworkcloud/settings/applications/ at
your convenience.
## Changes
- **\`bootstrap/argocd-config.yaml\`** — register \`grafana\` as a Dex
static client. \`redirectURIs:
[https://grafana.makeitwork.cloud/login/generic_oauth]\`.
- **\`bootstrap/secrets/github-oauth-secret.yaml\`** — add
sops-encrypted \`dex.grafana.clientSecret\` to argocd-secret.
- **\`workloads/grafana/grafana.yaml\`** — replace the
\`GF_AUTH_GITHUB_*\` env block with \`GF_AUTH_GENERIC_OAUTH_*\` pointing
at \`https://argocd.makeitwork.cloud/api/dex/{auth,token,userinfo}\`.
Update \`ROLE_ATTRIBUTE_PATH\` to match Dex's \`makeitworkcloud:admins\`
group format (was GitHub's \`@makeitworkcloud/admins\`).
- **\`workloads/grafana/grafana-oidc-secret.yaml\`** — new Secret
\`grafana-oidc\` (sops-encrypted) with the matching
\`GF_AUTH_GENERIC_OAUTH_CLIENT_ID=grafana\` + \`CLIENT_SECRET\`. Old
\`grafana-github-oauth-secret.yaml\` deleted;
\`ksops-grafana-secrets.yaml\` updated.
- **\`.sops.yaml\`** — generalize the regex from
\`GF_AUTH_GITHUB_CLIENT_SECRET\` to
\`GF_AUTH_(GITHUB|GENERIC_OAUTH)_CLIENT_SECRET\`.
## Test plan
- [ ] After merge: \`kubectl -n argocd get cm argocd-cm -o
jsonpath='{.data.dex\\.config}'\` shows the new \`grafana\` static
client
- [x] After merge: \`kubectl -n grafana get secret grafana-oidc\`
populated with both keys
- [x] After merge: visiting \`https://grafana.makeitwork.cloud\`
redirects to ArgoCD's GitHub-OAuth-via-Dex flow and lands on the
dashboard with Admin / Viewer role per team membership
- [x] After merge: revoke the standalone "Grafana" GitHub OAuth App at
github.com/organizations/makeitworkcloud/settings/applications/
🤖 Generated with [Claude Code](https://claude.com/claude-code)
0 commit comments