-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: add ssh server #291
feat: add ssh server #291
Conversation
be99825
to
a6bdbc8
Compare
I know this is still draft and you're not looking for feedback/inputs per se, but has there been discussion of using a proper process manager inside the container? I'm specifically thinking of https://github.com/just-containers/s6-overlay Might require changes to the container build so might not really be the right solution, but if we're adding multiple services inside a container, I think it should be considered at some point... |
@seanrmurphy can s6 be run with a non-root user? |
a8a6e9d
to
9ca7a0f
Compare
9ca7a0f
to
493bc35
Compare
I think so but I'm not certain; a common approach is that it runs as root in a container and drops privileges to run a process as a user. Is this in line with what you're thinking? |
1e066f8
to
bf0cde5
Compare
I am not sure. I would have to test things out. It may not be possible because the container runs with non-root uid, and privilege escalation is also turned off. So I am not sure if it will work or not. I know that turning off privilege escalation was causing a bunch of trouble with even having a fully functioning ssh server. |
I've changed the group id for all images for where we do chown or similar from |
d41b94c
to
4d92ea3
Compare
@Panaetius afaik the |
@rokroskar But that wouldn't have worked, no matter what you do in the Dockerfile. Since we do this for the Jupyter servers, K8s will ONLY set that group on the user, no matter what's in Also note that |
I can't remember the details anymore, but this was done initially because we had to have the same groups across different kinds of images for the purpose of running |
@rokroskar do you know how it manifested? so we can test if it's still needed? And shouldn't the r image create the group if it creates the rstudio user as well? |
@Panaetius yes basically the repo permissions would be wrong in either the R or jupyter-based images. Easiest to confirm would be to launch both sets of images from this PR in a live deployment and verify that the repo is rw by the user. Lots of things have changed since that was put in there, so it's entirely possible it's not a limitation anymore. |
I tested it with the R image and all looked good (as far as I can tell as a non-R user...). So I think this can be merged. |
Adds a ssh server that runs as non-root in the image.
This is the first step to allowing ssh access into a renku session.