feat(iwooos): add Wazuh registry export preflight
Some checks failed
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / tests (push) Successful in 1m42s
Ansible / Reboot Recovery Contract / validate (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
ogt
2026-06-25 14:17:12 +08:00
parent 5dbe2870b2
commit ffeab51bc1
8 changed files with 259 additions and 23 deletions

View File

@@ -2309,27 +2309,34 @@ const wazuhLiveMetadataEnvGateBoundaries = [
] as const
const wazuhOwnerEvidencePreflightSummary = [
{ key: 'fields', value: '18', icon: ClipboardCheck, tone: 'steady' },
{ key: 'checks', value: '7', icon: ListChecks, tone: 'steady' },
{ key: 'fields', value: '23', icon: ClipboardCheck, tone: 'steady' },
{ key: 'aliases', value: '6', icon: Server, tone: 'warn' },
{ key: 'checks', value: '10', icon: ListChecks, tone: 'steady' },
{ key: 'received', value: '0', icon: FileWarning, tone: 'locked' },
{ key: 'accepted', value: '0', icon: Lock, tone: 'locked' },
] as const
const wazuhOwnerEvidencePreflightItems: WazuhOwnerEvidencePreflightItem[] = [
{ key: 'scopeAliases', check: 'EV-0', state: '6 個別名', icon: Server, tone: 'warn' },
{ key: 'registryCounts', check: 'EV-1', state: '待脫敏計數', icon: Server, tone: 'warn' },
{ key: 'timeWindow', check: 'EV-2', state: '待時間窗', icon: Clock3, tone: 'warn' },
{ key: 'healthRefs', check: 'EV-3', state: '待健康參照', icon: Activity, tone: 'warn' },
{ key: 'redaction', check: 'EV-4', state: '拒收敏感內容', icon: FileWarning, tone: 'locked' },
{ key: 'ownerDecision', check: 'EV-5', state: '待負責人', icon: ClipboardCheck, tone: 'warn' },
{ key: 'runtimeBoundary', check: 'EV-6', state: '不開執行', icon: Lock, tone: 'locked' },
{ key: 'perHostMatrix', check: 'EV-2', state: '9 欄逐主機', icon: ListChecks, tone: 'warn' },
{ key: 'timeWindow', check: 'EV-3', state: '待時間窗', icon: Clock3, tone: 'warn' },
{ key: 'healthRefs', check: 'EV-4', state: '待健康參照', icon: Activity, tone: 'warn' },
{ key: 'redaction', check: 'EV-5', state: '拒收敏感內容', icon: FileWarning, tone: 'locked' },
{ key: 'ownerDecision', check: 'EV-6', state: '待負責人', icon: ClipboardCheck, tone: 'warn' },
{ key: 'runtimeBoundary', check: 'EV-7', state: '不開執行', icon: Lock, tone: 'locked' },
] as const
const wazuhOwnerEvidencePreflightBoundaries = [
'wazuh_agent_visibility_owner_evidence_preflight_visible=true',
'wazuh_agent_visibility_owner_evidence_required_field_count=18',
'wazuh_agent_visibility_owner_evidence_reviewer_check_count=7',
'wazuh_agent_visibility_owner_evidence_required_field_count=23',
'wazuh_agent_visibility_owner_evidence_reviewer_check_count=10',
'wazuh_agent_visibility_owner_evidence_expected_scope_alias_count=6',
'wazuh_agent_visibility_owner_evidence_per_host_required_field_count=9',
'wazuh_agent_visibility_owner_evidence_outcome_lane_count=5',
'wazuh_agent_visibility_owner_evidence_forbidden_payload_count=18',
'wazuh_agent_visibility_owner_evidence_registry_export_received_count=0',
'wazuh_agent_visibility_owner_evidence_registry_export_accepted_count=0',
'wazuh_agent_visibility_owner_evidence_received_count=0',
'wazuh_agent_visibility_owner_evidence_accepted_count=0',
'wazuh_agent_visibility_owner_evidence_runtime_gate_count=0',