Skip to content

Operator manager pod fails restricted Pod Security Standards #182

Description

@sampras343

Description

The operator manager deployment (config/manager/manager.yaml) has two security gaps:

1. Missing readOnlyRootFilesystem: true

The pod-level SecurityContext sets runAsNonRoot and seccompProfile: RuntimeDefault, and the container-level sets allowPrivilegeEscalation: false with all capabilities dropped. But readOnlyRootFilesystem is not set.

A writable rootfs also means a compromised process (RCE via a dependency vulnerability) could write to the container filesystem, drop a binary, modify /etc/resolv.conf, or plant a reverse shell.

The injected validation containers already set readOnlyRootFilesystem: true via restrictedSecurityContext() in #178. The operator's own container should match.

2. No resource limits

resources: {} - no default CPU or memory requests or limits. The manager runs a webhook in the pod admission path. Under load (node drain, HPA storm), unbounded memory usage can trigger node-level eviction pressure affecting other workloads.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions