-
Notifications
You must be signed in to change notification settings - Fork 9
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
Allow insecure and/or anonymous registry #29
Allow insecure and/or anonymous registry #29
Conversation
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.
Have you checked if the rest of the flags are the same as before?
plugin.go
Outdated
@@ -73,18 +74,22 @@ func mainfestToolPath() string { | |||
func (p *Plugin) Exec() error { | |||
args := []string{} | |||
|
|||
if p.Config.Username == "" { | |||
if p.Config.Username == "" && !p.Config.Insecure { |
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.
Why tied to the username? First of all insecure doesn't check certificates or is working without certificates, that doesn't imply anonymous authentication.
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.
I was wrong. I have separated anonymous access from insecure access.
@tboerger, I've separated insecure access from anonymous access. And tested it together on full pipeline. Separately, I checked that the plugin will return errors if you do not specify a password or username. Checked only under linux, to windows I have no access. |
Hi, I have implemented support for insecure registries. Similar to "plugins/docker".
I also added the possibility of anonymous access to the registry.
I also updated manifest-tool to version 1.0.0, because starting from this version there is support for insecure registries.