vmware-nsxlib/vmware_nsxlib/v3
Shawn Wang 1bbcc22d31 Add support of pinning NSX leaf cert
In order to support cert pinning in WCP, this change adds exact cert
match for checking NSX manager authenticity. Setting "nsx_cert_der"
enables this mode, where the pritotity is below ca cert and above
thumbprints.

Currently in nsxlib, the call chain to manage HTTPs connextion is:
1. NSXHTTPAdapter (subclass of urllib3 HTTPAdapter)
2. urllib3 PoolManager
3. urllib3 HTTPSConnectionPool
4. urllib3 HTTPSConnection
In order to inject custom TLS cert validation, we have to override the
connect() function in HTTPSConnection level. Introducing a child class
of HTTPSConnectionPool is also needed to pass the new param. Pool
manager only needs overrding two attrs to allow passing the new param
and properly binding to the new child class of connection pool.

When leaf cert verification is not used, the native urllib3 behavior
will be kept to reduce regression risk.

Change-Id: Icecf30b6df3b60fbeac20cf79586827f3370ce13
2024-02-05 23:30:21 +00:00
..
policy Add enforcement_point_path param for LBServiceUsage 2023-12-11 17:25:02 +00:00
__init__.py Restore FEATURE_ROUTER_FIREWALL, remove nat_pass usage 2022-08-23 00:19:33 -07:00
client_cert.py NSX PI: Do not use deprecated API when registering identity 2021-08-01 09:13:10 -07:00
client.py Support parameter "skip_host_detach" in LogicalPort API 2023-12-12 03:36:43 +00:00
cluster_management.py Support get_restore_status in cluster_management 2019-11-07 17:16:50 +08:00
cluster.py Add support of pinning NSX leaf cert 2024-02-05 23:30:21 +00:00
config.py Add support of pinning NSX leaf cert 2024-02-05 23:30:21 +00:00
constants.py Fix the logical port created twice 2022-03-08 18:11:08 +08:00
core_resources.py Restore FEATURE_ROUTER_FIREWALL, remove nat_pass usage 2022-08-23 00:19:33 -07:00
debug_retry.py Raise the log level for Retry 2021-09-09 10:34:36 +00:00
exceptions.py Support parameter "skip_host_detach" in LogicalPort API 2023-12-12 03:36:43 +00:00
lib.py Reduce page_size if too large response size for search api 2021-11-30 01:20:22 +00:00
load_balancer.py Add silent param for lb stats 2020-08-06 08:44:53 +02:00
native_dhcp.py Remove deprecated apis & configs 2020-04-16 13:20:07 +02:00
ns_group_manager.py Drop log translations 2017-03-27 08:03:53 +03:00
nsx_constants.py Update version check to use POST API when restore vif 2023-03-28 13:52:15 +08:00
resources.py Support parameter "skip_host_detach" in LogicalPort API 2023-12-12 03:36:43 +00:00
router.py [MP] Support firewall_match for NAT rules 2022-06-09 23:15:22 -07:00
security.py NSXT: Add rule tag support 2020-08-24 03:28:43 -07:00
token_provider.py Remove six package usage 2020-07-19 12:16:35 +02:00
trust_management.py Get all certificates from NSX 2022-10-13 16:53:20 +05:30
utils.py Add ORBAC Support in Policy API 2021-04-19 14:03:54 -07:00
vpn_ipsec.py Initial support for Policy IPSEC VPN resources 2019-05-21 13:18:32 +00:00