-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The pravega zookeeper docker image run as root by default #538
Comments
Fixes pravega#538 Signed-off-by: Jan Høydahl <[email protected]>
Filed a PR for the user change itself. It would be nice to follow up this with the Operator adding a a |
Actually the base image of this image already creates the pod:
securityContext:
runAsNonRoot: true
runAsUser: 1000
fsGroup: 1000 EDIT: Note that you also need to supply |
Description
This is the Dockerfile
https://github.com/pravega/zookeeper-operator/blob/master/docker/Dockerfile
No user is created and it runs the docker as root (UID 0)
Importance
This is not a good security practice.
Location
https://github.com/pravega/zookeeper-operator/blob/master/docker/Dockerfile
Suggestions for an improvement
Create a dedicated user and specify it to run instead of root/UID 0.
The text was updated successfully, but these errors were encountered: