Skip to content

Commit 7aab7e1

Browse files
Set a restrictive security context for orchestratord
1 parent f42572d commit 7aab7e1

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:
@@ -226,3 +230,12 @@ spec:
226230
{{- end }}
227231
resources:
228232
{{- toYaml .Values.operator.resources | nindent 10 }}
233+
securityContext:
234+
allowPrivilegeEscalation: false
235+
capabilities:
236+
drop:
237+
- ALL
238+
privileged: false
239+
runAsNonRoot: true
240+
seccompProfile:
241+
type: RuntimeDefault

0 commit comments

Comments
 (0)