nfv/nfv
Jorge Saffe 9feef4232d sw-manager fails with SSL and CA Cert provided.
When sw-manager is used through a secure connection (https
enabled) either with the remote CLI or within the cluster
via the public interface, the operation fails if the
Certificate Authority's cert is not included among the
system's trusted CAs.

The sw-manager client lacks implemented methods for
referencing a local Certificate Authority Cert during calls.
Therefore, if the CA is not among the system's trusted CAs,
all calls made by sw-manager's CLI will fail since
authentication in Keystone will also fail.

Other CLIs like fm or platform allow referencing a CA Cert
via the "REQUESTS_CA_BUNDLE" environment variable. The fix
involves loading, if defined, the CA Cert referenced by
such an environment variable, and adjusting SSL calls to
verify connections using the provided CA Cert.

Test Plan:
  PASS Fresh Install SX Env

  PASS Source openrc.sh file (internal interface).
  PASS sw-manager patch-strategy show

  PASS Enable secure mode (https)
  PASS Download OpenStack RC File from Horizon.
  PASS Source RC file inside cluster (public interface).
  PASS Set REQUESTS_CA_BUNDLE with CA-Cert path.
  PASS sw-manager patch-strategy show

  PASS Enable secure mode (https)
  PASS Download OpenStack RC File from Horizon.
  PASS Install remote CLI (custom container with changes)
  PASS Source downloaded RC file
  PASS Set REQUESTS_CA_BUNDLE with CA-Cert path.
  PASS sw-manager patch-strategy show

Closes-bug: 2033561

Change-Id: If5b70714cde09bd8c329b976a8148daee9001415
Signed-off-by: Jorge Saffe <jorge.saffe@windriver.com>
2023-08-30 21:43:07 +00:00
..
centos Kube rootca update orchestration integration 2021-09-02 12:53:36 -05:00
debian Update debian package versions to use git commits 2023-02-09 17:00:49 +00:00
nfv-client sw-manager fails with SSL and CA Cert provided. 2023-08-30 21:43:07 +00:00
nfv-common Implement system_config_update orchestration 2023-07-17 17:36:44 -04:00
nfv-debug-tools/histogram_analysis Not require recreate of tox env when running tox 2021-04-06 09:48:36 -05:00
nfv-plugins Implement system_config_update orchestration 2023-07-17 17:36:44 -04:00
nfv-tests Implement system_config_update orchestration 2023-07-17 17:36:44 -04:00
nfv-tools small cleanup required by OBS badness check - exec rights on non executable not allowed 2019-09-17 08:54:22 +02:00
nfv-vim Implement system_config_update orchestration 2023-07-17 17:36:44 -04:00
opensuse Add opensuse specfiles to nfv 2019-10-02 10:34:02 -05:00
.coveragerc Convert NFV unit tests from nose to stestr 2018-09-18 12:56:44 -05:00
.gitignore Add bugbear to flake8 and cleanup some errors 2018-09-13 14:12:48 -05:00
.stestr.conf Fix relative imports in nfv 2023-01-24 22:16:39 +00:00
PKG-INFO StarlingX open source release updates 2018-05-31 07:36:51 -07:00
pylint.rc pylint cleanup for nfv to use standard modules 2023-03-15 15:28:54 +00:00
test-requirements.txt Replace mock with unittest.mock 2023-01-24 22:13:59 +00:00
tox.ini Cleanup pep8 un-used variable warnings 2023-03-08 15:18:00 +00:00