metacatui icon indicating copy to clipboard operation
metacatui copied to clipboard

Helm Chart: containers should run as a non-root user

Open artntek opened this issue 3 months ago • 0 comments

The nginx container hosting metacatui currently runs as root, which is bad practice, for security reasons.

This should be changed to a non-root user, preferably with podSecurityContext, so it also applies to the initContainers. This will require some re-work of initContainer scripts (Example: the get-source initcontainer relies on downloading a file to a directory in the container filesystem that is owned by root:

  wget -O ./$FILENAME $LOC/$FILENAME;

...which will fail if running as a different user, so we need to change that path)

artntek avatar Aug 07 '25 00:08 artntek