Skip to content

K8s pipeline client cannot run in namespaces with the restricted Pod Security Standard #28858

Description

@BenStokmans

When OpenMetadata runs ingestion, automation, or application pipelines as Kubernetes Jobs via K8sPipelineClient, the generated pods are rejected by the admission controller in any namespace enforcing the restricted Pod Security Standard.

Two causes:

  1. No seccomp profile support. The restricted standard requires every pod/container to set a seccompProfile (e.g. RuntimeDefault), but the K8s client has no way to configure one.
  2. Automation and application Jobs skip the security context entirely. buildAutomationJob() and buildApplicationJob() never apply a pod/container securityContext (unlike ingestion Jobs), so even with runAsUser/runAsNonRoot configured, those pods are non-compliant.

Expected: Pipelines launched by the K8s client should be deployable into restricted/hardened namespaces.

Proposed fix:

Add a configurable seccompProfileType (RuntimeDefault / Localhost / Unconfined) plus a seccompLocalhostProfile path (valid only when type is Localhost).
Route automation and application Jobs through the same buildPodSecurityContext() / buildContainerSecurityContext() helpers used by ingestion Jobs.
Expose the setting via openmetadata.yaml (K8S_SECCOMP_LOCALHOST_PROFILE).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions