Skip to content
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

Stop running as root in Docker #309

Closed
llarsson opened this issue Jan 12, 2022 · 2 comments
Closed

Stop running as root in Docker #309

llarsson opened this issue Jan 12, 2022 · 2 comments

Comments

@llarsson
Copy link

🐣 Is your feature request related to a problem? Please describe.

Running processes in containers as root means that a whole slew of privilege escalation exploits are made much, much easier. It doesn't seem to me that anything Ackee does requires running as root. So by simply adding a regular, non-privileged user to the Docker image, and setting it as the active user for the process, security against unknown attacks will be greatly reduced.

💡 Describe the solution you'd like

To add a non-privileged user and set it as the owner of the containerized process. The Dockerfile best practices shows how this is done.

❓ Describe alternatives you've considered

There are no useful alternatives to this. One could base a new Docker image from the official one and add the non-privileged user there, but that's a bad workaround, which would run the risk of version drift.

📋 Additional context

Aforementioned Dockerfile best practices documentation: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user

@electerious
Copy link
Owner

Thanks for the suggestion! A PR is welcome.

@electerious
Copy link
Owner

A PR as been merged. It will be part of the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants