Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: admin perms for grafana #224

Merged
merged 1 commit into from
Oct 9, 2024
Merged

feat: admin perms for grafana #224

merged 1 commit into from
Oct 9, 2024

Conversation

bo0tzz
Copy link
Member

@bo0tzz bo0tzz commented Oct 9, 2024

No description provided.

@bo0tzz bo0tzz enabled auto-merge (squash) October 9, 2024 15:00
Copy link

github-actions bot commented Oct 9, 2024

--- kubernetes/apps/monitoring/grafana/app Kustomization: flux-system/grafana Grafana: monitoring/grafana

+++ kubernetes/apps/monitoring/grafana/app Kustomization: flux-system/grafana Grafana: monitoring/grafana

@@ -9,17 +9,21 @@

     kustomize.toolkit.fluxcd.io/namespace: flux-system
   name: grafana
   namespace: monitoring
 spec:
   config:
     auth.generic_oauth:
+      allow_assign_grafana_admin: 'true'
       api_url: https://auth.immich.cloud/userinfo
       auth_url: https://auth.immich.cloud/auth
+      auto_login: 'true'
       client_id: grafana
       client_secret: ${GRAFANA_OAUTH_CLIENT_SECRET}
       enabled: 'true'
+      role_attribute_path: contains(groups[*], 'immich-app:Admins') && 'GrafanaAdmin'
+        || 'Viewer'
       scopes: openid email profile groups offline_access
       token_url: https://auth.immich.cloud/token
     server:
       root_url: https://monitoring.immich.cloud/
   deployment:
     spec:

@bo0tzz bo0tzz disabled auto-merge October 9, 2024 15:03
@bo0tzz bo0tzz enabled auto-merge (squash) October 9, 2024 15:04
@bo0tzz bo0tzz merged commit 7220f58 into main Oct 9, 2024
2 checks passed
@bo0tzz bo0tzz deleted the feat/grafana-admin branch October 9, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants