From 1c802427c499c001de231dad9265b669ea44973a Mon Sep 17 00:00:00 2001 From: Pierre Ozoux Date: Fri, 6 Dec 2024 11:37:42 +0100 Subject: [PATCH] fix: use prefix pathType fixes https://github.com/prometheus-community/helm-charts/issues/4228 and address recomendation written in CVE-2022-4886 - https://github.com/kubernetes/kubernetes/issues/126815 Signed-off-by: Pierre Ozoux --- .../kube-prometheus-stack/templates/alertmanager/ingress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/kube-prometheus-stack/templates/alertmanager/ingress.yaml b/charts/kube-prometheus-stack/templates/alertmanager/ingress.yaml index be9f5aa279c4..c4b8da62e412 100644 --- a/charts/kube-prometheus-stack/templates/alertmanager/ingress.yaml +++ b/charts/kube-prometheus-stack/templates/alertmanager/ingress.yaml @@ -1,5 +1,5 @@ {{- if and .Values.alertmanager.enabled .Values.alertmanager.ingress.enabled }} -{{- $pathType := .Values.alertmanager.ingress.pathType | default "ImplementationSpecific" }} +{{- $pathType := .Values.alertmanager.ingress.pathType | default "Prefix" }} {{- $serviceName := printf "%s-%s" (include "kube-prometheus-stack.fullname" .) "alertmanager" }} {{- $backendServiceName := .Values.alertmanager.ingress.serviceName | default (printf "%s-%s" (include "kube-prometheus-stack.fullname" .) "alertmanager") }} {{- $servicePort := .Values.alertmanager.ingress.servicePort | default .Values.alertmanager.service.port -}}