From 904f86440cfe48d7a825c9f43811485a25f93a4d Mon Sep 17 00:00:00 2001 From: WrenIX Date: Fri, 8 Dec 2023 18:20:38 +0100 Subject: [PATCH] fix(infra-monitoring): Correct authentik middleware-forwardauth --- infra-monitoring/templates/karma/release.yaml | 2 +- .../templates/kube-prometheus-stack/release.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/infra-monitoring/templates/karma/release.yaml b/infra-monitoring/templates/karma/release.yaml index 72d3d93..4b5f29d 100644 --- a/infra-monitoring/templates/karma/release.yaml +++ b/infra-monitoring/templates/karma/release.yaml @@ -114,7 +114,7 @@ spec: {{- end }} {{- with $.Values.commons.auth }} {{- if and .enabled (eq .type "authentik") (not $.Values.karma.auth.anonymous.enabled) }} - "traefik.ingress.kubernetes.io/router.middlewares": "{{ .namespace }}-authentik-outpost@kubernetescrd" + "traefik.ingress.kubernetes.io/router.middlewares": "{{ .namespace }}-mycloud-mycloud-authentik-outpost@kubernetescrd" {{- end }} {{- end }} {{- with .annotations }} diff --git a/infra-monitoring/templates/kube-prometheus-stack/release.yaml b/infra-monitoring/templates/kube-prometheus-stack/release.yaml index b5fc7db..d5530ff 100644 --- a/infra-monitoring/templates/kube-prometheus-stack/release.yaml +++ b/infra-monitoring/templates/kube-prometheus-stack/release.yaml @@ -65,6 +65,11 @@ spec: {{- with $.Values.commons.ingress.annotations }} {{- toYaml . | nindent 10 }} {{- end }} + {{- with $.Values.commons.auth }} + {{- if and .enabled (eq .type "authentik") (not $.Values.prometheus.auth.anonymous.enabled) }} + "traefik.ingress.kubernetes.io/router.middlewares": "{{ .namespace }}-mycloud-mycloud-authentik-outpost@kubernetescrd" + {{- end }} + {{- end }} {{- with .annotations }} {{- toYaml . | nindent 10 }} {{- end }} @@ -105,6 +110,11 @@ spec: {{- with $.Values.commons.ingress.annotations }} {{- toYaml . | nindent 10 }} {{- end }} + {{- with $.Values.commons.auth }} + {{- if and .enabled (eq .type "authentik") (not $.Values.alertmanager.auth.anonymous.enabled) }} + "traefik.ingress.kubernetes.io/router.middlewares": "{{ .namespace }}-mycloud-mycloud-authentik-outpost@kubernetescrd" + {{- end }} + {{- end }} {{- with .annotations }} {{- toYaml . | nindent 10 }} {{- end }}