Kubernetes v1.37 Adds Alpha Controls for Container Storage Security

Kubernetes v1.37 Adds Alpha Controls for Container Storage Security

AI-generated editorial illustration; not a documentary photograph.

Kubernetes v1.37 introduces two alpha storage security capabilities: bind mount options for container volumes and configurable permission modes for emptyDir volumes. Announced by the Kubernetes project on September 16, 2026, the features give workload authors native controls for restrictions that previously required workarounds such as init containers.

Security Flags at the Bind Mount

The new bindMountOptions field can apply the Linux noexec, nosuid and nodev flags to volume mounts inside containers. These respectively block direct execution of binaries from a mounted filesystem, prevent set-user-ID and set-group-ID bits from taking effect, and stop special device files from being interpreted as devices.

This control operates at a different layer from the existing mountOptions field for PersistentVolumes. PersistentVolume options are applied by the CSI driver at the storage layer, while bindMountOptions governs the bind mount created for the container by its runtime. The feature supports emptyDir, PersistentVolumes, CSI volumes, projected volumes, ConfigMaps and Secrets, but not image volumes.

Configurable emptyDir Permissions

Kubernetes previously created emptyDir directories with a fixed 0777 mode. Kubernetes v1.37 adds a mode field that can restrict access or enable the Unix sticky bit. Setting 01777, for example, allows shared writes while limiting file deletion and renaming to the file owner or root. A mode such as 0750 can restrict access to the owner and group.

The setting applies to disk-backed, Memory and HugePages emptyDir media. However, a pod-level fsGroup configuration overrides the permission mode specified for emptyDir.

Feature Gates and Runtime Support

Administrators must enable the VolumeBindMountOptions and EmptyDirVolumeMode feature gates on both the API server and kubelet. Bind mount options also require a container runtime that supports the CRI mount_options field and advertises that capability through runtimeFeatures. The scheduler uses declared node features to avoid incompatible placement, and the kubelet rejects a pod if it nevertheless reaches an unsupported node.

Linux-Only Alpha Limits

Both capabilities are Linux-specific and have no effect on Windows nodes. Existing behavior remains unchanged when the fields are omitted, including the default 0777 mode for emptyDir. During version skew, an enabled API server can accept an emptyDir mode that a kubelet without the gate will ignore, causing that kubelet to fall back to 0777 permissions.

Source: Kubernetes v1.37: Hardening Container Storage with Bind Mount Options and EmptyDir Permissions

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *