-
Notifications
You must be signed in to change notification settings - Fork 456
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
Rework RUNAS_UID0 #362
Comments
I forgot to put it in the commit but |
I will take a look and test with a macvlan set up. Also I have some notes
on configuring the unifi-docker image with a macvlan.
Best
Brad
…On Wed, Oct 14, 2020 at 1:18 PM Jacob Alberty ***@***.***> wrote:
I forgot to put it in the commit but beta now has the relevant code
removed and master now has the documentation changes done. The only
breaking issue I see with commiting this to master is the old RUNAS_UID0
would automatically set permissions on the relevant folders whereas the new
setup will not.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#362 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKDYHQQBW6VLXD7XDAG4MLSKYBRHANCNFSM4SRAES7Q>
.
|
Ok, Found another downside to dropping RUNAS_UID0, I'm not convinced it needs fixing as there are workarounds. Right now beta image installs take a PKGURL and just pull that on first launch. Docker does not provide any way to run pre-environment commands as root when using There's two options as I see it
I'm not a fan of 2 though and this only affects the beta image. I think 1 is the best option. But maybe someone else has tackled option 2 already and published the code, so I'm going to dig around and see. |
I believe there are more issues... personally I’m using your image for years now on my Synology NAS and with RUNAS_UID0 set to false I was (and quite some relatives are..) able to run it safely as a non-root user; using the Synology docker GUI. However, the GUI does not support passing run flags to Docker. So wouldn’t it make sense to make “running as non-root user” the default behavior now this RUNAS_UID0 is about to be dropped? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
* Remove BIND_PRIV handling since there is no need for it according to jacobalberty#362 * Add functionality to ensure that system.properties file is always created, even if no settings are actally written * Backport permset handling from master
A few things have changed in the docker world since I originally added RUNAS_UID0 and BIND_PRIV.
I am now using
net.ipv4.ip_unprivileged_port_start: 0
sysctl in my docker-compose which completely removes the need for BIND_PRIV, with BIND_PRIV unneeded the normal docker user parameters for the most part work.I think I'm going to update the documentation to reflect using the sysctl instead and officially deprecate RUNAS_UID0 and BIND_PRIV, the next step will be to strip those out of the
beta
tag entirely to start merging it back into main.The only possible issue I foresee is file system permissions. I need to do some testing on that during the deprecation time and make sure nothing breaks. Removing the features themselves shouldnt cause anyones setup to break, rather it will escalate permissions back to root. Which is the default anyway.
I'm doing this for two reasons
The text was updated successfully, but these errors were encountered: