Limit root capabilities in a container

Proprietary

Limiting the admission of containers with capabilities ensures that only a small number of containers have extended capabilities outside the default range.

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

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: capabilities: drop: ALL