config/sysinv/sysinv/sysinv/sysinv/cert_mon
Kyle MacLeod 03443ef16c Filter cert-mon for geo-redundancy in audit and DC_CertWatcher
This commit adds a filter for querying all subclouds from dcmanager, to
account for secondary subclouds that should not be audited by cert-mon
for this system controller. The filter is performed against a list of
invalid deploy states that should be considered when querying
the list of subcloud from dcmanager.

Likewise, the DC_CertWatcher -> DCIntermediateCertRenew flow must ensure
that subclouds which are secondary to this system controller are ignored
by the kubernetes watch in place for the DC intermediate cert renewal
detection. Subclouds are filtered by the watch based on their online
state and their deploy-status. A subcloud with invalid deploy state is
ignored by this system controller.

Test Cases

PASS:
- Trigger audits on service restart. Verify that offline/secondary
  subclouds are excluded.
- Ensure full daily audit is executed. Verify that all subclouds
  belonging to this system controller are audited. Secondary subclouds
  are not audited.
- Verify that DC_CertWatcher -> DCIntermediateCertRenew watch fires are
  ignored for offline and/or invalid deploy state

Closes-Bug: 2060068

Change-Id: Iffe3d7c76db8d2f17aed0bfebc792af0f9d75ca2
Signed-off-by: Kyle MacLeod <kyle.macleod@windriver.com>
2024-04-04 15:36:06 -04:00
..
__init__.py Add cert-mon service 2020-07-20 14:06:31 -04:00
certificate_mon_manager.py Filter cert-mon for geo-redundancy in audit and DC_CertWatcher 2024-04-04 15:36:06 -04:00
context.py Deprecate old policy engine and restrict access 2022-08-10 11:18:38 -03:00
messaging.py update license statements 2022-06-28 13:56:11 +00:00
service.py Use FQDN for MGMT network 2023-10-31 20:45:40 -04:00
subcloud_audit_queue.py Fix cert-mon PriorityQueue regression in python3 2022-10-12 13:03:56 -04:00
utils.py Filter cert-mon for geo-redundancy in audit and DC_CertWatcher 2024-04-04 15:36:06 -04:00
watcher.py Filter cert-mon for geo-redundancy in audit and DC_CertWatcher 2024-04-04 15:36:06 -04:00