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

fix user metadata set to USER:GROUP if group string is not set #1105

Merged
merged 2 commits into from
Mar 4, 2020

Conversation

tejal29
Copy link
Member

@tejal29 tejal29 commented Mar 4, 2020

Relates to #824 and #995
Should merge before #1072

In this PR, remove config.User string being set to USER:GROUP when group is not specified.
This is in line with docker behavior. See details

This change will not affect group Id not being set on files because.
When executing Run Command,

  1. Executor calls the method util.GetUIDAndGIDFromString with fallback = true

  2. This method will evaluate the user string. The string previously passed was "testuser:testgrp"
    Now with this change, the string will be just "testuser"

  3. The method util.GetUIDAndGIDFromString will now fallback to user.Gid here

Follow up clean up PR: We can safely remove fallback from the util.GetUIDAndGIDFromString signature since this value is always true.

@googlebot googlebot added the cla: yes CLA signed by all commit authors label Mar 4, 2020
@tejal29 tejal29 mentioned this pull request Mar 4, 2020
4 tasks
@tejal29 tejal29 merged commit 33a54ca into GoogleContainerTools:master Mar 4, 2020
@tejal29 tejal29 deleted the fix_user_metadata branch April 26, 2021 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA signed by all commit authors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants