medik8s / node-maintenance-operator

Kubernetes Operator to manage node maintenance through NodeMaintenance custom resources
https://www.medik8s.io/maintenance-node/
Apache License 2.0
27 stars 13 forks source link

PSA "restricted" - Pod Security Updates #61

Closed razo7 closed 1 year ago

razo7 commented 1 year ago

In order to comply with the restricted PSA profile, the pod needs to have runAsNonRoot: true, and all containers need to have allowPrivilegeEscalation:false and drop all capabilities. Also the Dockerfile should set a USER.

On Kubernetes we would also need to set seccompProfile.type: RuntimeDefault. This will be added by a new make target bundle-k8s for community (k8s) releases, since it would break deployment on OCP 4.10 though. Therefore, it would be be empty by default.

Related docs:

openshift-ci[bot] commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: razo7

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/medik8s/node-maintenance-operator/blob/main/OWNERS)~~ [razo7] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
beekhof commented 1 year ago

/lgtm

beekhof commented 1 year ago

/lgtm