cli
cli copied to clipboard
create module: detect insecure registries
Description
The --insecure
flag allows to push modules to insecure registries but this can also be automatically be detected if the --registry
flag has a schema prefix.
To make the command more ergonomic, the following logic shall be implemented:
- Automatically detect the schema of a registry if present (http | https) and adjust the push call accordingly.
- If a registry has
http
schema and the--insecure
flag is not explicitly set, prompt the user to confirm pushing to an insecure registry.
Reasons
Better ergonomics.