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

Enable use of credential helpers #102

Merged
merged 1 commit into from Oct 23, 2020

Conversation

jonjohnsonjr
Copy link
Contributor

This uses GetAuthConfig from github.com/docker/cli, which embeds logic
for handling credential helpers.

I was surprised that manfiest-tool didn't work with credential helpers when I tried it! :)

You may want to clean this up a bit more by just reading the config file once here and passing it around, but I wanted to keep the diff small to avoid breaking anything.

Fixes #92

This uses GetAuthConfig from github.com/docker/cli, which embeds logic
for handling credential helpers.
@estesp
Copy link
Owner

estesp commented Sep 25, 2020

Thanks for this! I haven't been focused much on this v1 codebase as I've almost completed a "rework" for a v2 that supports cred helpers natively by using oras + containerd as the registry auth/transaction layer: https://github.com/estesp/manifest-tool/tree/v2-rework

That said, it won't hurt to have this in the v1 codebase as well.

Copy link
Owner

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit 4251445 into estesp:master Oct 23, 2020
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

Successfully merging this pull request may close these issues.

[Bug] Need to supply username and password despite logging in
2 participants