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

Make the Docker image "rootless" [WIP] #799

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

Make the Docker image "rootless" [WIP] #799

wants to merge 1 commit into from

Commits on Nov 8, 2024

  1. Make the Docker image "rootless"

    The previous image set root as the default user. This means that a process
    has the root rights and can create files with this id in a mounted volume from
    the host. This is a common attack vector.
    
    With the present change, the container will run under a normal user `openhexa`
    without any root permission.
    
    It's also possible to set the UID and GID of the containerized process and
    session. The pipeline runner requires the GID that corresponds to the host
    Docker group.
    
    Noticed that doesn't make Docker rootless. This requires to prepare the Docker
    engine to run in a normal userspace. This goes beyond the present change.
    toch committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    be900d4 View commit details
    Browse the repository at this point in the history