feat(iwooos): commit wazuh manager registry accepted readback [skip ci]
This commit is contained in:
@@ -259,13 +259,21 @@ def _build_domains(snapshots: dict[str, dict[str, Any]]) -> list[dict[str, Any]]
|
||||
"domain_id": "wazuh_managed_host_coverage",
|
||||
"label": "Wazuh 主機納管與 manager registry",
|
||||
"priority": "P0",
|
||||
"coverage_percent": 0,
|
||||
"coverage_percent": 70 if _as_int(wazuh_summary.get("manager_registry_accepted_count")) else 0,
|
||||
"scope_count": _as_int(wazuh_summary.get("expected_host_scope_count")),
|
||||
"write_capable_count": _as_int(wazuh_summary.get("agent_reenroll_authorized_count")),
|
||||
"accepted_count": _as_int(wazuh_summary.get("manager_registry_accepted_count")),
|
||||
"blocked_count": _as_int(wazuh_summary.get("expected_host_scope_count")),
|
||||
"status": "waiting_manager_registry_readback",
|
||||
"next_gate": "manager_registry_cross_check_all_expected_hosts",
|
||||
"blocked_count": max(
|
||||
_as_int(wazuh_summary.get("expected_host_scope_count"))
|
||||
- _as_int(wazuh_summary.get("manager_registry_accepted_count")),
|
||||
0,
|
||||
),
|
||||
"status": (
|
||||
"manager_registry_readback_accepted_runtime_gate_closed"
|
||||
if _as_int(wazuh_summary.get("manager_registry_accepted_count"))
|
||||
else "waiting_manager_registry_readback"
|
||||
),
|
||||
"next_gate": "runtime_gate_owner_review_and_postcheck",
|
||||
"source_refs": ["docs/security/wazuh-managed-host-coverage-gate.snapshot.json"],
|
||||
},
|
||||
{
|
||||
@@ -323,7 +331,10 @@ def _build_summary(snapshots: dict[str, dict[str, Any]], domains: list[dict[str,
|
||||
"owner_response_received_count": 0,
|
||||
"owner_response_accepted_count": 0,
|
||||
"live_evidence_accepted_count": 0,
|
||||
"wazuh_manager_registry_accepted_count": 0,
|
||||
"wazuh_manager_registry_accepted_count": _summary_int(
|
||||
snapshots["wazuh_hosts"],
|
||||
"manager_registry_accepted_count",
|
||||
),
|
||||
"active_scan_authorized_count": 0,
|
||||
"active_response_authorized_count": 0,
|
||||
"telegram_send_authorized_count": 0,
|
||||
|
||||
Reference in New Issue
Block a user