Skip to content

mz839: RUN ignores explicit group#840

Open
mzihlmann wants to merge 2 commits into
mainfrom
mz839-run-honor-group
Open

mz839: RUN ignores explicit group#840
mzihlmann wants to merge 2 commits into
mainfrom
mz839-run-honor-group

Conversation

@mzihlmann

Copy link
Copy Markdown
Collaborator

Fixes #839

When a stage sets USER user:group, RUN applied only the user and let the gid fall back to the user's primary group, so an explicit group was silently dropped and the command ran with a different group than docker. Behind FF_KANIKO_RUN_HONOR_GROUP the full user:group is now passed to the process credentials so RUN honors the requested group. The flag defaults to off and becomes default in v1.29.0.

@mzihlmann mzihlmann changed the title RUN honors the explicit group from USER (FF_KANIKO_RUN_HONOR_GROUP) mz839: RUN ignores explicit group Jun 26, 2026
@mzihlmann mzihlmann requested review from 0hlov3, BobDu, babs and nejch June 26, 2026 16:47
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/commands/run.go 71.42% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@mzihlmann mzihlmann force-pushed the mz839-run-honor-group branch from 6a5c96d to 218f08e Compare June 27, 2026 21:30
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.

RUN ignores the explicit group in USER user:group

1 participant