added runAsNonRoot, dropped caps and disallow priv escalation
All checks were successful
continuous-integration/publish-helm Helm publish succeeded

This commit is contained in:
2026-01-13 16:20:23 +11:00
parent 9e2829f9bf
commit 3458bf91a3

View File

@@ -252,20 +252,28 @@ injector:
certName: tls.crt certName: tls.crt
keyName: tls.key keyName: tls.key
# Security context for the pod template and the injector container # Security context for the pod template and the injector container
# The default pod securityContext is: # The default pod securityContext is:
# runAsNonRoot: true # runAsNonRoot: true
# runAsGroup: {{ .Values.injector.gid | default 1000 }} # runAsGroup: {{ .Values.injector.gid | default 1000 }}
# runAsUser: {{ .Values.injector.uid | default 100 }} # runAsUser: {{ .Values.injector.uid | default 100 }}
# fsGroup: {{ .Values.injector.gid | default 1000 }} # fsGroup: {{ .Values.injector.gid | default 1000 }}
# and for container is # and for container is
# allowPrivilegeEscalation: false # allowPrivilegeEscalation: false
# capabilities: # capabilities:
# drop: # drop:
# - ALL # - ALL
securityContext: #securityContext:
pod: {} # pod: {}
container: {} # container: {}
securityContext:
pod:
runAsNonRoot: true
container:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
resources: {} resources: {}
# resources: # resources:
@@ -1031,9 +1039,17 @@ server:
# If not set, these will default to, and for OpenShift: # If not set, these will default to, and for OpenShift:
# pod: {} # pod: {}
# container: {} # container: {}
securityContext: #securityContext:
pod: {} # pod: {}
container: {} # container: {}
securityContext:
pod:
runAsNonRoot: true
container:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
# Should the server pods run on the host network # Should the server pods run on the host network
hostNetwork: false hostNetwork: false