config/sysinv/sysinv/sysinv/scripts
Rei Oliveira 01a5ea0843 First check Root CAs on kube-cert-rotation.sh
As of now, the script only verifies the validity of leaf certificates
and, if expired, will regenerate them based on K8s/etcd Root CAs.
It doesn't account for the possibility of Root CAs being expired.
It will generate leaf certificates based on Root CAs, even if said
Root CAs are expired.

This change fixes that behaviour by first checking validity of
Root CAs and only allowing leaf certificate renewal if RCAs are
valid.

Test plan:

PASS: Cause Root CAs to expire, run kube-cert-rotation.sh script
      and verify that it fails with an error saying Root CAs are
      expired and leaf certificates are not renewed.
PASS: Ensure to have valid Root CAs, cause leaf certificates
      to expire, run kube-cert-rotation.sh and verify that the
      script executes normally and is able to renew
      the leaf certificates.

Closes-Bug: 2059708

Signed-off-by: Rei Oliveira <Reinildes.JoseMateusOliveira@windriver.com>
Change-Id: I98dfd8d1417754f3c723d8ddd52a856785ffc83b
2024-03-28 14:28:34 -03:00
..
ceph_k8s_update_monitors.sh Adding AIO-SX to AIO-DX migration steps patching existing PVs 2021-05-09 10:58:59 -04:00
kube-cert-rotation.sh First check Root CAs on kube-cert-rotation.sh 2024-03-28 14:28:34 -03:00
manage-partitions Skip ceph partitions on manage-partitions script 2023-04-05 16:24:53 -03:00
partition_info.sh Refactor inventory items for multipath support 2023-02-13 17:14:32 +00:00
query_pci_id Enhance query_pci_id with DPDK related arguments 2023-02-10 20:16:16 -03:00
sysinv-api Improve log messages on sysinv-api ocf script 2022-11-07 10:26:21 -03:00
sysinv-api.service StarlingX open source release updates 2018-05-31 07:35:52 -07:00
sysinv-conductor Trigger stevedore cache refresh on sysinv start 2023-07-21 18:28:11 +00:00
sysinv-conductor.service StarlingX open source release updates 2018-05-31 07:35:52 -07:00
validate-platform-backup.sh Fix dev search on validate-platform-backup script 2023-08-02 11:32:18 -03:00