fix(infra-monitoring): allow login if not anonymous login
This commit is contained in:
parent
e72b640af9
commit
924f95bc87
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue