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

Support docker credential store #806

Closed
denisa opened this issue Jul 1, 2017 · 4 comments
Closed

Support docker credential store #806

denisa opened this issue Jul 1, 2017 · 4 comments

Comments

@denisa
Copy link
Contributor

denisa commented Jul 1, 2017

Docker has recently introduced the concept of a credential store.
With a credential store, docker saves the credentials in a platform specific safe place, such as macOS keychain.

For example, my ~/.docker/config.json looks like:

{
    "auths": {
        "https://index.docker.io/v1/": {},
        "https://us.gcr.io": {},
        "us.gcr.io": {}
    },
    "credsStore": "osxkeychain"
}

Clean & safe.

However, this doesn't work with version 0.21.0 of the plugin, as it only supports having credential in clear text in that file.

Docker documentation for the credential store

@rhuss
Copy link
Collaborator

rhuss commented Jul 3, 2017

Sounds like a reasonable addition the plugin, thanks for the heads up. If you feel fancy and might want to contribute and could give you some pointers for where to start.

Otherwise it might take a bit unti we pick up this feature, we are all currently quite busy otherwise.

@denisa
Copy link
Contributor Author

denisa commented Jul 5, 2017

fair ;-)

From the credential helper api description, the helper must be on $PATH and be called with a get argument and the desired server on STDIN.

Example:

> echo "https://us.gcr.io" | docker-credential-osxkeychain get
{"ServerURL":"https://us.gcr.io","Username":"oauth2accesstoken","Secret":"… my secret key …"}

@denisa
Copy link
Contributor Author

denisa commented Jul 30, 2017

This is the default behavior of any recent docker installation of docker for mac. This feature is thus important to support the ‘fall-back to docker credentials’ mode of the plugin.

@rhuss
Copy link
Collaborator

rhuss commented Apr 14, 2018

Support has been added.

@rhuss rhuss closed this as completed Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants