config/sysinv/cgts-client/cgts-client/cgtsclient/v1
amantri cca5becb65 Implement new certificate APIs
Add an API /v1/certificate/get_all_certs to retrieve all the
platform certs(oidc, wra, adminep, etcd,
service account certs, system-restapi-gui-certificate,
open-ldap, openstack, system-registry-local-certificate,
k8s certs) in JSON response and use this response to format
the "system certificate-list" output as "show-certs.sh" output.

Add an API /v1/certificate/get_all_k8s_certs to retrieve all the
tls,opaque certs in JSON response and use this response to
format the "system k8s-certificate-list" output as
"show-certs.sh -k" output

Implement "system certificate-show <cert name>",
"system k8s-certificate-show <cert name>" to show the full
details of the certificate.

Implement filters in api and cli to show the expired and expiry
certificates

Testcases:
PASS: Verify all the cert values(Residual Time,Issue  Date, Expiry Date
      ,Issuer,Subject,filename,Renewal) are showing fine for all the
      following cert paths when "system certificate-list" is executed
	  /etc/kubernetes/pki/apiserver-etcd-client.crt
	  /etc/kubernetes/pki/apiserver-kubelet-client.crt
	  /etc/pki/ca-trust/source/anchors/dc-adminep-root-ca.crt
	  /etc/ssl/private/admin-ep-cert.pem
	  /etc/etcd/etcd-client.crt
	  /etc/etcd/etcd-server.crt
	  /etc/kubernetes/pki/front-proxy-ca.crt
	  /etc/kubernetes/pki/front-proxy-client.crt
	  /var/lib/kubelet/pki/kubelet-client-current.pem
	  /etc/kubernetes/pki/ca.crt
	  /etc/ldap/certs/openldap-cert.crt
	  /etc/ssl/private/registry-cert.crt
	  /etc/ssl/private/server-cert.pem
PASS: Verify all the cert values(Residual Time,Issue Date, Expiry Date
      ,Issuer,Subject,filename,Renewal) are showing fine for all the
       service accts when "system certificate-list" is executed
          /etc/kubernetes/scheduler.conf
          /etc/kubernetes/admin.conf
	  /etc/kubernetes/controller-manager.conf
PASS: Verify the system-local-ca secret is shown in the output of
      "system certificate-list"
PASS: List ns,secret name in the output of ssl,docker certs if the
      system-restapi-gui-certificate, system-registry-local-certificate
      exist on the system when "system certificate-list" executed
PASS: Apply oidc app verify that in "system certificate-list" output
      "oidc-auth-apps-certificate", oidc ca issuer and wad cert are
      shown with all proper values
PASS: Deploy WRA app verify that "mon-elastic-services-ca-crt",
      "mon-elastic-services-extca-crt" secrets are showing in the
      "system certificate-list" output and also kibana,
      elastic-services cert from mon-elastic-services-secrets secret
PASS: Verify all the cert values(Residual Time,Issue Date, Expiry Date
      ,Issuer,Subject,filename,Renewal) are showing fine for all the
      Opaque,tls type secrets when "system k8s-certificate-list" is
      executed
PASS: Execute "system certificate-show <cert name>" for each
      cert in the "system ceritificate-list" output and
      check all details of it
PASS: Execute "system certificate-list --expired" shows the
      certificates which are expired
PASS: Execute "system certificate-list --soon_to_expiry <N>"
      shows the expiring certificates with in the specified
      N days
PASS: Execute "system k8s-certificate-list --expired" shows the
      certificates which are expired
PASS: Execute "system k8s-certificate-list --soon_to_expiry <N>"
      shows the expiring certificates with in the specified
      N days
PASS: On DC system verify that admin endpoint certificates are
      shown with all values when "system certificate-list" is
      executed
PASS: Verify the following apis
	/v1/certificate/get_all_certs
        /v1/certificate/get_all_k8s_certs
        /v1/certificate/get_all_certs?soon_to_expiry=<no of days>
        /v1/certificate/get_all_k8s_certs?soon_to_expiry=<no of days>
        /v1/certificate/get_all_certs?expired=True
        /v1/certificate/get_all_k8s_certs?expired=True

Story: 2010848
Task: 48730
Task: 48785
Task: 48786

Change-Id: Ia281fe1610348596ccc1e3fad7816fe577c836d1
Signed-off-by: amantri <ayyappa.mantri@windriver.com>
2024-04-17 14:18:21 -04:00
..
__init__.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
address.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
address_pool.py Implement new network-addrpool CLI 2024-03-06 15:46:39 -05:00
address_pool_shell.py Accept additional attributes in addrpool-add CLI 2021-04-05 08:42:02 -04:00
address_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
app.py Send the binary data instead of path 2021-05-08 05:52:48 -03:00
app_shell.py Add support to preserve app attributes when updating app 2022-12-01 12:23:12 -03:00
ceph_mon.py Ceph for standard: System Inventory CLI, API, DB 2019-01-16 18:12:15 +02:00
ceph_mon_shell.py Improve <ceph-mon-modify> command output 2023-01-10 12:28:32 -05:00
certificate.py Implement new certificate APIs 2024-04-17 14:18:21 -04:00
certificate_shell.py Implement new certificate APIs 2024-04-17 14:18:21 -04:00
client.py Implement new network-addrpool CLI 2024-03-06 15:46:39 -05:00
cluster.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
cluster_shell.py Fix system cluster-show error updating string encoding 2022-12-06 09:47:54 -05:00
controller_fs.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
controller_fs_shell.py Allow yaml formatting for controllerfs-list 2020-04-21 13:24:11 +00:00
datanetwork.py Create DataNetworks modelling in System Configuration 2019-01-22 17:43:45 -05:00
datanetwork_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
device_image.py Preserve states for functional user and bmc image 2021-11-22 14:41:28 -05:00
device_image_shell.py Preserve states for functional user and bmc image 2021-11-22 14:41:28 -05:00
device_image_state.py Sysinv extensions for FPGA support 2020-05-13 16:20:37 -04:00
device_image_state_shell.py Sysinv extensions for FPGA support 2020-05-13 16:20:37 -04:00
device_label.py Sysinv extensions for FPGA support 2020-05-13 16:20:37 -04:00
device_label_shell.py Cleanup pylint error: redefined-outer-name 2021-11-25 18:07:46 +00:00
drbdconfig.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
drbdconfig_shell.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
ethernetport.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
ethernetport_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
fernet.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
health.py Fix health check during DC orchestration 2024-01-29 09:30:09 -03:00
health_shell.py Add pod health status to kube rootca check 2023-11-17 17:19:42 -03:00
helm.py cleanup pylint error: dangerous-default-value 2021-11-17 18:18:43 +00:00
helm_shell.py debian: Fix helm-override-update warning 2022-05-25 12:56:43 +03:00
host_fs.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
host_fs_shell.py Add a new filesystem for image conversion 2020-04-29 09:52:35 +00:00
iHost_shell.py Persist iSCSI Initiator Name, NVMe hostid and hostnqn [1/2] 2024-02-08 15:20:38 -03:00
icpu.py py3: Fix for python2/python3 compatibility 2021-04-01 08:58:51 -04:00
icpu_shell.py add sysinv support for specifying cpu function by range 2021-03-31 15:00:30 -06:00
idisk.py Cleanup pylint error: redefined-outer-name 2021-11-25 18:07:46 +00:00
idisk_shell.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
idns.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
idns_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
iextoam.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
iextoam_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
ihost.py Remove the use of the mgmt_ip field in host table 2023-11-01 10:30:21 -04:00
iinterface.py Add bond option primary_reselect 2021-03-23 12:10:02 -04:00
iinterface_shell.py Merge "py3: Fix for python2/python3 compatibility" 2021-04-15 18:07:26 +00:00
ilvg.py Fixing variable renaming 2021-12-02 12:49:58 -03:00
ilvg_shell.py Add upgrade notification for system commands 2022-11-14 17:14:27 +00:00
imemory.py Hugepage percent allocation. 2019-12-16 15:16:56 -05:00
imemory_shell.py Revert "Modify Memory Field Names" 2024-02-29 19:35:25 +00:00
inode.py Fixing tox pylint errors in cgts-client component 2018-08-24 14:21:43 -04:00
inode_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
interface_datanetwork.py Remove datanetworks param from interface commands 2019-06-26 15:30:44 -04:00
interface_datanetwork_shell.py Create DataNetworks modelling in System Configuration 2019-01-22 17:43:45 -05:00
interface_network.py Clean up interface network assignment 2019-06-13 09:43:57 -04:00
interface_network_shell.py Fix 'print' issue for Python 2/3 compatible code. 2018-12-06 12:59:33 +08:00
intp.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
intp_shell.py Merge "Remove shebang from non-executable scripts in cgts-client" 2019-10-09 12:03:16 +00:00
ipv.py Fixing variable renaming on _find_ipv 2021-12-02 14:56:03 -03:00
ipv_shell.py Add upgrade notification for system commands 2022-11-14 17:14:27 +00:00
isensor.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
isensor_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
isensorgroup.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
isensorgroup_shell.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
iservice.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
iservice_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
iservicegroup.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
iservicegroup_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
istor.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
istor_shell.py py3: Fix for python2/python3 compatibility 2021-04-01 08:58:51 -04:00
isystem.py Cleanup pylint error: redefined-outer-name 2021-11-25 18:07:46 +00:00
isystem_shell.py Deprecate,add new system certificate commands 2024-04-17 15:20:37 +00:00
iuser.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
iuser_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
kube_cluster.py Config API for Kubernetes cluster access information 2021-03-01 07:29:12 -06:00
kube_cluster_shell.py Config API for Kubernetes cluster access information 2021-03-01 07:29:12 -06:00
kube_cmd_version.py Add new kube_cmd_versions table and API endpoint 2021-08-04 16:31:25 +03:00
kube_config_kubelet.py Add runtime reconfiguration of kubelet 2022-06-09 17:59:35 -04:00
kube_config_kubelet_shell.py Add runtime reconfiguration of kubelet 2022-06-09 17:59:35 -04:00
kube_host_upgrade.py Provide infrastructure for kubernetes upgrades 2019-11-22 15:13:52 -06:00
kube_rootca_update.py Improve kube-rootca-get-id API and error handling 2023-11-24 09:16:48 -05:00
kube_rootca_update_shell.py API to get kube rootCA ID 2023-11-15 16:12:08 +00:00
kube_upgrade.py Kubernetes upgrades support (continued) 2019-12-03 15:11:55 -06:00
kube_upgrade_shell.py Merge "Steps for kube-upgrade-storage" 2024-01-09 22:25:06 +00:00
kube_version.py Adding support for displaying kubernetes versions 2019-10-23 14:10:10 -05:00
kube_version_shell.py Adding support for displaying kubernetes versions 2019-10-23 14:10:10 -05:00
label.py Add overwrite option to host-label-assign 2019-11-13 16:45:52 -05:00
label_shell.py Add overwrite option to host-label-assign 2019-11-13 16:45:52 -05:00
license.py Clean up licensing code 2019-10-01 08:52:43 -04:00
license_shell.py Merge "Remove shebang from non-executable scripts in cgts-client" 2019-10-09 12:03:16 +00:00
lldp_agent.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
lldp_agent_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
lldp_neighbour.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
lldp_neighbour_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
load.py Add inactive param for import-load on cgts-client 2023-03-07 19:11:11 +00:00
load_shell.py Add inactive param for import-load on cgts-client 2023-03-07 19:11:11 +00:00
network.py Display network name in interface show command 2018-09-14 12:08:14 -04:00
network_addrpool.py Implement new network-addrpool CLI 2024-03-06 15:46:39 -05:00
network_addrpool_shell.py Implement new network-addrpool CLI 2024-03-06 15:46:39 -05:00
network_shell.py New RESTful API and DB schema for network to address-pools. 2024-03-06 07:34:14 -03:00
options.py py3: Fix for python2/python3 compatibility 2021-04-01 08:58:51 -04:00
partition.py Cleanup pylint error: redefined-outer-name 2021-11-25 18:07:46 +00:00
partition_shell.py Add upgrade notification for system commands 2022-11-14 17:14:27 +00:00
pci_device.py Sysinv extensions for FPGA support 2020-05-13 16:20:37 -04:00
pci_device_shell.py Merge "Re-enable important py3k checks for cgts-client" 2021-11-16 15:33:02 +00:00
port.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
port_shell.py Align with latest SR-IOV CNI and device plugin images 2019-10-10 13:30:29 -05:00
ptp.py Apply PTP configuration at runtime 2020-02-20 00:36:39 -05:00
ptp_ha_phc2sys_control.py Fix formatting in CLI for phc2sys-ha help commands 2023-10-25 14:44:04 +00:00
ptp_instance.py [PTP dual NIC config] Enable ptpinstance functionality 2022-01-20 12:20:14 -05:00
ptp_instance_shell.py Added synce4l configuration support 2023-02-21 09:37:28 -05:00
ptp_interface.py Fix ptp and kube_rootca paths 2022-05-05 18:05:39 -03:00
ptp_interface_shell.py [PTP dual NIC config] Manage parameter life-cycle 2022-01-19 13:18:24 -03:00
ptp_parameter.py [PTP dual NIC config] Changes from new data model 2021-12-23 15:59:02 -03:00
ptp_parameter_shell.py [PTP dual NIC config] Manage parameter life-cycle 2022-01-19 13:18:24 -03:00
ptp_shell.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
registry_image.py Add error message to system registry-image-delete 2023-10-05 10:29:29 -03:00
registry_image_shell.py Add error message to system registry-image-delete 2023-10-05 10:29:29 -03:00
remotelogging.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
remotelogging_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
restore.py Introduce CLI commands for system restore control 2020-10-09 16:54:04 +03:00
restore_shell.py Introduce CLI commands for system restore control 2020-10-09 16:54:04 +03:00
route.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
route_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
sdn_controller.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
sdn_controller_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
service_parameter.py Apply sssd service parameters without lock/unlock 2022-10-27 19:26:56 +00:00
service_parameter_shell.py Set section as optional parameter for apply cli 2022-11-01 20:12:52 +00:00
shell.py Implement new network-addrpool CLI 2024-03-06 15:46:39 -05:00
sm_service.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
sm_service_nodes.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
sm_service_nodes_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
sm_service_shell.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
sm_servicegroup.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
sm_servicegroup_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
storage_backend.py Introduce rook ceph 2021-01-27 06:46:02 +08:00
storage_backend_shell.py Fix system cluster-show error updating string encoding 2022-12-06 09:47:54 -05:00
storage_ceph.py Allow configurable ceph storage backend network 2021-05-07 14:31:39 +03:00
storage_ceph_external.py Add support for external Ceph 2018-07-31 15:48:43 -04:00
storage_ceph_rook.py Introduce rook ceph 2021-01-27 06:46:02 +08:00
storage_external.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
storage_file.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
storage_lvm.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
storage_tier.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
storage_tier_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
upgrade.py Add function to read output script for subclouds 2023-05-30 16:02:26 -03:00
upgrade_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00