No privileged containers

Proprietary

Privileged containers are containers that have all of the root capabilities of a host machine, allowing access to resources that are not accessible in ordinary containers.

org.openrewrite.kubernetes.NoPrivilegedContainers
mod run . --recipe=org.openrewrite.kubernetes.NoPrivilegedContainers

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Add Kubernetes pod spec configuration securityContext: privileged: false