Skip to content

allow non-root user containers to use devices #92211

Closed
@mythi

Description

@mythi

What happened:
Detailed report in a google doc

TL;DR; CRI container runtimes do not follow securityContext (runAsGroup / runAsUser) when creating config.json for device mounts (coming from the device plugins).

This blocks using non-root users with containers that require device resources.

What you expected to happen:
non-root containers get the device access

Anything else we need to know?:
Discussed in sig-node June 16th. Follow-up June 23th.

The action is to verify security implications and if no issues identified, then move to fix this in both containerd and cri-o.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.sig/nodeCategorizes an issue or PR as relevant to SIG Node.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions