moby / moby/moby

Add support for setting ownership of CSI volumes via VOLUME_MOUNT_GROUP

Open
#44,988 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/swarm kind/feature status/0-triage
Dominant language
Go
Stars
72.1k
Forks
19.2k
Avg merge
1d 17h
Merged PRs (30d)
164

Description

Description

Currently the CSI integration does not support setting permissions on newly created volumes. The CSI spec has support for it via VOLUME_MOUNT_GROUP, see https://github.com/container-storage-interface/spec/blob/master/spec.md.

Supporting this in Docker Swarm would mean that more services could be run under a different user than root.

See also the discussion on https://github.com/hetznercloud/csi-driver/issues/377 for more background information.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file, test, or entry point is named. Start by reading the CSI specification's VOLUME_MOUNT_GROUP section and tracing Moby's Docker Swarm CSI volume creation and mount flow. Done means newly created CSI volumes can receive the requested ownership or permissions and services can run under a non-root user.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.