acoustic-carpenter-78188
06/13/2026, 12:33 AMPodTemplate.allow_fuse() now grants unprivileged FUSE via a device plugin by default — smarter-devices/fuse resource request + CAP_SYS_ADMIN, no privileged container, no /dev/fuse hostPath. allow_fuse(privileged=True) is kept as a legacy escape hatch (hostPath + privileged) for clusters without a device plugin. The two paths are cleanly separated (_apply_fuse_device_plugin / _apply_fuse_privileged).
2. JuiceFS Volume examples (examples/volumes/) updated to use pod_template=flyte.PodTemplate().allow_fuse() instead of the old privileged/`enable_fuse_mount` approach.
Why
The old allow_fuse(privileged=False) path used a /dev/fuse hostPath, which doesn't actually work: a hostPath surfaces the device node but the container's devices cgroup still denies open() with EPERM. Only privileged (or a device plugin) grants access. The device-plugin path is the real unprivileged solution — requesting smarter-devices/fuse makes kubelet inject /dev/fuse into the devices-cgroup allowlist; CAP_SYS_ADMIN covers mount(2). Composes with allow_nested_sandboxing().
The cluster must run a FUSE device plugin advertising smarter-devices/fuse — the Union dataplane chart ships an opt-in fuseDevicePlugin DaemonSet (unionai/helm-charts#443, unionai/cloud#16489).
Validated end-to-end
On a real Union dataplane (dogfood, device plugin deployed): an unprivileged task pod built from PodTemplate().allow_fuse() (CAP_SYS_ADMIN + smarter-devices/fuse, not privileged, no hostPath) opened /dev/fuse and mounted an S3-backed flyteplugins-union Volume with a read/write round-trip. CapEff=a82425fb (SYS_ADMIN only).
Tests
TestAllowFuse (device-plugin default) + TestAllowFusePrivileged (legacy hostPath escape hatch) + updated sandboxing-composition tests — 54 passed.
flyteorg/flyte-sdkacoustic-carpenter-78188
06/13/2026, 2:20 PM