fix(infra-monitoring): allow login if not anonymous login

This commit is contained in:
WrenIX 2024-06-29 13:55:26 +02:00
parent e72b640af9
commit 924f95bc87
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
2 changed files with 4 additions and 1 deletions

View file

@ -162,9 +162,11 @@ spec:
# bug in grafana-helmchart needed for oauth redirect url (without port :3000) # bug in grafana-helmchart needed for oauth redirect url (without port :3000)
root_url: "https://%(domain)s/" root_url: "https://%(domain)s/"
auth: auth:
{{- if and .Values.commons.auth.enabled (eq .Values.commons.auth.type "authentik") }} {{- if or .Values.grafana.auth.enabled .Values.commons.auth.enabled }}
{{- if eq .Values.commons.auth.type "authentik" }}
signout_redirect_url: https://{{ .Values.commons.auth.authentik.domain }}/application/o/grafana/end-session/ signout_redirect_url: https://{{ .Values.commons.auth.authentik.domain }}/application/o/grafana/end-session/
oauth_auto_login: true oauth_auto_login: true
{{- end }}
{{- else }} {{- else }}
disable_login_form: true disable_login_form: true
disable_signout_menu: true disable_signout_menu: true

View file

@ -178,6 +178,7 @@ grafana:
"grafana.mon.local/dashboard-folder": "Kubernetes" "grafana.mon.local/dashboard-folder": "Kubernetes"
auth: auth:
enabled: false
authentik: authentik:
# -- generated from commons.masterPassword # -- generated from commons.masterPassword
clientID: clientID: