fix(iwooos): surface wazuh same-run closure on cockpit
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled
This commit is contained in:
@@ -531,7 +531,7 @@ type IwoooSSecurityToolClosureSummary = IwoooSSecurityToolClosureReadbackRespons
|
||||
type IwoooSSecurityToolClosureQueueEntry = IwoooSSecurityToolClosureReadbackResponse['next_executable_queue'][number]
|
||||
|
||||
const SECURITY_TOOL_CLOSURE_BOOTSTRAP_SUMMARY: IwoooSSecurityToolClosureSummary = {
|
||||
source_readback_count: 8,
|
||||
source_readback_count: 9,
|
||||
tool_track_count: 8,
|
||||
p0_tool_track_count: 3,
|
||||
source_ready_tool_track_count: 2,
|
||||
@@ -566,6 +566,11 @@ const SECURITY_TOOL_CLOSURE_BOOTSTRAP_SUMMARY: IwoooSSecurityToolClosureSummary
|
||||
owner_review_required_for_low_medium_high_count: 0,
|
||||
runtime_execution_performed_count: 0,
|
||||
secret_value_collection_allowed_count: 0,
|
||||
wazuh_incident_response_closure_validator_available_count: 1,
|
||||
wazuh_incident_response_same_run_stage_ready_count: 5,
|
||||
wazuh_incident_response_same_run_required_stage_count: 9,
|
||||
wazuh_incident_response_same_run_candidate_ready_count: 0,
|
||||
wazuh_incident_response_runtime_closed_count: 0,
|
||||
}
|
||||
|
||||
const SECURITY_TOOL_CLOSURE_BOOTSTRAP_TRACKS: IwoooSSecurityToolClosureTrack[] = [
|
||||
@@ -820,6 +825,9 @@ const SECURITY_TOOL_CLOSURE_BOOTSTRAP_BOUNDARY_MARKERS = [
|
||||
'iwooos_security_tool_closure_wazuh_manager_registry_accepted_count=6',
|
||||
'iwooos_security_tool_closure_alert_receipt_accepted_count=1',
|
||||
'iwooos_security_tool_closure_controlled_apply_candidate_ready_count=2',
|
||||
'iwooos_wazuh_incident_response_same_run_stage_ready_count=5',
|
||||
'iwooos_wazuh_incident_response_same_run_required_stage_count=9',
|
||||
'iwooos_wazuh_incident_response_runtime_closed_count=0',
|
||||
'owner_review_required_for_low_medium_high=false',
|
||||
'runtime_execution_performed=false',
|
||||
'secret_value_collection_allowed=false',
|
||||
@@ -16649,6 +16657,10 @@ function IwoooSSecurityToolClosureBoard() {
|
||||
const queue = data?.next_executable_queue?.length ? data.next_executable_queue : SECURITY_TOOL_CLOSURE_BOOTSTRAP_QUEUE
|
||||
const boundaryMarkers = data?.boundary_markers?.length ? data.boundary_markers : SECURITY_TOOL_CLOSURE_BOOTSTRAP_BOUNDARY_MARKERS
|
||||
const primaryQueue = queue[0]
|
||||
const primarySameRunRequired =
|
||||
primaryQueue.same_run_required_stage_count ?? summary.wazuh_incident_response_same_run_required_stage_count ?? 0
|
||||
const primarySameRunReady =
|
||||
primaryQueue.same_run_source_stage_ready_count ?? summary.wazuh_incident_response_same_run_stage_ready_count ?? 0
|
||||
const metrics: IwoooSSecurityToolClosureMetric[] = [
|
||||
{
|
||||
key: 'closure',
|
||||
@@ -16821,6 +16833,11 @@ function IwoooSSecurityToolClosureBoard() {
|
||||
<span style={{ border: '0.5px solid #d6e1d9', borderRadius: 999, background: '#fff', color: '#315f43', padding: '4px 7px', fontSize: 10, fontWeight: 900 }}>
|
||||
{t('compact.controlled')}
|
||||
</span>
|
||||
{primarySameRunRequired > 0 ? (
|
||||
<span style={{ border: '0.5px solid #e2cbb4', borderRadius: 999, background: '#fff', color: primarySameRunReady >= primarySameRunRequired ? '#315f43' : '#9a5d1d', padding: '4px 7px', fontSize: 10, fontWeight: 900, ...textWrap }}>
|
||||
{t('compact.sameRun')}: {primarySameRunReady}/{primarySameRunRequired}
|
||||
</span>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -860,6 +860,11 @@ export interface IwoooSSecurityToolClosureReadbackResponse {
|
||||
owner_review_required_for_low_medium_high_count: number
|
||||
runtime_execution_performed_count: number
|
||||
secret_value_collection_allowed_count: number
|
||||
wazuh_incident_response_closure_validator_available_count?: number
|
||||
wazuh_incident_response_same_run_stage_ready_count?: number
|
||||
wazuh_incident_response_same_run_required_stage_count?: number
|
||||
wazuh_incident_response_same_run_candidate_ready_count?: number
|
||||
wazuh_incident_response_runtime_closed_count?: number
|
||||
}
|
||||
tool_tracks: IwoooSSecurityToolClosureTrack[]
|
||||
next_executable_queue: IwoooSSecurityToolClosureQueueItem[]
|
||||
|
||||
Reference in New Issue
Block a user