Skip to content

Commit

Permalink
chore(deployment): enable readOnlyRootFilesystem (#190)
Browse files Browse the repository at this point in the history
* chore(deployment): enable readOnlyRootFilesystem

This resolves KSV014 from trivy. Is also required by guideline: https://eclipse-tractusx.github.io/docs/release/trg-4/trg-4-07/#why

Refs: #189
  • Loading branch information
typecastcloud authored Jul 31, 2024
1 parent 5cf8bf6 commit d3c6e5f
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 d3c6e5f

Please sign in to comment.