-
Notifications
You must be signed in to change notification settings - Fork 783
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 handling of auth.json file while in a user namespace #3274
Conversation
If you are running buildah within a user namespace, without XDG_RUNTIME_DIR being set, we need to make sure buildah login, logout handle XDG_RUNTIME_DIR the same was as buildah push. Running buildah within a container is triggering failures, where buildah login puts the auth.json file in /run/containers/0/auth.json but buildah push looks for it in /tmp/container-user-0/containers/containers/auth.json Fixes: containers#3259 [NO TESTS NEEDED] The existing tests should see if this causes any problems. Signed-off-by: Daniel J Walsh <[email protected]>
Fixes: #3216 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@giuseppe PTAL |
@containers/podman-maintainers PTAL |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
If you are running buildah within a user namespace, without
XDG_RUNTIME_DIR being set, we need to make sure buildah login, logout
handle XDG_RUNTIME_DIR the same was as buildah push.
Running buildah within a container is triggering failures, where buildah
login puts the auth.json file in /run/containers/0/auth.json but buildah
push looks for it in
/tmp/container-user-0/containers/containers/auth.json
Fixes: #3259
[NO TESTS NEEDED] The existing tests should see if this causes any
problems.
Signed-off-by: Daniel J Walsh [email protected]
What type of PR is this?
What this PR does / why we need it:
How to verify it
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?