-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
podman run --authfile do not stat file #18413
Conversation
No other commands do this, it makes no sense to fail hard if the given authfile does not exists. We do not even know if we have to pull anything at that point. I expect the code to error at some later point if the auth file is really needed but does not exists. Fixes containers#18405 Signed-off-by: Paul Holzinger <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99 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 |
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.
Test isn't happy yet
[+1516s] [Fail] Podman run [It] podman run should fail with nonexistent authfile
[+1516s] /var/tmp/go/src/github.com/containers/podman/test/e2e/run_test.go:1572
I wonder why this is explicitly tested.
Background seems to be issue #4328, but there's no explanation of why that seemed important. |
I somehow expect Podman to fail if the user specified a non-existing file. Could very well be a typo etc. |
I agree but why should podman run fail when the file is not even used? The auth backend code should error out (I haven't verified that). And also why only podman run, podman create is fine so I find this very inconsistent. |
That may lead to inconsistent behavior between local and remote as remote would send the credentials over to the server (independent if we need them or not).
I concur. The commands should behave consistently. |
Looking at #4337 it looks like it used to be in create as well, so this is a regression. I also find it questionable how the |
I am not that concerned about how it's handled. The docs are pretty explicit about the env var only affecting the default of the CLI flag. |
A friendly reminder that this PR had no activity for 30 days. |
@Luap99 @vrothberg What is going on with this PR? |
Seems like this is the expected behaviour so I close this it. My concerns are still valid IMO but I do not maintain any of this auth code so I don't care. |
No other commands do this, it makes no sense to fail hard if the given authfile does not exists. We do not even know if we have to pull anything at that point. I expect the code to error at some later point if the auth file is really needed but does not exists.
Fixes #18405
Does this PR introduce a user-facing change?