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

podman login leaves password in clear #4119

Closed
TomSweeneyRedHat opened this issue Sep 26, 2019 · 26 comments
Closed

podman login leaves password in clear #4119

TomSweeneyRedHat opened this issue Sep 26, 2019 · 26 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@TomSweeneyRedHat
Copy link
Member

I just used the most recent Docker for the first time in a long time and when doing docker login I get:

# docker login quay.io
Username: tomsweeneyredhat
Password: 
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

In the most up to date podman, 1.6-dev we don't do a similar warning for podman login and probably should. We'll also need to make sure podman login works with a credential helper too. Probably the same story in buildah login too.

@TomSweeneyRedHat
Copy link
Member Author

@QiWang19 PTAL

@QiWang19
Copy link
Contributor

support the "credsStore" has been working on containers/image#656

c/image and podman already support "credHelpers", but only works for config in /run/user/0/auth.json and sudo podman login

with config in /run/user/1000/auth.json and podman login got error

{
        "credHelpers": {
                "docker.io": "secretservice"
        }
}

Error: error reading auth file: error getting credentials - err: exit status 1, out: `Exhausted all available authentication mechanisms (tried: EXTERNAL) (available: EXTERNAL)`

I think this should be fixed before podman login return credentials-store WARNING.....
#4123

@github-actions
Copy link

This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days.

@vrothberg
Copy link
Member

Throwing a warning can be done independently of the ongoing work for credStores but it must be done in c/image. @TomSweeneyRedHat, are you interested in opening a PR for c/image? I guess we could do a fmt.Fprintf(os.Stderr, "$WARNING") when using an authfile while storing credentials.

@TomSweeneyRedHat
Copy link
Member Author

I'll work with @QiWang19 to make this happen

@rhatdan
Copy link
Member

rhatdan commented Feb 17, 2020

@QiWang19 @TomSweeneyRedHat What should we do with this one?

@TomSweeneyRedHat
Copy link
Member Author

We should keep it. It got lost in the weeds, but is needed.

@rhatdan
Copy link
Member

rhatdan commented Jun 9, 2020

@QiWang19 Could you look into fixing this and adding the warning?

@QiWang19
Copy link
Contributor

Will fix on adding the warning after the credential helper can be used as default.

@QiWang19 Could you look into fixing this and adding the warning?

@rugk
Copy link
Contributor

rugk commented Aug 7, 2020

Accidentally opened #7254 as a duplicate.
So I'd very much like to see libsecret support, at least, so passwords are saved in the credential store on Linux desktops.

@rhatdan
Copy link
Member

rhatdan commented Sep 11, 2020

@QiWang19 What is the latest on this?

@vrothberg vrothberg added kind/bug Categorizes issue or PR as related to a bug. and removed do-not-close stale-issue labels Sep 15, 2020
@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented Dec 24, 2020

@QiWang19 Any progress?

@QiWang19
Copy link
Contributor

QiWang19 commented Jan 4, 2021

If https://github.com/containers/image/pull/971could finally merged, this can be issue closed by using credential helpers. But I haven't been working on this for a while. And I have no idea why the upstream fix docker/docker-credential-helpers#191 failed the CI.

@github-actions
Copy link

github-actions bot commented Feb 4, 2021

A friendly reminder that this issue had no activity for 30 days.

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@vrothberg
Copy link
Member

What is the scope of the issue? I think there is a number of mentioned topics which makes it hard to know when can close. Is it credhelpers, is it a warning?

Throwing a warning for the default setup may raise the question why it is the default.

@rhatdan
Copy link
Member

rhatdan commented May 4, 2021

Once we have changed the credhelper to something other the auth.json file, we can close this. For rootless users we should default to gnome-secrets.

@rugk
Copy link
Contributor

rugk commented May 4, 2021

For rootless users we should default to gnome-secrets.

Yes! Respectively to some XDG standard of that…

E.g. this libsecret thing git uses

@rhatdan
Copy link
Member

rhatdan commented May 4, 2021

Yes that looks perfect.

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@rugk
Copy link
Contributor

rugk commented Aug 11, 2021

shh #badbot 🔕🤖🔕

…that does still not mean the issue is magically solved.

@rhatdan
Copy link
Member

rhatdan commented Aug 11, 2021

@cdoern PTAL

@TomSweeneyRedHat
Copy link
Member Author

Just noting that containers/image#1193 supplied the credential helpers bit of this along with this issue: #4123

@umohnani8
Copy link
Member

This looks like it might be done based on @TomSweeneyRedHat's comment above. Is there anything else left to do here @rhatdan @vrothberg @QiWang19?

@rhatdan
Copy link
Member

rhatdan commented Sep 29, 2021

Yes I believe this is complete. Reopen if I am mistaken.

@rhatdan rhatdan closed this as completed Sep 29, 2021
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
7 participants