Skip to content

Drop hardcoded runAsUser/runAsGroup from the plugin Deployment #1260

Done

Description

@GabriFedi97

The plugin Deployment in kubernetes/deployment.yaml (and the generated manifest.yaml) sets a fixed UID/GID on the container:

securityContext:
  runAsGroup: 10001
  runAsUser: 10001

These were added in #225 (closing #177) to make sure the controller doesn't run as root. The same PR also set runAsNonRoot: true at the pod level, and that alone already provides the guarantee, so the fixed UID/GID are redundant. The plugin image already sets a numeric non-root user: USER 65532:65532 in containers/Dockerfile.plugin so the container will run under that user and group by default.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions