No host process ID sharing

Proprietary

Sharing the host process ID namespace breaks the isolation between container images and can make processes visible to other containers in the pod. This includes all information in the /proc directory, which can sometimes include passwords or keys, passed as environment variables.

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

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 hostPID: false