Skip to main content

What it flags

Reads Kubernetes YAML as a document tree and reviews explicit boolean privileged: true values in regular, init, and ephemeral containers. Recognizes Pods and the built-in apps and batch workload kinds at their supported v1 API versions. Review legitimate infrastructure and node administration uses against the deployment policy. Pod Security Standards Render supported deployment manifests before scanning when the source uses unresolved Helm templates. Findings are contextual and carry no automatic edit. If a recognized workload needs rendering or cannot be parsed, the security scan prints a coverage note on stderr for that file. The note does not change the exit code, the security baseline or sec --fix. Templates and unparsable YAML for other resources, such as Services, ConfigMaps and Ingresses, are left alone without a note.

Configuration

Set the rule to "off" in loadwise.config.json or pass --ignore kubernetes-privileged-container to skip its YAML checks. File overrides can re-enable a rule disabled in the configuration. Files remain eligible for other security checks.