Skip to content

Commit

Permalink
chore(deployment): enable readOnlyRootFilesystem
Browse files Browse the repository at this point in the history
This resolves KSV014 from trivy. Is also required by guideline: https://eclipse-tractusx.github.io/docs/release/trg-4/trg-4-07/#why

Refs: eclipse-tractusx#189
  • Loading branch information
typecastcloud committed Jul 9, 2024
1 parent a5f77cb commit 9155fdb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions charts/sdfactory/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,9 @@ spec:

resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- emptyDir: {}
name: tmp
2 changes: 1 addition & 1 deletion charts/sdfactory/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ securityContext:
drop:
- ALL
allowPrivilegeEscalation: false
# readOnlyRootFilesystem: true
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
Expand Down

0 comments on commit 9155fdb

Please sign in to comment.