-
Notifications
You must be signed in to change notification settings - Fork 435
[BUG] baseline pod security standard failures #8218
Copy link
Copy link
Closed
Labels
area/device-passthroughPCI and other host devices passthroughPCI and other host devices passthrougharea/securitySecurity relatedSecurity relatedbackport-needed/1.4.3backport-needed/1.5.1kind/bugIssues that are defects reported by users or that we know have reached a real releaseIssues that are defects reported by users or that we know have reached a real releasepriority/0Must be fixed in this releaseMust be fixed in this releaseseverity/1Function broken (a critical incident with very high impact)Function broken (a critical incident with very high impact)
Milestone
Metadata
Metadata
Assignees
Labels
area/device-passthroughPCI and other host devices passthroughPCI and other host devices passthrougharea/securitySecurity relatedSecurity relatedbackport-needed/1.4.3backport-needed/1.5.1kind/bugIssues that are defects reported by users or that we know have reached a real releaseIssues that are defects reported by users or that we know have reached a real releasepriority/0Must be fixed in this releaseMust be fixed in this releaseseverity/1Function broken (a critical incident with very high impact)Function broken (a critical incident with very high impact)
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Closed
Describe the Bug
VM's using device passthrough (PCIDevices, USB Devices, vGPU devices) fail to start as the pod is rejected by the baseline pod security standard.
This happens because the pcidevices controller injects
SYS_RESOURCEcapability into the virt-launcher pod.This is not permitted as per documentation: https://kubernetes.io/docs/concepts/security/pod-security-standards/#baseline
The virt-controller pod contains the following error
To Reproduce
defaultwith pod security standard label as followskubectl label --overwrite ns default pod-security.kubernetes.io/enforce=baselinedefaultnamespace with a device attachedExpected Behavior
Expected the VM to start successfully
Support Bundle for Troubleshooting
Not applicable
Environment
Additional context
No response
Workaround and Mitigation
No response