-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Invalid user specified in Dockerfile #509
Comments
The UID & GID simply need to be any non-existant or non-privileged user. |
As I see it, it's fine as it is. As @steakunderscore has said, the user doesn't need to actually exist for the container to run as a particular UID & GID. If we do make this change, then it would have to be noted as a breaking change |
I think it's misleading to use @JoelSpeed in what way do you think its breaking? |
We should avoid adding the user: #142 |
Why does this come across as misleading? Could you elaborate on that point a bit? I would expect normally that it shouldn't really matter which user is in the file as people shouldn't be doing anything in the containers that we are producing? It's common for applications running in containers to run as non-existent users and this is even settable at runtime by the container runtime. Did having it as |
We came across it when we were setting up a @JoelSpeed I find However, when doing some more research on the
I now, instead, propose creating a dedicated system user, e.g. |
Thanks for the reference about nobody. Given this I think we should not change anything. oauth2-proxy is fine with running with no extra privileges. So using an unprivileged user is appropriate. I don't see any benefit to adding a For your |
Ok. Thanks for a healthy discussion :) How about mentioning the choice of UID/GID in the documentation somewhere? |
We should definitely aim to improve the docs around this and have it explained somewhere |
Why is the user and group set to
2000
? I can't see it being defined anywhere, so to me it is magic, and the user is non-existent within the container. Could it be set to65534
(nobody) instead? Either way, it would be helpful with a comment as to why a specific user is chosen.oauth2-proxy/Dockerfile
Line 31 in 842d764
The text was updated successfully, but these errors were encountered: