Skip to content

only set CopyUIDGID when secret is requested to set gid/uid#10598

Merged
milas merged 1 commit intodocker:v2from
ndeloof:CopyUIDGID
May 23, 2023
Merged

only set CopyUIDGID when secret is requested to set gid/uid#10598
milas merged 1 commit intodocker:v2from
ndeloof:CopyUIDGID

Conversation

@ndeloof
Copy link
Copy Markdown
Contributor

@ndeloof ndeloof commented May 23, 2023

What I did
only set CopyUIDGID when secret configuration explicitly requires to set uid/gid, otherwise we get hurt by moby/moby#34142

Related issue
(partially) fixes #10595

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@ndeloof ndeloof requested review from a team, StefanScherer, glours, laurazard, milas, nicksieger and ulyssessouza and removed request for a team May 23, 2023 06:42
@codecov
Copy link
Copy Markdown

codecov Bot commented May 23, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.03 ⚠️

Comparison is base (34bd41c) 59.56% compared to head (3c3446f) 59.54%.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10598      +/-   ##
==========================================
- Coverage   59.56%   59.54%   -0.03%     
==========================================
  Files         107      107              
  Lines        9359     9359              
==========================================
- Hits         5575     5573       -2     
- Misses       3210     3212       +2     
  Partials      574      574              
Impacted Files Coverage Δ
pkg/compose/secrets.go 63.07% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Setting secrets using "environment:" instead of "file:" works only using root in container/service

3 participants