kcp-dev / contrib-tmc

An experimental add-on readding some Kubernetes compute APIs and impement transparent multi-cluster scheduling
Apache License 2.0
5 stars 3 forks source link

feature: Sync Pod Security Admission Labels and OpenShift SCCs #106

Open adambkaplan opened 1 year ago

adambkaplan commented 1 year ago

Feature Description

Many users of Tekton/Pipeline Service run containers that require some level of extra pod security permissions. For instance, running buildah in a container requires (at minimum) the SET_FCAP capability, which is only allowed by the baseline Pod Security Standard.

To run these workloads, the following abilities are needed:

Proposed Solution

Alternative Solutions

The current solution employed by the Pipeline Service is unique to its deployment topology:

Want to contribute?

Additional Context

No response

sttts commented 1 year ago

Syncing labels for PodSecurity is certainly feasible but clearly needs deeper thoughts. @s-urbaniak has lots of background.

SCCs I think are out of scope for syncing. SCCs are cluster-wide and they can influence overall physical cluster behaviour. Hence, they must be pre-installed in the physical cluster outside of syncing, e.g. by some OpenShift-aware syncer operator / installer, or other kind of fleet management.

ncdc commented 1 year ago

Action item: let's schedule a dedicated meeting to discuss this with @s-urbaniak @adambkaplan @sttts

ncdc commented 1 year ago

cc @cathaloconnorrh

s-urbaniak commented 1 year ago

As discussed in Slack, the current state of the discussion is:

  1. SCC configuration is better left as a manual exercise on the target cluster.
  2. Pod Security settings will be auto-configured using the autolabelling mechanism as per https://github.com/openshift/enhancements/blob/master/enhancements/authentication/pod-security-admission-autolabeling.md

One can opt out of autolabelling (see https://docs.openshift.com/container-platform/4.11/authentication/understanding-and-managing-pod-security-admission.html#security-context-constraints-psa-opting_understanding-and-managing-pod-security-admission).

s-urbaniak commented 1 year ago
mjudeikis commented 8 months ago

/transfer-issue contrib-tmc