Skip to content

Commit ae822d2

Browse files
Merge pull request #33301 from alex-hunt-materialize/orchestratord_security_context
Set a restrictive security context for orchestratord
2 parents b6f3f54 + 7aab7e1 commit ae822d2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

misc/helm-charts/operator/templates/deployment.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ spec:
2525
labels:
2626
{{- include "materialize-operator.selectorLabels" . | nindent 8 }}
2727
spec:
28+
securityContext:
29+
fsGroup: 999
30+
runAsGroup: 999
31+
runAsUser: 999
2832
serviceAccountName: {{ include "materialize-operator.serviceAccountName" . }}
2933
{{- if .Values.operator.nodeSelector }}
3034
nodeSelector:
@@ -229,3 +233,12 @@ spec:
229233
{{- end }}
230234
resources:
231235
{{- toYaml .Values.operator.resources | nindent 10 }}
236+
securityContext:
237+
allowPrivilegeEscalation: false
238+
capabilities:
239+
drop:
240+
- ALL
241+
privileged: false
242+
runAsNonRoot: true
243+
seccompProfile:
244+
type: RuntimeDefault

0 commit comments

Comments
 (0)