From 924f95bc87d6ac0c8b7f060cda43ef9058daccab Mon Sep 17 00:00:00 2001 From: WrenIX Date: Sat, 29 Jun 2024 13:55:26 +0200 Subject: [PATCH] fix(infra-monitoring): allow login if not anonymous login --- infra-monitoring/templates/kube-prometheus-stack/release.yaml | 4 +++- infra-monitoring/values.yaml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/infra-monitoring/templates/kube-prometheus-stack/release.yaml b/infra-monitoring/templates/kube-prometheus-stack/release.yaml index 30eba23..6c7ed31 100644 --- a/infra-monitoring/templates/kube-prometheus-stack/release.yaml +++ b/infra-monitoring/templates/kube-prometheus-stack/release.yaml @@ -162,9 +162,11 @@ spec: # bug in grafana-helmchart needed for oauth redirect url (without port :3000) root_url: "https://%(domain)s/" 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/ oauth_auto_login: true + {{- end }} {{- else }} disable_login_form: true disable_signout_menu: true diff --git a/infra-monitoring/values.yaml b/infra-monitoring/values.yaml index bd1bdd9..96651ed 100644 --- a/infra-monitoring/values.yaml +++ b/infra-monitoring/values.yaml @@ -178,6 +178,7 @@ grafana: "grafana.mon.local/dashboard-folder": "Kubernetes" auth: + enabled: false authentik: # -- generated from commons.masterPassword clientID: