Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from May 23, 2023

Conversation

ndeloof
Copy link
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

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof requested review from a team, nicksieger, StefanScherer, ulyssessouza, glours, milas and laurazard and removed request for a team May 23, 2023 06:42
@codecov
Copy link

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
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

@milas milas merged commit eafcd1b into docker:v2 May 23, 2023
23 of 24 checks passed
@ndeloof ndeloof deleted the CopyUIDGID branch December 20, 2023 13:35
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