defenseunicorns / uds-common

Common framework for UDS Packages
GNU Affero General Public License v3.0
4 stars 7 forks source link

Handling Containers that runAsRoot #293

Open andrewg-xyz opened 3 days ago

andrewg-xyz commented 3 days ago

There is software (and containers) that seem to require running as root (tip: you shouldn't) We will proactively encourage upstream to avoid this bad practice Ex. confluent#364).

Do we actively prohibit containers running as root?

- [ ] Introduce guidelines for contains that require root
- [ ] Require nonRoot for Gold packages
- [ ] Introduce **should** nonRoot for Bronze

(summary of offline discussion)

Summary of Discussion on Root Containers in Kubernetes

The team engaged in a conversation regarding the challenges and risks of running containers as root in Kubernetes, prompted by @corang's concern about packages requiring root.

corang commented 3 days ago

I think I'm on team "Must be non-root for silver where intrinsic application functionality doesn't require it"

corang commented 3 days ago

I'd also like to say that any containers running as root or root-ish need to have justifications/explanations, even at bronze.

zachariahmiller commented 3 days ago

Completely agree with @corang on this regarding his two comments.