Skip to content

Conversation

@blairdrummond
Copy link

Hello! I was trying out the policy command with a localhost registry for testing, and discovered that I couldn't push to a localhost registry on http. The insecure flag skips TLS Verification, but using https as the Scheme in the docker registry was hard-coded. This PR adds a --plaintext flag which allows this to be configurable.

I did a quick comparison with other tools to come up with the name. The lingo of --plaintext matches ArgoCD's behaviour. In crane they just use --insecure to mean "connect to the registry over http".

Comparison with other tools

ArgoCD

--insecure = no TLS verify
--plaintext = Use HTTP client/server

Crane's --insecure option allows for HTTP scheme on registry

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.

1 participant