fix(iwooos): repair wazuh host trust and retry
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m27s
CD Pipeline / build-and-deploy (push) Successful in 6m53s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 0s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 1m4s
CD Pipeline / post-deploy-checks (push) Successful in 1m51s

This commit is contained in:
ogt
2026-07-11 10:13:02 +08:00
parent 707846474f
commit 4a4b95e513
11 changed files with 401 additions and 28 deletions

View File

@@ -16694,6 +16694,7 @@ function IwoooSSecurityToolClosureBoard() {
const runtimeClosed = runtimeSummary?.runtime_closed_count ?? summary.wazuh_incident_response_runtime_closed_count ?? 0
const dispatchEnabled = runtimeSummary?.executor_policy_enabled_count ?? summary.wazuh_controlled_executor_dispatch_enabled_count ?? 0
const dispatchCandidate = runtimeSummary?.dispatch_candidate_count ?? 0
const checkModeFailed = runtimeSummary?.check_mode_failed_count ?? 0
const runtimePresent = runtimeSummary?.same_run_present_stage_count ?? runtimeClosed
const runtimeRequired = runtimeSummary?.same_run_required_stage_count ?? 1
const runtimeCompletion = runtimeSummary?.same_run_completion_percent ?? 0
@@ -16701,6 +16702,15 @@ function IwoooSSecurityToolClosureBoard() {
runtimeSummary?.runtime_execution_performed_count ??
summary.runtime_execution_performed_count ??
0
const runtimeFailureKey = runtimeData?.check_failure_class === 'ansible_target_unreachable'
? 'targetUnreachable'
: runtimeData?.check_failure_class === 'ansible_check_mode_timeout'
? 'timeout'
: runtimeData?.check_failure_class?.startsWith('ansible_check_mode_returncode_')
? 'checkFailed'
: runtimeData?.check_failure_class
? 'unclassified'
: null
const runwayItems = [
{
key: 'source',
@@ -16725,10 +16735,10 @@ function IwoooSSecurityToolClosureBoard() {
},
{
key: 'runtime',
icon: ShieldCheck,
icon: checkModeFailed > 0 ? ShieldAlert : ShieldCheck,
value: `${runtimePresent}/${runtimeRequired}`,
tone: runtimeClosed > 0 ? 'steady' as const : runtimePresent > 0 ? 'warn' as const : 'locked' as const,
state: runtimeClosed > 0 ? 'closed' : dispatchEnabled > 0 ? 'waiting' : 'blocked',
tone: runtimeClosed > 0 ? 'steady' as const : runtimePresent > 0 || checkModeFailed > 0 ? 'warn' as const : 'locked' as const,
state: runtimeClosed > 0 ? 'closed' : checkModeFailed > 0 ? 'failed' : dispatchEnabled > 0 ? 'waiting' : 'blocked',
},
]
const metrics: IwoooSSecurityToolClosureMetric[] = [
@@ -16918,6 +16928,32 @@ function IwoooSSecurityToolClosureBoard() {
</div>
</div>
{runtimeFailureKey ? (
<div
data-testid="iwooos-wazuh-runtime-failure"
role="status"
style={{
border: '0.5px solid #d8a96f',
borderRadius: 8,
background: '#fff8ef',
color: '#7c4618',
padding: '9px 11px',
display: 'flex',
alignItems: 'center',
gap: 9,
minWidth: 0,
}}
>
<ShieldAlert size={16} aria-hidden="true" />
<strong style={{ fontSize: 10.5, fontWeight: 950, flex: '0 0 auto' }}>
{t('runtimeFailure.title')}
</strong>
<span style={{ fontSize: 10.5, fontWeight: 800, ...textWrap }}>
{t(`runtimeFailure.${runtimeFailureKey}` as never)}
</span>
</div>
) : null}
<div
data-testid="iwooos-security-tool-closure-runway"
style={{