-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
We already run Cantaloupe as non-root user, but it has become more common for K8S environements to also require a more tight securityContext such as this one:
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
capabilities:
drop:
- ALLThe runAsNonRoot setting requires a numeric USER directive, i.e. USER 101.
The readOnlyRootFilesystem is a bit hard to fix in a downstream Dockerfile today as the docker-entrypoint.sh script writes to several locations, re-packages logback.xml into war file etc. Some rewrite of entrypoint script and perhaps loading logback config from a different location than inside war is needed here. Also documenting what image paths needs writing to so users can mount up volmes for those (ideally only one?)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels