Skip to content

mcad-controller image should be created with a non-root user #273

Closed
@jbusche

Description

@jbusche

Noticing that the mcad-controller image is running as root:

podman run -it --rm quay.io/project-codeflare/mcad-controller:main-v1.29.51 whoami
root

I'm proposing a PR which would create an "mcad" user.

podman run -it --rm docker.io/jimbdocker/mcad-controller:jbusche-nonroot-v1.29.52 whoami
mcad

Official guidance is the following:
"It is a good practice to run the container as a non-root user, if possible. Though user namespace mapping is now available, if a user is already defined in the container image, the container is run as that user by default and specific user namespace remapping is not required"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions