Skip to content

Draft: Change default user to non-root

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do?

I am trying to run this capability in my k8s cluster, but the cluster admission controller will not allow non-root or named users to run for security reasons. This change gives the default user as a UID so that the admission controller can confidently evaluate the container image before starting it up.

The error I'm trying to avoid is Error: container has runAsNonRoot and image will run as root

TODO:

  • Add FIPS Dockerfile
  • Understand test jobs and fix what I broke

What are the relevant issue numbers?

Repo I'm submitting the MR to doesn't seem to have issues open.

Does this MR meet the acceptance criteria?

Edited by Josiah Ritchie

Merge request reports