cli icon indicating copy to clipboard operation
cli copied to clipboard

create module: detect insecure registries

Open clebs opened this issue 2 years ago • 0 comments

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.

clebs avatar Aug 31 '22 08:08 clebs