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

Fixes reading /root/.docker/config.json on debian #3198

Conversation

blakebarnett
Copy link

Debian and probably others apparently don't automatically default to using the root account if it's not specified.

ref: kubernetes/kubernetes#45487 (comment)

Debian and probably others apparently don't automatically default to using the root account if it's not specified.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 14, 2017
@k8s-ci-robot
Copy link
Contributor

Hi @blakebarnett. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@blakebarnett
Copy link
Author

/assign @justinsb

@justinsb
Copy link
Member

/ok-to-test

Who does the systemd service run as without this @blakebarnett ? I did notice that HOME was not set correctly on systemd - I wonder if that is the problem. But maybe setting this has the effect of setting HOME?

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 16, 2017
@chrislovecnm
Copy link
Contributor

So running stuff as root always gives me a chill down my spine. Shouldn't we have a privileged kubernetes user that is running kubelet?

@blakebarnett
Copy link
Author

It's a good idea, but adds user management across all supported OSes into the mix...

@blakebarnett
Copy link
Author

@justinsb I haven't verified but I believe it's nobody on Debian based distros. Setting HOME worked for CoreOS and (I think) RH.

@justinsb
Copy link
Member

I checked on CoreOS & Debian and it looks like it runs as root without the env. I like making it explicit therefore (so we know to consider changing the user later), and the "side-effect" of getting the env is great!

/lgtm

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 26, 2017
@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: blakebarnett, justinsb

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 26, 2017
@justinsb
Copy link
Member

/retest

@justinsb
Copy link
Member

Test failure filed as kubernetes/kubernetes#51429

@KashifSaadat
Copy link
Contributor

/retest

@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 307df97 into kubernetes:master Aug 28, 2017
@blakebarnett blakebarnett deleted the bdb/add_user_to_kubelet_systemd_unit branch August 28, 2017 17:20
@blakebarnett
Copy link
Author

Ah that makes more sense. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants