Skip to content

Commit

Permalink
Setup seccompProfile per recommendation from trivy
Browse files Browse the repository at this point in the history
Signed-off-by: Pat Riehecky <[email protected]>
  • Loading branch information
jcpunk committed Sep 12, 2024
1 parent 7a64e37 commit d0a42df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/chart/local-path-provisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ podAnnotations: {}
podSecurityContext: {}
# runAsNonRoot: true

securityContext: {}
securityContext:
seccompProfile:
type: RuntimeDefault
# allowPrivilegeEscalation: false
# seccompProfile:
# type: RuntimeDefault
# capabilities:
# drop: ["ALL"]
# runAsUser: 65534
Expand Down
3 changes: 3 additions & 0 deletions deploy/local-path-storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ spec:
fieldPath: metadata.namespace
- name: CONFIG_MOUNT_PATH
value: /etc/config/
securityContext:
seccompProfile:
type: RuntimeDefau
volumes:
- name: config-volume
configMap:
Expand Down
3 changes: 3 additions & 0 deletions deploy/provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
securityContext:
seccompProfile:
type: RuntimeDefault
volumes:
- name: config-volume
configMap:
Expand Down

0 comments on commit d0a42df

Please sign in to comment.