Skip to content

build: run the image as a non-root user #83

Closed

Description

@uniqueg

Why

Part of #65. The images of foca and cloud-registry run as a non-root user (UID 1000, group 0, so that arbitrary UIDs as on OpenShift work too). The TESK API image runs as root; the TESK chart already sets runAsUser: 1000 when its security context is enabled, but the image itself should not need that.

What

  • The image runs as UID 1000 in group 0, with a home directory owned by group 0.
  • The smoke test checks the image's user and starts it with an arbitrary UID in group 0, as OpenShift does.
  • Deployment docs and upgrade notes: the kubeconfig path for local runs changes, as the home directory is no longer /root.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions