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

Use a non-root user to limit root access in docker #411

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

reimarstier
Copy link

I'd like to be able to deploy the netbird dashboard to a highly restricted environment. One of the requirements is to run docker as non-root. See also the best practices mentioned here.
While it is possible to simply start the netbird dashboard container with another user it is not able to run since it is configured to:

  • bind to ports lower than 1000 which are privileged ports.
  • Writes files to /etc/, e.g. /etc/crontabs/root
  • Letsencrypt bot writes to several places as well

I have tested to run the image in my environment and I am fairly confident that it should run somewhere else, too. I did not test running it with letsencrypt. This should be definitely tested before considering this to be merged.

This feature was asked for in #406. Consider this a first shot in this direction.

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

Successfully merging this pull request may close these issues.

1 participant