Skip to content

Commit

Permalink
security context - drop all capabilities (kiali#160)
Browse files Browse the repository at this point in the history
* security context - drop all capabilities

part of kiali/kiali#5399

* add seccompProfile
  • Loading branch information
jmazzitelli authored and Matiasmct committed Nov 11, 2022
1 parent 2cc24e3 commit b085744
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kiali-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ spec:
allowPrivilegeEscalation: false
privileged: false
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
volumeMounts:
- mountPath: /tmp/ansible-operator/runner
name: runner
Expand Down
5 changes: 5 additions & 0 deletions kiali-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ spec:
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
ports:
- name: api-port
containerPort: {{ .Values.server.port | default 20001 }}
Expand Down

0 comments on commit b085744

Please sign in to comment.