-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add authentication from config.json file #2
base: master
Are you sure you want to change the base?
Conversation
Thanks for the improvement. I'll have to check it out in more detail and
hopefully merge tomorrow.
…On Tue, May 16, 2017, 3:49 AM Eric Muellenbach ***@***.***> wrote:
Hi,
I really like your tool, but I thought it might be cleaner to separate the
login with AWS and the Registry Authentication. So I wrote an integration
to read the users config.json file in order to copy images between two
registries that have authentication enabled.
------------------------------
You can view, comment on, or merge this pull request online at:
#2
Commit Summary
- Add authentication from config.json file
File Changes
- *M* main.go
<https://github.com/mdlavin/copy-docker-image/pull/2/files#diff-0>
(78)
- *M* vendor/vendor.json
<https://github.com/mdlavin/copy-docker-image/pull/2/files#diff-1>
(270)
Patch Links:
- https://github.com/mdlavin/copy-docker-image/pull/2.patch
- https://github.com/mdlavin/copy-docker-image/pull/2.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGhlywP2iDsp8BDudwzSLRUhDWwnThkks5r6VTqgaJpZM4NcHVz>
.
|
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.
Does the config.json have support for working seamlessly with ECR or does it require a step before using copy-docker-image? I'm ok with making copy-docker-image more flexible to allow external authentication in addition to automatic ECR auth, but I don't want to lose the nice experience of letting the AWS take care of auth automatically.
} | ||
|
||
registry, err := registry.New(url, username, password) | ||
registry, err := registry.NewInsecure(url, username, password) |
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.
Switching to allow insecure connections seems like a dangerous thing to me. Can this be switched back to New
instead?
Hi,
I really like your tool, but I thought it might be cleaner to separate the login with AWS and the Registry Authentication. So I wrote an integration to read the users config.json file in order to copy images between two registries that have authentication enabled.