From 97d906939e2b35d6b682d557236aaf75e17dec12 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Wed, 16 Apr 2025 06:46:10 +0800 Subject: [PATCH] fix: add security context for OpenTelemetry collector in configuration Signed-off-by: zhenyus --- .../templates/authentication/opentelemetry.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml index 24a44dfa..757dc7aa 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml @@ -11,6 +11,11 @@ spec: volumeMounts: - name: app-logs mountPath: {{ .Values.logIngest.logPath }} + securityContext: + allowPrivilegeEscalation: true + privileged: true + runAsUser: 0 + runAsGroup: 0 config: receivers: filelog: