Skip to content

feat(chart): set the executors' security context #264

Closed

Description

@uniqueg

Why?

Part of #128. Executors run with the user of their image, often root. tesk-api can already give the executor pods a security context: it reads one at startup from a ConfigMap named in the environment variable CONFIGMAP (key securityContext, or the one in CONFIGMAPKEY; namespace CONFIGMAPNAMESPACE), with the fields runAsUser, runAsGroup, fsGroup and nonRoot (KubernetesObjectsSupplier.createSecurityContext). The chart doesn't expose this, and the setting is undocumented.

fsGroup also lets executors that run as non-root use the files that the filer (running as root) stages on the task's PVC (#113), on volume types whose ownership Kubernetes manages.

How?

  • An opt-in chart value (e.g. tesk.executor.securityContext, with runAsUser, runAsGroup, fsGroup and runAsNonRoot), empty by default: no ConfigMap and no CONFIGMAP variable, so executors run as today.
  • When set: a ConfigMap of the release with these fields, passed to tesk-api with CONFIGMAP.
  • Schema checks for the fields (non-negative integers, a boolean).
  • Docs: the value, its effect on executor pods only (not the taskmaster or filers), fsGroup for staged files, and its limits (volume types without ownership management, images that need root).

A non-root default (#128) stays out of scope.

Acceptance criteria

  • Empty by default, which renders the same objects as before.
  • Set, executor pods get the security context.
  • Documented in the configuration reference and the deployment guide.

Activity

  1. added
    priority: medium
    status: in progress
    type: feature
    type: security
    on Nov 7, 2026
  2. added
    workload: hours
    on Nov 7, 2026
  3. added
    type: delivery
    and removed on Nov 8, 2026
  4. removed
    status: in progress
    on Nov 13, 2026
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

    priority: mediumtype: deliverytype: featuretype: securityworkload: hours

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions