IBM / lmctl

Cloud Pak for Network Automation (CP4NA) (previously ALM/TNCO) command line tool
Apache License 2.0
4 stars 19 forks source link

Improve URL parameters by preventing protocol "http" and use "https" as the default #153

Closed dvaccarosenna closed 1 year ago

dvaccarosenna commented 1 year ago

Commands such as login which accept URLs as parameters currently expect the protocol to be included:

lmctl login https://cp4na-o-ishtar.example.com --auth-address https://cp4na-o-nimrod.example.com --username almadmin --password password

It would be considered a reasonable improvement to allow the protocol to be left off, assuming https:// when not set:

lmctl login cp4na-o-ishtar.example.com --auth-address cp4na-o-nimrod.example.com --username almadmin --password password

Also, it has been determined that we should be safeguarding user's from using http. No default installation of CP4NA would have SSL disabled. We will validate the protocol and error on http (with a workaround for older demo environments that may use http)