-
Notifications
You must be signed in to change notification settings - Fork 135
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
SecurityContext should support runAsUser #60
Comments
Hi 👋 I'd prefer the second option as this would allow to easier specify other securityContext properties. Drop all other privileges and whatnot. What I'm currently still unclear on in this securityContext world is, what the best way to do it is. |
If you want to send in a PR for the second option,as you already seem to have that sketched out would be awesome, would be a good a addition even when this is fixable directly in the Dockerfile 👍 |
I completely agree with you, the second option seems more appropriate either way. I can submit a PR for that 👍 There should be a way to specify a numeric user without using the securityContext 🤔 . Looking at cert-manager, they did exactly that. However, they used bazel for specifying the docker image instead of using a Dockerfile. I'll try to understand how this works and report back! |
Merged and Released with 3.7.0 🎉 Again, awesome work 🙏👍 I've looked a bit into how one can set a numeric uid / gid in the Dockerfile itself. Turned out not to be too hard, see d4e1f0d So all MultiJuicer Images now run with a 1001 uid and gid. Which allows it to pass the If you notice something not working as expected feel free to reopen 🙏 |
@J12934 Thanks! It was all working as expected for us. Thanks for the very quick release 🙏 |
I have an issue with my PodSecurityPolicy specifying
runAsNonRoot
astrue
.The JuiceBalancer already uses the non-root user
app
but Kubernetes needs a numeric id in order to verify that it is not the root user:For this to work, the pod securityContext needs to specify
runAsUser
with the according user id of app.I would love a change to either:
The text was updated successfully, but these errors were encountered: