update/software-client
Joseph Vazhappilly 0cd1d59425 Add support for https in USM software client
This change add support for https with SSL protocol and certificate.
The USM client can work with either insecure (disable SSL/TLS
certificate verification) or with SSL certificate. The client is
also modified to support sessions and versions. These changes are
adapted from cgtsclient.

This adds three authorization modes, [token, keystone & local-root].

In token mode, a keystone token and software-url is used for auth.
Eg: $ software \
        --software-url "http://192.168.204.1:5497" \
        --os-auth-token "${TOKEN}" list

In keystone mode, sourced keystone configs in env is used for auth.
Eg: $ source /etc/platform/openrc; software list

In local-root mode, authorization is by privileged user (root/sudo)
of the controller where software application is running.
Eg: $ sudo software list

Optional arguments specific to https:
  -k, --insecure
  --cert-file CERT_FILE
  --key-file KEY_FILE
  --ca-file CA_FILE

Example usage for insecure connection:
  software -k list

Story: 2010676
Task: 49666

Test Plan:
PASS: Verify software cli output for http endpoints
PASS: Verify software cli output for https endpoints

Change-Id: I2e2ff115b8d03cddb02e026da84f389918238dab
Signed-off-by: Joseph Vazhappilly <joseph.vazhappillypaily@windriver.com>
2024-03-14 06:58:50 -04:00
..
debian Adding software-client to docker_stable_wheel.inc 2023-11-27 12:04:06 -03:00
service-files Build Software Client python wheels package 2023-10-05 20:16:14 +00:00
software_client Add support for https in USM software client 2024-03-14 06:58:50 -04:00
pylint.rc Build Software Client python wheels package 2023-10-05 20:16:14 +00:00
requirements.txt Build Software Client python wheels package 2023-10-05 20:16:14 +00:00
setup.cfg Build Software Client python wheels package 2023-10-05 20:16:14 +00:00
setup.py Build Software Client python wheels package 2023-10-05 20:16:14 +00:00
test-requirements.txt Add support for https in USM software client 2024-03-14 06:58:50 -04:00
tox.ini Build Software Client python wheels package 2023-10-05 20:16:14 +00:00