Skip to content

Commit

Permalink
Disable GitHub authentication in Grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Sep 19, 2024
1 parent 44bbce5 commit 6e0b146
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions kubernetes/namespaces/monitoring/grafana/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ data:
GF_SERVER_ROOT_URL: "https://grafana.pydis.wtf"
GF_SECURITY_COOKIE_SECURE: "true"

# GitHub Auth
GF_AUTH_GITHUB_ENABLED: "true"
GF_AUTH_GITHUB_SCOPES: "user:email,read:org"
# IDs can be retrieved via `gh api orgs/python-discord/teams`.
GF_AUTH_GITHUB_TEAM_IDS: "2638565,3854739,3114246,7361120,9120709,3282905"
GF_AUTH_GITHUB_ROLE_ATTRIBUTE_PATH: "contains(groups[*], '@python-discord/directors') && 'Admin' || contains(groups[*], '@python-discord/sudo-devops') && 'Admin' || contains(groups[*], '@python-discord/admins') && 'Editor' || 'Viewer'"
GF_AUTH_GITHUB_AUTH_URL: "https://github.com/login/oauth/authorize"
GF_AUTH_GITHUB_TOKEN_URL: "https://github.com/login/oauth/access_token"
GF_AUTH_GITHUB_API_URL: "https://api.github.com/user"
GF_AUTH_ALLOW_SIGN_UP: "true"

# Image storage
GF_EXTERNAL_IMAGE_STORAGE_PROVIDED: "local"

Expand Down
Binary file modified kubernetes/namespaces/monitoring/grafana/secrets.yaml
Binary file not shown.

0 comments on commit 6e0b146

Please sign in to comment.