@oneuptime/common 13.0.4 → 13.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/Index.ts +4 -0
- package/Models/DatabaseModels/RumApplication.ts +1 -1
- package/Models/DatabaseModels/SecurityEventConnection.ts +457 -0
- package/Models/DatabaseModels/SecurityEventConnectionRun.ts +263 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.ts +2 -2
- package/Server/API/AIInvestigationAPI.ts +484 -24
- package/Server/API/GoogleSecOpsConnectionAPI.ts +249 -8
- package/Server/API/SecurityEventConnectionAPI.ts +250 -0
- package/Server/API/TelemetryAPI.ts +402 -265
- package/Server/Infrastructure/Postgres/SchemaMigrations/1792700000000-AddSecurityEventConnections.ts +99 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +2 -0
- package/Server/Middleware/TelemetryIngest.ts +101 -6
- package/Server/Services/ExceptionAggregationService.ts +7 -16
- package/Server/Services/GoogleSecOpsConnectionService.ts +15 -0
- package/Server/Services/Index.ts +4 -0
- package/Server/Services/InventoryItemService.ts +28 -0
- package/Server/Services/LogAggregationService.ts +17 -23
- package/Server/Services/MetricAggregationService.ts +4 -14
- package/Server/Services/SecurityEventConnectionRunService.ts +10 -0
- package/Server/Services/SecurityEventConnectionService.ts +538 -0
- package/Server/Services/TraceAggregationService.ts +77 -28
- package/Server/Types/AnalyticsDatabase/ModelPermission.ts +9 -0
- package/Server/Utils/AI/Chat/ObservabilityAssistant.ts +13 -1
- package/Server/Utils/AI/SRE/AIInvestigationEngine.ts +15 -1
- package/Server/Utils/AI/SRE/InvestigationEvidence.ts +658 -0
- package/Server/Utils/AI/SRE/InvestigationReferences.ts +324 -0
- package/Server/Utils/AI/Toolbox/Index.ts +38 -0
- package/Server/Utils/AI/Toolbox/TimelineTools.ts +9 -2
- package/Server/Utils/AnalyticsDatabase/StatementGenerator.ts +80 -0
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +5 -3
- package/Server/Utils/SecurityEvent/Connectors/AwsSecurityHub/AwsSecurityHubClient.ts +1108 -0
- package/Server/Utils/SecurityEvent/Connectors/AwsSecurityHub/AwsSecurityHubConnector.ts +732 -0
- package/Server/Utils/SecurityEvent/Connectors/ConnectorPlatformHealth.ts +495 -0
- package/Server/Utils/SecurityEvent/Connectors/CrowdStrikeFalcon/CrowdStrikeFalconClient.ts +689 -0
- package/Server/Utils/SecurityEvent/Connectors/CrowdStrikeFalcon/CrowdStrikeFalconConnector.ts +767 -0
- package/Server/Utils/SecurityEvent/Connectors/ElasticSecurity/ElasticSecurityClient.ts +571 -0
- package/Server/Utils/SecurityEvent/Connectors/ElasticSecurity/ElasticSecurityConnector.ts +827 -0
- package/Server/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdr/MicrosoftDefenderXdrClient.ts +610 -0
- package/Server/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdr/MicrosoftDefenderXdrConnector.ts +549 -0
- package/Server/Utils/SecurityEvent/Connectors/MicrosoftSentinel/MicrosoftSentinelClient.ts +830 -0
- package/Server/Utils/SecurityEvent/Connectors/MicrosoftSentinel/MicrosoftSentinelConnector.ts +684 -0
- package/Server/Utils/SecurityEvent/Connectors/Okta/OktaClient.ts +487 -0
- package/Server/Utils/SecurityEvent/Connectors/Okta/OktaConnector.ts +778 -0
- package/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionPoller.ts +1002 -0
- package/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionRunExecutor.ts +556 -0
- package/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionTester.ts +275 -0
- package/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectorRegistry.ts +53 -0
- package/Server/Utils/SecurityEvent/Connectors/Splunk/SplunkClient.ts +709 -0
- package/Server/Utils/SecurityEvent/Connectors/Splunk/SplunkConnector.ts +596 -0
- package/Server/Utils/SecurityEvent/Connectors/Types.ts +191 -0
- package/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsClient.ts +353 -65
- package/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsConnectionTester.ts +777 -0
- package/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsPoller.ts +747 -148
- package/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsRunExecutor.ts +48 -2
- package/Server/Utils/SecurityEvent/SecurityEventDedupe.ts +81 -0
- package/Server/Utils/SessionReplay/SessionReplayReadService.ts +741 -40
- package/Server/Utils/StartServer.ts +10 -0
- package/Server/Utils/Telemetry/EntityRegistry.ts +8 -0
- package/Server/Utils/Telemetry/KubernetesResourceAttributes.ts +108 -0
- package/Server/Utils/Telemetry/ResourceEntityFilter.ts +174 -93
- package/Server/Utils/Telemetry/ResourceFacetPlanner.ts +251 -0
- package/Server/Utils/Telemetry/ResourceFacetResolver.ts +248 -413
- package/Server/Utils/Telemetry/ServiceDependencyDiscovery.ts +668 -0
- package/Server/Utils/Telemetry/TraceContextPropagation.ts +348 -0
- package/Server/Utils/Telemetry.ts +18 -0
- package/Tests/App/Dashboard/AIInvestigationHeaderStatus.test.tsx +413 -0
- package/Tests/App/Dashboard/AIRootCauseFeedItem.test.tsx +285 -0
- package/Tests/App/Dashboard/AffectedResourcesDisplay.test.tsx +242 -0
- package/Tests/App/Dashboard/AlertEpisodeViewFields.test.tsx +601 -15
- package/Tests/App/Dashboard/ChangeAlertStateAIHeader.test.tsx +835 -0
- package/Tests/App/Dashboard/CloudResourceTelemetryScope.test.ts +41 -0
- package/Tests/App/Dashboard/ConnectionTestModal.test.tsx +604 -0
- package/Tests/App/Dashboard/ConnectorTestReportView.test.tsx +738 -0
- package/Tests/App/Dashboard/DashboardLazyPages.test.tsx +153 -6
- package/Tests/App/Dashboard/EntityDetailPanel.test.tsx +165 -0
- package/Tests/App/Dashboard/EpisodeChangeState.test.tsx +1069 -0
- package/Tests/App/Dashboard/EpisodeMembersCard.test.tsx +772 -0
- package/Tests/App/Dashboard/EventOverviewPages.test.tsx +2354 -0
- package/Tests/App/Dashboard/EventOverviewSkeleton.test.tsx +210 -0
- package/Tests/App/Dashboard/EventStatBar.test.tsx +392 -0
- package/Tests/App/Dashboard/EventStatusPanel.test.tsx +247 -0
- package/Tests/App/Dashboard/ExceptionAIAssistance.test.tsx +606 -0
- package/Tests/App/Dashboard/ExceptionBreadcrumbTimeline.test.tsx +273 -0
- package/Tests/App/Dashboard/ExceptionDetailSideMenu.test.tsx +176 -0
- package/Tests/App/Dashboard/ExceptionOverviewCards.test.tsx +366 -0
- package/Tests/App/Dashboard/ExceptionSignalPages.test.tsx +371 -0
- package/Tests/App/Dashboard/ExceptionStackFrameViewer.test.tsx +440 -0
- package/Tests/App/Dashboard/ExceptionSummary.test.tsx +381 -0
- package/Tests/App/Dashboard/ExceptionTriage.test.tsx +306 -0
- package/Tests/App/Dashboard/ExceptionsResourceFacets.test.tsx +604 -0
- package/Tests/App/Dashboard/ExceptionsViewerEntityChips.test.tsx +706 -0
- package/Tests/App/Dashboard/FeedOrdering.test.ts +32 -0
- package/Tests/App/Dashboard/GoogleSecOpsConnectionForm.test.tsx +838 -0
- package/Tests/App/Dashboard/GoogleSecOpsConnectionsErrors.test.tsx +18 -0
- package/Tests/App/Dashboard/GoogleSecOpsDiagnostics.test.tsx +297 -20
- package/Tests/App/Dashboard/IncidentEpisodeViewFields.test.tsx +618 -13
- package/Tests/App/Dashboard/InfrastructureExplorer.test.tsx +254 -207
- package/Tests/App/Dashboard/InfrastructureGraph.test.tsx +303 -135
- package/Tests/App/Dashboard/InvestigationEvidenceList.test.tsx +1251 -0
- package/Tests/App/Dashboard/InvestigationFeedRefresh.test.tsx +303 -0
- package/Tests/App/Dashboard/InvestigationPanel.test.tsx +876 -8
- package/Tests/App/Dashboard/InvestigationPanelStatus.test.tsx +35 -0
- package/Tests/App/Dashboard/InvestigationReferenceLink.test.tsx +177 -0
- package/Tests/App/Dashboard/InvestigationReportView.test.tsx +1295 -0
- package/Tests/App/Dashboard/KubernetesImageReferenceView.test.tsx +114 -0
- package/Tests/App/Dashboard/KubernetesLogsTabChips.test.tsx +285 -0
- package/Tests/App/Dashboard/LogsEntityChipNames.test.tsx +316 -0
- package/Tests/App/Dashboard/LogsResourceFacetChips.test.tsx +361 -0
- package/Tests/App/Dashboard/ProfileTableEntityNames.test.tsx +432 -0
- package/Tests/App/Dashboard/ProfileViewEntityName.test.tsx +250 -0
- package/Tests/App/Dashboard/ResourceArchiveSettings.test.tsx +10 -0
- package/Tests/App/Dashboard/ResourceLogsTabsBareLayout.test.tsx +700 -0
- package/Tests/App/Dashboard/ResourcePageEntityNameProps.test.tsx +803 -0
- package/Tests/App/Dashboard/RumSessionReplaySideMenu.test.tsx +11 -1
- package/Tests/App/Dashboard/ScheduledMaintenanceChangeState.test.tsx +1026 -0
- package/Tests/App/Dashboard/ScheduledMaintenanceFeedRefresh.test.tsx +436 -0
- package/Tests/App/Dashboard/ScheduledMaintenanceOverviewPage.test.tsx +1195 -0
- package/Tests/App/Dashboard/SecurityEventConnectionFormModal.test.tsx +1022 -0
- package/Tests/App/Dashboard/SecurityEventConnectionsTable.test.tsx +905 -0
- package/Tests/App/Dashboard/SecurityEventsSideMenu.test.tsx +247 -0
- package/Tests/App/Dashboard/ServiceMapGraph.test.tsx +375 -274
- package/Tests/App/Dashboard/SessionReplayAuditTable.test.tsx +410 -0
- package/Tests/App/Dashboard/TelemetryResourceRetentionSettings.test.tsx +774 -0
- package/Tests/App/Dashboard/TopErrorsPanelResourceNames.test.tsx +316 -0
- package/Tests/App/Dashboard/TopologyDataLoading.test.tsx +30 -0
- package/Tests/App/Dashboard/TopologyPageNavigation.test.tsx +88 -24
- package/Tests/App/Dashboard/TraceExplorer.test.tsx +1590 -0
- package/Tests/App/Dashboard/TraceWaterfall.test.tsx +488 -0
- package/Tests/App/Dashboard/TracesAnalyticsSeriesLabels.test.tsx +367 -0
- package/Tests/App/Dashboard/TracesEntityNames.test.tsx +585 -0
- package/Tests/App/Dashboard/TracesResourceFacets.test.tsx +613 -0
- package/Tests/App/Dashboard/UseServiceNames.test.tsx +359 -0
- package/Tests/Models/DatabaseModels/DomainRoleTierCoverage.test.ts +7 -0
- package/Tests/Models/InventoryItemNaming.test.ts +132 -16
- package/Tests/Models/SecurityDomainAccessControl.test.ts +61 -17
- package/Tests/Server/API/AIInvestigationAPI.test.ts +611 -2
- package/Tests/Server/API/AIInvestigationEvidenceAPI.test.ts +1098 -0
- package/Tests/Server/API/GoogleSecOpsConnectionAPI.test.ts +409 -0
- package/Tests/Server/API/SecurityEventConnectionAPI.test.ts +856 -0
- package/Tests/Server/API/SessionReplayAPI.test.ts +528 -1
- package/Tests/Server/API/TelemetryFacetsAPI.test.ts +810 -0
- package/Tests/Server/Infrastructure/E2EClickHouseFixtureAccess.test.ts +240 -0
- package/Tests/Server/Middleware/TelemetryIngestBrowserKey.test.ts +229 -0
- package/Tests/Server/Services/InventoryItemDisplayName.test.ts +66 -0
- package/Tests/Server/Services/OpenTelemetryResourceRetentionMemo.test.ts +28 -1
- package/Tests/Server/Services/SecurityEventConnectionService.test.ts +1233 -0
- package/Tests/Server/Services/TelemetryIngestionKeyValidation.test.ts +53 -0
- package/Tests/Server/Services/TelemetryResourceFacetCounting.test.ts +218 -0
- package/Tests/Server/Services/TelemetryResourceFacetFilters.test.ts +155 -1
- package/Tests/Server/Services/TraceAggregationExceptionScope.test.ts +142 -0
- package/Tests/Server/Services/TraceAnalyticsResourceDisplayNames.test.ts +85 -24
- package/Tests/Server/Types/Database/Permissions/SecurityRoleAccess.test.ts +33 -0
- package/Tests/Server/Utils/AI/InvestigationEvidence.test.ts +1395 -0
- package/Tests/Server/Utils/AI/InvestigationReferences.test.ts +616 -0
- package/Tests/Server/Utils/AI/TimelineTools.test.ts +119 -0
- package/Tests/Server/Utils/AI/Toolbox/AIToolbox.test.ts +151 -0
- package/Tests/Server/Utils/AnalyticsDatabase/StatementGenerator.test.ts +65 -0
- package/Tests/Server/Utils/AnalyticsDatabase/StatementGeneratorExceptionScope.test.ts +224 -0
- package/Tests/Server/Utils/Monitor/MonitorCriteriaEvaluatorPerSeriesFanout.test.ts +55 -2
- package/Tests/Server/Utils/SecurityEvent/Connectors/AwsSecurityHub/AwsSecurityHubClient.test.ts +1240 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/AwsSecurityHub/AwsSecurityHubConnector.test.ts +1853 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/ConnectorPlatformHealth.test.ts +1129 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/CrowdStrikeFalcon/CrowdStrikeFalconClient.test.ts +1066 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/CrowdStrikeFalcon/CrowdStrikeFalconConnector.test.ts +1568 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/ElasticSecurity/ElasticSecurityClient.test.ts +930 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/ElasticSecurity/ElasticSecurityConnector.test.ts +1409 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdr/MicrosoftDefenderXdrClient.test.ts +763 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdr/MicrosoftDefenderXdrConnector.test.ts +1296 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/MicrosoftSentinel/MicrosoftSentinelClient.test.ts +1102 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/MicrosoftSentinel/MicrosoftSentinelConnector.test.ts +1174 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/Okta/OktaClient.test.ts +1032 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/Okta/OktaConnector.test.ts +1558 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionPoller.test.ts +3041 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionRunExecutor.test.ts +1168 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionTester.test.ts +906 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/Splunk/SplunkClient.test.ts +1068 -0
- package/Tests/Server/Utils/SecurityEvent/Connectors/Splunk/SplunkConnector.test.ts +1004 -0
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsConnectionTester.test.ts +784 -0
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsRunExecutor.test.ts +113 -1
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOpsClient.test.ts +5 -1
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOpsDiagnostics.test.ts +93 -13
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOpsHttpIntegration.test.ts +23 -1
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOpsPoller.test.ts +25 -3
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOpsPollerFailureTaxonomy.test.ts +22 -8
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOpsPollerHardening.test.ts +82 -16
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOpsSearchDetections.test.ts +730 -0
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOpsThreePassPoller.test.ts +1577 -0
- package/Tests/Server/Utils/SessionReplay/SessionReplayOriginAllowlist.test.ts +41 -0
- package/Tests/Server/Utils/SessionReplay/SessionReplayReadServiceQueries.test.ts +1453 -18
- package/Tests/Server/Utils/Telemetry/KubernetesResourceAttributes.test.ts +162 -0
- package/Tests/Server/Utils/Telemetry/ResourceEntityFilter.test.ts +460 -13
- package/Tests/Server/Utils/Telemetry/ResourceFacetPlanner.test.ts +678 -0
- package/Tests/Server/Utils/Telemetry/ResourceFacetResolver.test.ts +348 -2
- package/Tests/Server/Utils/Telemetry/ServiceDependencyDiscovery.test.ts +525 -0
- package/Tests/Server/Utils/Telemetry/TraceContextPropagation.test.ts +420 -0
- package/Tests/Types/Rum/SessionReplayApiContracts.test.ts +73 -0
- package/Tests/Types/Rum/SessionReplayTransportContracts.test.ts +95 -0
- package/Tests/Types/SecurityEvent/Connectors/ConnectorDiagnostics.test.ts +82 -0
- package/Tests/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.test.ts +314 -0
- package/Tests/Types/Telemetry/ExceptionSpanScope.test.ts +89 -0
- package/Tests/Types/Telemetry/ResourceEntityFacet.test.ts +96 -0
- package/Tests/Types/Telemetry/ResourceFacetCatalog.test.ts +304 -0
- package/Tests/UI/Components/ActiveFilterChipsLockedFilters.test.tsx +357 -0
- package/Tests/UI/Components/Card.test.tsx +312 -1
- package/Tests/UI/Components/CardModelDetailHeaderLayout.test.tsx +253 -0
- package/Tests/UI/Components/CardModelDetailRefresher.test.tsx +342 -0
- package/Tests/UI/Components/Checkbox.test.tsx +79 -0
- package/Tests/UI/Components/CopyTextButton.test.tsx +142 -0
- package/Tests/UI/Components/DetailCompactStyle.test.tsx +621 -0
- package/Tests/UI/Components/ErrorBoundary.test.tsx +60 -0
- package/Tests/UI/Components/FacetSections.test.tsx +581 -0
- package/Tests/UI/Components/FacetSidebarControls.test.tsx +812 -0
- package/Tests/UI/Components/FacetVisibility.test.ts +429 -0
- package/Tests/UI/Components/LockedFilterActions.test.tsx +396 -0
- package/Tests/UI/Components/LockedFilterChip.test.tsx +651 -0
- package/Tests/UI/Components/LogsEntityNames.test.ts +1769 -0
- package/Tests/UI/Components/LogsEntityNamesComponents.test.tsx +696 -0
- package/Tests/UI/Components/LogsFacetSidebarHiddenFacets.test.tsx +600 -0
- package/Tests/UI/Components/LogsViewerEntityNames.test.tsx +713 -0
- package/Tests/UI/Components/MarkdownInlineReferences.test.tsx +2079 -0
- package/Tests/UI/Components/MemberRoleAssignment.test.tsx +446 -0
- package/Tests/UI/Components/ModelDetailRefetch.test.tsx +397 -0
- package/Tests/UI/Components/ModelListRefetch.test.tsx +233 -0
- package/Tests/UI/Components/ModelPageModelChange.test.tsx +409 -0
- package/Tests/UI/Components/PaginationIntegration.test.tsx +25 -0
- package/Tests/UI/Components/ResourceFacetConfigs.test.ts +172 -0
- package/Tests/UI/Components/SavedViewsSidebarIntegration.test.tsx +32 -14
- package/Tests/UI/Components/TableSortAndMobileColumns.test.tsx +44 -1
- package/Tests/UI/Components/TelemetryActiveFilterChipsLockedFilters.test.tsx +304 -0
- package/Tests/UI/Components/TelemetryFacetSidebarHiddenFacets.test.tsx +718 -0
- package/Tests/UI/Monitor/EvaluationLogList.test.tsx +303 -0
- package/Tests/UI/Monitor/MonitorSummarySnapshotRender.test.tsx +55 -1
- package/Tests/UI/Rum/FidelityNotices.test.ts +22 -0
- package/Tests/UI/Rum/RecordingHealthCard.test.tsx +120 -136
- package/Tests/UI/Rum/RecordingHealthDashboard.test.tsx +988 -0
- package/Tests/UI/Rum/ReplayCard.test.tsx +32 -0
- package/Tests/UI/Rum/ReplayCorrelationPanel.test.tsx +709 -12
- package/Tests/UI/Rum/ReplayHeader.test.tsx +50 -1
- package/Tests/UI/Rum/ReplayPinControl.test.tsx +67 -10
- package/Tests/UI/Rum/ReplayPlayerChrome.test.tsx +41 -12
- package/Tests/UI/Rum/ReplayStage.test.tsx +663 -1
- package/Tests/UI/Rum/ReplayStageOverlays.test.tsx +173 -0
- package/Tests/UI/Rum/ReplayUi.test.tsx +189 -2
- package/Tests/UI/Rum/ReplayUserSessionsMenu.test.tsx +91 -0
- package/Tests/UI/Rum/SessionReplayEmptyState.test.tsx +1 -1
- package/Tests/UI/Rum/SessionReplaySettingsPolicyLoading.test.tsx +585 -0
- package/Tests/UI/Rum/SessionReplayTable.test.tsx +844 -51
- package/Tests/UI/Rum/SessionReplayUsersTable.test.tsx +29 -1
- package/Tests/UI/Telemetry/TelemetryDetailPanel.test.tsx +288 -0
- package/Tests/UI/Utils/Breadcrumb/fixtures/RealBreadcrumbTrails.ts +31 -1
- package/Tests/UI/Utils/Breadcrumb/fixtures/RealRoutePatterns.ts +6 -0
- package/Tests/UI/Utils/Clipboard.test.ts +154 -0
- package/Tests/UI/Utils/Navigation.test.ts +24 -0
- package/Tests/UI/Utils/Telemetry/TelemetryEntityNames.test.ts +2205 -0
- package/Tests/UI/Utils/Telemetry/UseTelemetryEntityNames.test.tsx +844 -0
- package/Tests/Utils/AI/InvestigationReport.test.ts +2430 -0
- package/Tests/Utils/APIOutgoingRequestTracer.test.ts +137 -0
- package/Tests/Utils/Rum/SessionReplayHealthDiagnosis.test.ts +40 -0
- package/Tests/Utils/Rum/SessionReplayRecordingEnded.test.ts +619 -0
- package/Tests/Utils/SecurityEvent/Connectors/AwsSecurityHubNormalizer.test.ts +631 -0
- package/Tests/Utils/SecurityEvent/Connectors/CrowdStrikeFalconNormalizer.test.ts +479 -0
- package/Tests/Utils/SecurityEvent/Connectors/ElasticSecurityNormalizer.test.ts +507 -0
- package/Tests/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdrNormalizer.test.ts +686 -0
- package/Tests/Utils/SecurityEvent/Connectors/MicrosoftSentinelNormalizer.test.ts +474 -0
- package/Tests/Utils/SecurityEvent/Connectors/OktaNormalizer.test.ts +736 -0
- package/Tests/Utils/SecurityEvent/Connectors/SplunkNormalizer.test.ts +407 -0
- package/Tests/Utils/SecurityEvent/GoogleSecOpsAlertNormalizer.test.ts +129 -0
- package/Tests/Utils/Telemetry/CrossSignalScope.test.ts +57 -1
- package/Tests/Utils/Telemetry/EntityRelationship.test.ts +36 -0
- package/Tests/Utils/Telemetry/LockedFilterSearch.test.ts +600 -0
- package/Tests/Utils/Telemetry/NetworkHost.test.ts +48 -0
- package/Tests/Utils/Telemetry/OriginAllowList.test.ts +154 -0
- package/Tests/Utils/Traces/CriticalPath.test.ts +25 -0
- package/Types/AI/AIChatTypes.ts +8 -0
- package/Types/AI/InvestigationEvidence.ts +96 -0
- package/Types/Monitor/MonitorEvaluationSummary.ts +5 -0
- package/Types/Permission.ts +2 -2
- package/Types/Rum/SessionReplay.ts +109 -0
- package/Types/Rum/SessionReplayApi.ts +31 -0
- package/Types/SecurityEvent/Connectors/ConnectorDiagnostics.ts +111 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectionDiagnostics.ts +87 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.ts +492 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.ts +41 -0
- package/Types/SecurityEvent/GoogleSecOpsDiagnostics.ts +56 -1
- package/Types/SecurityEvent/GoogleSecOpsRegion.ts +34 -0
- package/Types/Telemetry/EntityType.ts +14 -0
- package/Types/Telemetry/ExceptionSpanScope.ts +83 -0
- package/Types/Telemetry/LockedFilterDetail.ts +46 -0
- package/Types/Telemetry/ResourceEntityFacet.ts +17 -10
- package/Types/Telemetry/ResourceFacetCatalog.ts +171 -0
- package/UI/Components/Card/Card.tsx +118 -83
- package/UI/Components/Checkbox/Checkbox.tsx +8 -5
- package/UI/Components/CopyTextButton/CopyTextButton.tsx +7 -1
- package/UI/Components/CustomFields/CustomFieldsDetail.tsx +4 -1
- package/UI/Components/Detail/Detail.tsx +137 -22
- package/UI/Components/ErrorBoundary.tsx +38 -0
- package/UI/Components/LogsViewer/LogsEntityNames.ts +912 -0
- package/UI/Components/LogsViewer/LogsViewer.tsx +156 -77
- package/UI/Components/LogsViewer/components/ActiveFilterChips.tsx +28 -11
- package/UI/Components/LogsViewer/components/FacetSection.tsx +66 -79
- package/UI/Components/LogsViewer/components/FacetValueRow.tsx +17 -2
- package/UI/Components/LogsViewer/components/LogDetailsPanel.tsx +45 -5
- package/UI/Components/LogsViewer/components/LogsAnalyticsView.tsx +100 -19
- package/UI/Components/LogsViewer/components/LogsFacetSidebar.tsx +156 -39
- package/UI/Components/LogsViewer/components/LogsTable.tsx +30 -8
- package/UI/Components/LogsViewer/types.ts +6 -0
- package/UI/Components/Markdown.tsx/InlineReferences.tsx +628 -0
- package/UI/Components/Markdown.tsx/MarkdownViewer.tsx +385 -312
- package/UI/Components/MemberRoleAssignment/MemberRoleAssignment.tsx +50 -22
- package/UI/Components/ModelDetail/CardModelDetail.tsx +15 -0
- package/UI/Components/ModelDetail/ModelDetail.tsx +64 -19
- package/UI/Components/ModelList/ModelList.tsx +33 -8
- package/UI/Components/Page/ModelPage.tsx +119 -54
- package/UI/Components/Table/Table.tsx +8 -0
- package/UI/Components/Table/TableRow.tsx +13 -5
- package/UI/Components/TelemetryViewer/FacetVisibility.ts +229 -0
- package/UI/Components/TelemetryViewer/ResourceFacetConfigs.ts +46 -0
- package/UI/Components/TelemetryViewer/TelemetryViewer.tsx +11 -0
- package/UI/Components/TelemetryViewer/components/FacetSearchInput.tsx +79 -0
- package/UI/Components/TelemetryViewer/components/FacetSectionHeader.tsx +69 -0
- package/UI/Components/TelemetryViewer/components/FacetShowMoreButton.tsx +36 -0
- package/UI/Components/TelemetryViewer/components/HiddenFacetsFooter.tsx +88 -0
- package/UI/Components/TelemetryViewer/components/LockedFilterActions.tsx +205 -0
- package/UI/Components/TelemetryViewer/components/LockedFilterChip.tsx +496 -0
- package/UI/Components/TelemetryViewer/components/TelemetryActiveFilterChips.tsx +30 -10
- package/UI/Components/TelemetryViewer/components/TelemetryDetailPanel.tsx +203 -10
- package/UI/Components/TelemetryViewer/components/TelemetryFacetSection.tsx +60 -73
- package/UI/Components/TelemetryViewer/components/TelemetryFacetSidebar.tsx +94 -7
- package/UI/Components/TelemetryViewer/components/TelemetryFacetValueRow.tsx +17 -2
- package/UI/Components/TelemetryViewer/types.ts +19 -0
- package/UI/Components/TelemetryViewer/useFacetSearchExemptions.ts +158 -0
- package/UI/Components/TelemetryViewer/useFacetSectionSearch.ts +102 -0
- package/UI/Utils/Clipboard.ts +68 -2
- package/UI/Utils/Navigation.ts +17 -2
- package/UI/Utils/Telemetry/TelemetryEntityNames.ts +620 -0
- package/UI/Utils/Telemetry/UseTelemetryEntityNames.ts +151 -0
- package/Utils/AI/InvestigationReport.ts +1789 -0
- package/Utils/API.ts +90 -1
- package/Utils/Rum/SessionReplayHealth.ts +11 -0
- package/Utils/Rum/SessionReplayRecordingEnded.ts +134 -0
- package/Utils/SecurityEvent/Connectors/AwsSecurityHubNormalizer.ts +427 -0
- package/Utils/SecurityEvent/Connectors/CrowdStrikeFalconNormalizer.ts +197 -0
- package/Utils/SecurityEvent/Connectors/ElasticSecurityNormalizer.ts +464 -0
- package/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdrNormalizer.ts +567 -0
- package/Utils/SecurityEvent/Connectors/MicrosoftSentinelNormalizer.ts +299 -0
- package/Utils/SecurityEvent/Connectors/OktaNormalizer.ts +467 -0
- package/Utils/SecurityEvent/Connectors/SplunkNormalizer.ts +439 -0
- package/Utils/SecurityEvent/GoogleSecOpsAlertNormalizer.ts +124 -12
- package/Utils/Telemetry/CrossSignalScope.ts +22 -8
- package/Utils/Telemetry/EntityRelationship.ts +8 -0
- package/Utils/Telemetry/LockedFilterSearch.ts +412 -0
- package/Utils/Telemetry/NetworkHost.ts +43 -0
- package/Utils/Telemetry/OriginAllowList.ts +139 -4
- package/Utils/Traces/CriticalPath.ts +10 -4
- package/build/dist/Models/DatabaseModels/Index.js +4 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/RumApplication.js +1 -1
- package/build/dist/Models/DatabaseModels/RumApplication.js.map +1 -1
- package/build/dist/Models/DatabaseModels/SecurityEventConnection.js +490 -0
- package/build/dist/Models/DatabaseModels/SecurityEventConnection.js.map +1 -0
- package/build/dist/Models/DatabaseModels/SecurityEventConnectionRun.js +287 -0
- package/build/dist/Models/DatabaseModels/SecurityEventConnectionRun.js.map +1 -0
- package/build/dist/Models/DatabaseModels/TelemetryIngestionKey.js +2 -2
- package/build/dist/Models/DatabaseModels/TelemetryIngestionKey.js.map +1 -1
- package/build/dist/Server/API/AIInvestigationAPI.js +336 -27
- package/build/dist/Server/API/AIInvestigationAPI.js.map +1 -1
- package/build/dist/Server/API/GoogleSecOpsConnectionAPI.js +182 -7
- package/build/dist/Server/API/GoogleSecOpsConnectionAPI.js.map +1 -1
- package/build/dist/Server/API/SecurityEventConnectionAPI.js +171 -0
- package/build/dist/Server/API/SecurityEventConnectionAPI.js.map +1 -0
- package/build/dist/Server/API/TelemetryAPI.js +248 -170
- package/build/dist/Server/API/TelemetryAPI.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1792700000000-AddSecurityEventConnections.js +40 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1792700000000-AddSecurityEventConnections.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +2 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Middleware/TelemetryIngest.js +57 -4
- package/build/dist/Server/Middleware/TelemetryIngest.js.map +1 -1
- package/build/dist/Server/Services/ExceptionAggregationService.js +7 -16
- package/build/dist/Server/Services/ExceptionAggregationService.js.map +1 -1
- package/build/dist/Server/Services/GoogleSecOpsConnectionService.js +8 -0
- package/build/dist/Server/Services/GoogleSecOpsConnectionService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +4 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/InventoryItemService.js +22 -0
- package/build/dist/Server/Services/InventoryItemService.js.map +1 -1
- package/build/dist/Server/Services/LogAggregationService.js +8 -17
- package/build/dist/Server/Services/LogAggregationService.js.map +1 -1
- package/build/dist/Server/Services/MetricAggregationService.js +4 -14
- package/build/dist/Server/Services/MetricAggregationService.js.map +1 -1
- package/build/dist/Server/Services/SecurityEventConnectionRunService.js +9 -0
- package/build/dist/Server/Services/SecurityEventConnectionRunService.js.map +1 -0
- package/build/dist/Server/Services/SecurityEventConnectionService.js +356 -0
- package/build/dist/Server/Services/SecurityEventConnectionService.js.map +1 -0
- package/build/dist/Server/Services/TraceAggregationService.js +51 -25
- package/build/dist/Server/Services/TraceAggregationService.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js +9 -0
- package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js.map +1 -1
- package/build/dist/Server/Utils/AI/Chat/ObservabilityAssistant.js +3 -0
- package/build/dist/Server/Utils/AI/Chat/ObservabilityAssistant.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/AIInvestigationEngine.js +14 -7
- package/build/dist/Server/Utils/AI/SRE/AIInvestigationEngine.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/InvestigationEvidence.js +468 -0
- package/build/dist/Server/Utils/AI/SRE/InvestigationEvidence.js.map +1 -0
- package/build/dist/Server/Utils/AI/SRE/InvestigationReferences.js +230 -0
- package/build/dist/Server/Utils/AI/SRE/InvestigationReferences.js.map +1 -0
- package/build/dist/Server/Utils/AI/Toolbox/Index.js +32 -0
- package/build/dist/Server/Utils/AI/Toolbox/Index.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/TimelineTools.js +6 -2
- package/build/dist/Server/Utils/AI/Toolbox/TimelineTools.js.map +1 -1
- package/build/dist/Server/Utils/AnalyticsDatabase/StatementGenerator.js +59 -0
- package/build/dist/Server/Utils/AnalyticsDatabase/StatementGenerator.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +5 -3
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/SecurityEvent/Connectors/AwsSecurityHub/AwsSecurityHubClient.js +752 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/AwsSecurityHub/AwsSecurityHubClient.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/AwsSecurityHub/AwsSecurityHubConnector.js +493 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/AwsSecurityHub/AwsSecurityHubConnector.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/ConnectorPlatformHealth.js +352 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/ConnectorPlatformHealth.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/CrowdStrikeFalcon/CrowdStrikeFalconClient.js +405 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/CrowdStrikeFalcon/CrowdStrikeFalconClient.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/CrowdStrikeFalcon/CrowdStrikeFalconConnector.js +466 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/CrowdStrikeFalcon/CrowdStrikeFalconConnector.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/ElasticSecurity/ElasticSecurityClient.js +344 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/ElasticSecurity/ElasticSecurityClient.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/ElasticSecurity/ElasticSecurityConnector.js +511 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/ElasticSecurity/ElasticSecurityConnector.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdr/MicrosoftDefenderXdrClient.js +406 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdr/MicrosoftDefenderXdrClient.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdr/MicrosoftDefenderXdrConnector.js +336 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdr/MicrosoftDefenderXdrConnector.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/MicrosoftSentinel/MicrosoftSentinelClient.js +474 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/MicrosoftSentinel/MicrosoftSentinelClient.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/MicrosoftSentinel/MicrosoftSentinelConnector.js +417 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/MicrosoftSentinel/MicrosoftSentinelConnector.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/Okta/OktaClient.js +314 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/Okta/OktaClient.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/Okta/OktaConnector.js +494 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/Okta/OktaConnector.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionPoller.js +719 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionPoller.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionRunExecutor.js +404 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionRunExecutor.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionTester.js +209 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectionTester.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectorRegistry.js +40 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/SecurityEventConnectorRegistry.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/Splunk/SplunkClient.js +494 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/Splunk/SplunkClient.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/Splunk/SplunkConnector.js +379 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/Splunk/SplunkConnector.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/Types.js +27 -0
- package/build/dist/Server/Utils/SecurityEvent/Connectors/Types.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsClient.js +234 -61
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsClient.js.map +1 -1
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsConnectionTester.js +537 -0
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsConnectionTester.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsPoller.js +572 -115
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsPoller.js.map +1 -1
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsRunExecutor.js +35 -1
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsRunExecutor.js.map +1 -1
- package/build/dist/Server/Utils/SecurityEvent/SecurityEventDedupe.js +52 -0
- package/build/dist/Server/Utils/SecurityEvent/SecurityEventDedupe.js.map +1 -0
- package/build/dist/Server/Utils/SessionReplay/SessionReplayReadService.js +521 -32
- package/build/dist/Server/Utils/SessionReplay/SessionReplayReadService.js.map +1 -1
- package/build/dist/Server/Utils/StartServer.js +10 -0
- package/build/dist/Server/Utils/StartServer.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/EntityRegistry.js +8 -0
- package/build/dist/Server/Utils/Telemetry/EntityRegistry.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/KubernetesResourceAttributes.js +80 -0
- package/build/dist/Server/Utils/Telemetry/KubernetesResourceAttributes.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/ResourceEntityFilter.js +122 -67
- package/build/dist/Server/Utils/Telemetry/ResourceEntityFilter.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/ResourceFacetPlanner.js +146 -0
- package/build/dist/Server/Utils/Telemetry/ResourceFacetPlanner.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/ResourceFacetResolver.js +174 -248
- package/build/dist/Server/Utils/Telemetry/ResourceFacetResolver.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/ServiceDependencyDiscovery.js +492 -0
- package/build/dist/Server/Utils/Telemetry/ServiceDependencyDiscovery.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/TraceContextPropagation.js +259 -0
- package/build/dist/Server/Utils/Telemetry/TraceContextPropagation.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry.js +11 -5
- package/build/dist/Server/Utils/Telemetry.js.map +1 -1
- package/build/dist/Types/AI/InvestigationEvidence.js +2 -0
- package/build/dist/Types/AI/InvestigationEvidence.js.map +1 -0
- package/build/dist/Types/Permission.js +2 -2
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Rum/SessionReplay.js +95 -0
- package/build/dist/Types/Rum/SessionReplay.js.map +1 -1
- package/build/dist/Types/Rum/SessionReplayApi.js.map +1 -1
- package/build/dist/Types/SecurityEvent/Connectors/ConnectorDiagnostics.js +18 -0
- package/build/dist/Types/SecurityEvent/Connectors/ConnectorDiagnostics.js.map +1 -0
- package/build/dist/Types/SecurityEvent/Connectors/SecurityEventConnectionDiagnostics.js +2 -0
- package/build/dist/Types/SecurityEvent/Connectors/SecurityEventConnectionDiagnostics.js.map +1 -0
- package/build/dist/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +374 -0
- package/build/dist/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js.map +1 -0
- package/build/dist/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.js +35 -0
- package/build/dist/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.js.map +1 -0
- package/build/dist/Types/SecurityEvent/GoogleSecOpsRegion.js +35 -0
- package/build/dist/Types/SecurityEvent/GoogleSecOpsRegion.js.map +1 -0
- package/build/dist/Types/Telemetry/EntityType.js +14 -0
- package/build/dist/Types/Telemetry/EntityType.js.map +1 -1
- package/build/dist/Types/Telemetry/ExceptionSpanScope.js +59 -0
- package/build/dist/Types/Telemetry/ExceptionSpanScope.js.map +1 -0
- package/build/dist/Types/Telemetry/LockedFilterDetail.js +16 -0
- package/build/dist/Types/Telemetry/LockedFilterDetail.js.map +1 -0
- package/build/dist/Types/Telemetry/ResourceEntityFacet.js +16 -10
- package/build/dist/Types/Telemetry/ResourceEntityFacet.js.map +1 -1
- package/build/dist/Types/Telemetry/ResourceFacetCatalog.js +119 -0
- package/build/dist/Types/Telemetry/ResourceFacetCatalog.js.map +1 -0
- package/build/dist/UI/Components/Card/Card.js +34 -17
- package/build/dist/UI/Components/Card/Card.js.map +1 -1
- package/build/dist/UI/Components/Checkbox/Checkbox.js +6 -4
- package/build/dist/UI/Components/Checkbox/Checkbox.js.map +1 -1
- package/build/dist/UI/Components/CopyTextButton/CopyTextButton.js +5 -1
- package/build/dist/UI/Components/CopyTextButton/CopyTextButton.js.map +1 -1
- package/build/dist/UI/Components/CustomFields/CustomFieldsDetail.js +1 -1
- package/build/dist/UI/Components/CustomFields/CustomFieldsDetail.js.map +1 -1
- package/build/dist/UI/Components/Detail/Detail.js +63 -13
- package/build/dist/UI/Components/Detail/Detail.js.map +1 -1
- package/build/dist/UI/Components/ErrorBoundary.js +34 -0
- package/build/dist/UI/Components/ErrorBoundary.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/LogsEntityNames.js +535 -0
- package/build/dist/UI/Components/LogsViewer/LogsEntityNames.js.map +1 -0
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js +117 -57
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/ActiveFilterChips.js +5 -7
- package/build/dist/UI/Components/LogsViewer/components/ActiveFilterChips.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/FacetSection.js +31 -44
- package/build/dist/UI/Components/LogsViewer/components/FacetSection.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/FacetValueRow.js +17 -3
- package/build/dist/UI/Components/LogsViewer/components/FacetValueRow.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogDetailsPanel.js +19 -3
- package/build/dist/UI/Components/LogsViewer/components/LogDetailsPanel.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogsAnalyticsView.js +64 -18
- package/build/dist/UI/Components/LogsViewer/components/LogsAnalyticsView.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js +100 -41
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogsTable.js +13 -5
- package/build/dist/UI/Components/LogsViewer/components/LogsTable.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/types.js.map +1 -1
- package/build/dist/UI/Components/Markdown.tsx/InlineReferences.js +403 -0
- package/build/dist/UI/Components/Markdown.tsx/InlineReferences.js.map +1 -0
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js +197 -179
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js.map +1 -1
- package/build/dist/UI/Components/MemberRoleAssignment/MemberRoleAssignment.js +30 -21
- package/build/dist/UI/Components/MemberRoleAssignment/MemberRoleAssignment.js.map +1 -1
- package/build/dist/UI/Components/ModelDetail/CardModelDetail.js +12 -0
- package/build/dist/UI/Components/ModelDetail/CardModelDetail.js.map +1 -1
- package/build/dist/UI/Components/ModelDetail/ModelDetail.js +46 -12
- package/build/dist/UI/Components/ModelDetail/ModelDetail.js.map +1 -1
- package/build/dist/UI/Components/ModelList/ModelList.js +26 -7
- package/build/dist/UI/Components/ModelList/ModelList.js.map +1 -1
- package/build/dist/UI/Components/Page/ModelPage.js +62 -34
- package/build/dist/UI/Components/Page/ModelPage.js.map +1 -1
- package/build/dist/UI/Components/Table/Table.js +3 -1
- package/build/dist/UI/Components/Table/Table.js.map +1 -1
- package/build/dist/UI/Components/Table/TableRow.js +8 -1
- package/build/dist/UI/Components/Table/TableRow.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/FacetVisibility.js +111 -0
- package/build/dist/UI/Components/TelemetryViewer/FacetVisibility.js.map +1 -0
- package/build/dist/UI/Components/TelemetryViewer/ResourceFacetConfigs.js +22 -0
- package/build/dist/UI/Components/TelemetryViewer/ResourceFacetConfigs.js.map +1 -0
- package/build/dist/UI/Components/TelemetryViewer/TelemetryViewer.js +1 -1
- package/build/dist/UI/Components/TelemetryViewer/TelemetryViewer.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/FacetSearchInput.js +36 -0
- package/build/dist/UI/Components/TelemetryViewer/components/FacetSearchInput.js.map +1 -0
- package/build/dist/UI/Components/TelemetryViewer/components/FacetSectionHeader.js +21 -0
- package/build/dist/UI/Components/TelemetryViewer/components/FacetSectionHeader.js.map +1 -0
- package/build/dist/UI/Components/TelemetryViewer/components/FacetShowMoreButton.js +14 -0
- package/build/dist/UI/Components/TelemetryViewer/components/FacetShowMoreButton.js.map +1 -0
- package/build/dist/UI/Components/TelemetryViewer/components/HiddenFacetsFooter.js +27 -0
- package/build/dist/UI/Components/TelemetryViewer/components/HiddenFacetsFooter.js.map +1 -0
- package/build/dist/UI/Components/TelemetryViewer/components/LockedFilterActions.js +88 -0
- package/build/dist/UI/Components/TelemetryViewer/components/LockedFilterActions.js.map +1 -0
- package/build/dist/UI/Components/TelemetryViewer/components/LockedFilterChip.js +228 -0
- package/build/dist/UI/Components/TelemetryViewer/components/LockedFilterChip.js.map +1 -0
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryActiveFilterChips.js +6 -6
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryActiveFilterChips.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryDetailPanel.js +111 -12
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryDetailPanel.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetSection.js +27 -40
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetSection.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetSidebar.js +70 -10
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetSidebar.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetValueRow.js +17 -3
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetValueRow.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/types.js +0 -4
- package/build/dist/UI/Components/TelemetryViewer/types.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/useFacetSearchExemptions.js +70 -0
- package/build/dist/UI/Components/TelemetryViewer/useFacetSearchExemptions.js.map +1 -0
- package/build/dist/UI/Components/TelemetryViewer/useFacetSectionSearch.js +52 -0
- package/build/dist/UI/Components/TelemetryViewer/useFacetSectionSearch.js.map +1 -0
- package/build/dist/UI/Utils/Clipboard.js +59 -2
- package/build/dist/UI/Utils/Clipboard.js.map +1 -1
- package/build/dist/UI/Utils/Navigation.js +11 -2
- package/build/dist/UI/Utils/Navigation.js.map +1 -1
- package/build/dist/UI/Utils/Telemetry/TelemetryEntityNames.js +471 -0
- package/build/dist/UI/Utils/Telemetry/TelemetryEntityNames.js.map +1 -0
- package/build/dist/UI/Utils/Telemetry/UseTelemetryEntityNames.js +113 -0
- package/build/dist/UI/Utils/Telemetry/UseTelemetryEntityNames.js.map +1 -0
- package/build/dist/Utils/AI/InvestigationReport.js +1241 -0
- package/build/dist/Utils/AI/InvestigationReport.js.map +1 -0
- package/build/dist/Utils/API.js +25 -0
- package/build/dist/Utils/API.js.map +1 -1
- package/build/dist/Utils/Rum/SessionReplayHealth.js +10 -0
- package/build/dist/Utils/Rum/SessionReplayHealth.js.map +1 -1
- package/build/dist/Utils/Rum/SessionReplayRecordingEnded.js +54 -0
- package/build/dist/Utils/Rum/SessionReplayRecordingEnded.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/Connectors/AwsSecurityHubNormalizer.js +311 -0
- package/build/dist/Utils/SecurityEvent/Connectors/AwsSecurityHubNormalizer.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/Connectors/CrowdStrikeFalconNormalizer.js +150 -0
- package/build/dist/Utils/SecurityEvent/Connectors/CrowdStrikeFalconNormalizer.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/Connectors/ElasticSecurityNormalizer.js +328 -0
- package/build/dist/Utils/SecurityEvent/Connectors/ElasticSecurityNormalizer.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdrNormalizer.js +405 -0
- package/build/dist/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdrNormalizer.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/Connectors/MicrosoftSentinelNormalizer.js +212 -0
- package/build/dist/Utils/SecurityEvent/Connectors/MicrosoftSentinelNormalizer.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/Connectors/OktaNormalizer.js +351 -0
- package/build/dist/Utils/SecurityEvent/Connectors/OktaNormalizer.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/Connectors/SplunkNormalizer.js +348 -0
- package/build/dist/Utils/SecurityEvent/Connectors/SplunkNormalizer.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/GoogleSecOpsAlertNormalizer.js +103 -10
- package/build/dist/Utils/SecurityEvent/GoogleSecOpsAlertNormalizer.js.map +1 -1
- package/build/dist/Utils/Telemetry/CrossSignalScope.js +16 -5
- package/build/dist/Utils/Telemetry/CrossSignalScope.js.map +1 -1
- package/build/dist/Utils/Telemetry/EntityRelationship.js +7 -0
- package/build/dist/Utils/Telemetry/EntityRelationship.js.map +1 -1
- package/build/dist/Utils/Telemetry/LockedFilterSearch.js +277 -0
- package/build/dist/Utils/Telemetry/LockedFilterSearch.js.map +1 -0
- package/build/dist/Utils/Telemetry/NetworkHost.js +39 -0
- package/build/dist/Utils/Telemetry/NetworkHost.js.map +1 -0
- package/build/dist/Utils/Telemetry/OriginAllowList.js +105 -4
- package/build/dist/Utils/Telemetry/OriginAllowList.js.map +1 -1
- package/build/dist/Utils/Traces/CriticalPath.js +9 -4
- package/build/dist/Utils/Traces/CriticalPath.js.map +1 -1
- package/package.json +1 -1
- package/Tests/UI/Rum/RecordingHealthStrip.test.tsx +0 -600
- package/UI/Components/GanttChart/Bar/BarLabel.tsx +0 -17
- package/UI/Components/GanttChart/Bar/Index.tsx +0 -149
- package/UI/Components/GanttChart/ChartContainer.tsx +0 -50
- package/UI/Components/GanttChart/Index.tsx +0 -90
- package/UI/Components/GanttChart/Row/Index.tsx +0 -22
- package/UI/Components/GanttChart/Row/Row.tsx +0 -231
- package/UI/Components/GanttChart/Row/RowLabel.tsx +0 -30
- package/UI/Components/GanttChart/Rows.tsx +0 -59
- package/UI/Components/GanttChart/Timeline/Index.tsx +0 -46
- package/UI/Components/GanttChart/Timeline/TimelineInterval.tsx +0 -33
- package/UI/Components/GanttChart/Timeline/TimelineIntervalMarks.tsx +0 -43
- package/build/dist/UI/Components/GanttChart/Bar/BarLabel.js +0 -8
- package/build/dist/UI/Components/GanttChart/Bar/BarLabel.js.map +0 -1
- package/build/dist/UI/Components/GanttChart/Bar/Index.js +0 -77
- package/build/dist/UI/Components/GanttChart/Bar/Index.js.map +0 -1
- package/build/dist/UI/Components/GanttChart/ChartContainer.js +0 -33
- package/build/dist/UI/Components/GanttChart/ChartContainer.js.map +0 -1
- package/build/dist/UI/Components/GanttChart/Index.js +0 -39
- package/build/dist/UI/Components/GanttChart/Index.js.map +0 -1
- package/build/dist/UI/Components/GanttChart/Row/Index.js +0 -7
- package/build/dist/UI/Components/GanttChart/Row/Index.js.map +0 -1
- package/build/dist/UI/Components/GanttChart/Row/Row.js +0 -106
- package/build/dist/UI/Components/GanttChart/Row/Row.js.map +0 -1
- package/build/dist/UI/Components/GanttChart/Row/RowLabel.js +0 -10
- package/build/dist/UI/Components/GanttChart/Row/RowLabel.js.map +0 -1
- package/build/dist/UI/Components/GanttChart/Rows.js +0 -19
- package/build/dist/UI/Components/GanttChart/Rows.js.map +0 -1
- package/build/dist/UI/Components/GanttChart/Timeline/Index.js +0 -16
- package/build/dist/UI/Components/GanttChart/Timeline/Index.js.map +0 -1
- package/build/dist/UI/Components/GanttChart/Timeline/TimelineInterval.js +0 -13
- package/build/dist/UI/Components/GanttChart/Timeline/TimelineInterval.js.map +0 -1
- package/build/dist/UI/Components/GanttChart/Timeline/TimelineIntervalMarks.js +0 -13
- package/build/dist/UI/Components/GanttChart/Timeline/TimelineIntervalMarks.js.map +0 -1
package/build/dist/Server/Utils/SecurityEvent/Connectors/ElasticSecurity/ElasticSecurityConnector.js
ADDED
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
import BadDataException from "../../../../../Types/Exception/BadDataException";
|
|
2
|
+
import SecurityEventConnectorProvider from "../../../../../Types/SecurityEvent/Connectors/SecurityEventConnectorProvider";
|
|
3
|
+
import { getSecurityEventConnectorDefinition, } from "../../../../../Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog";
|
|
4
|
+
import ElasticSecurityNormalizer from "../../../../../Utils/SecurityEvent/Connectors/ElasticSecurityNormalizer";
|
|
5
|
+
import { parseEventTime } from "../../../../../Utils/SecurityEvent/NormalizerHelpers";
|
|
6
|
+
import DataSourceHttpFetch from "../../../DataSource/HttpFetch";
|
|
7
|
+
import { redactLogString } from "../../../LogRedaction";
|
|
8
|
+
import ConnectorErrorMessage from "../../ConnectorErrorMessage";
|
|
9
|
+
import { makeCheck, readSettingString, } from "../Types";
|
|
10
|
+
import ElasticSecurityClient, { ELASTIC_SECURITY_MAX_EXCLUDED_ID_BYTES, ELASTIC_SECURITY_MAX_PAGE_SIZE, ElasticSecurityHttpError, } from "./ElasticSecurityClient";
|
|
11
|
+
// Kibana space ids: lowercase letters, digits, hyphens and underscores.
|
|
12
|
+
const SPACE_ID_REGEX = /^[a-z0-9_-]+$/i;
|
|
13
|
+
// A pasted Kibana URL that already carries the /s/<space> prefix or an API path.
|
|
14
|
+
const SPACE_PREFIX_REGEX = /\/s\/[^/]+/;
|
|
15
|
+
const API_PATH_REGEX = /\/api(\/|$)/;
|
|
16
|
+
// The header scheme pasted along with the key, and anything that is not one base64 token.
|
|
17
|
+
const API_KEY_PREFIX_REGEX = /^apikey\s/i;
|
|
18
|
+
const WHITESPACE_REGEX = /\s/;
|
|
19
|
+
const DAY_IN_MS = 24 * 60 * 60 * 1000;
|
|
20
|
+
// Normalization failures quoted into warnings before the rest are counted only.
|
|
21
|
+
const MAX_NORMALIZATION_WARNINGS = 5;
|
|
22
|
+
export default class ElasticSecurityConnector {
|
|
23
|
+
constructor(transport) {
|
|
24
|
+
this.provider = SecurityEventConnectorProvider.ElasticSecurity;
|
|
25
|
+
this.transport =
|
|
26
|
+
transport ||
|
|
27
|
+
((request) => {
|
|
28
|
+
return DataSourceHttpFetch.fetch(request);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
static getDefinition() {
|
|
32
|
+
const definition = getSecurityEventConnectorDefinition(SecurityEventConnectorProvider.ElasticSecurity);
|
|
33
|
+
if (!definition) {
|
|
34
|
+
throw new BadDataException("Elastic Security is missing from the connector catalog.");
|
|
35
|
+
}
|
|
36
|
+
return definition;
|
|
37
|
+
}
|
|
38
|
+
/*
|
|
39
|
+
* Validation messages name the field by the title the form shows, read
|
|
40
|
+
* from the catalog so a retitled field cannot leave a stale name here.
|
|
41
|
+
*/
|
|
42
|
+
static fieldTitle(key) {
|
|
43
|
+
const definition = this.getDefinition();
|
|
44
|
+
const field = [
|
|
45
|
+
...definition.configFields,
|
|
46
|
+
...definition.secretFields,
|
|
47
|
+
].find((candidate) => {
|
|
48
|
+
return candidate.key === key;
|
|
49
|
+
});
|
|
50
|
+
return (field === null || field === void 0 ? void 0 : field.title) || key;
|
|
51
|
+
}
|
|
52
|
+
static parseSettings(settings) {
|
|
53
|
+
const kibanaUrl = readSettingString(settings.config, "kibanaUrl");
|
|
54
|
+
const space = readSettingString(settings.config, "space");
|
|
55
|
+
const apiKey = readSettingString(settings.secrets, "apiKey");
|
|
56
|
+
if (!kibanaUrl) {
|
|
57
|
+
throw new BadDataException(`${this.fieldTitle("kibanaUrl")} is required.`);
|
|
58
|
+
}
|
|
59
|
+
let parsed;
|
|
60
|
+
try {
|
|
61
|
+
parsed = new URL(kibanaUrl);
|
|
62
|
+
}
|
|
63
|
+
catch (_a) {
|
|
64
|
+
throw new BadDataException(`${this.fieldTitle("kibanaUrl")} must be an absolute URL such as https://kibana.example.com.`);
|
|
65
|
+
}
|
|
66
|
+
if (parsed.protocol !== "https:" && parsed.protocol !== "http:") {
|
|
67
|
+
throw new BadDataException(`${this.fieldTitle("kibanaUrl")} must use https (or http).`);
|
|
68
|
+
}
|
|
69
|
+
if (parsed.search || parsed.hash) {
|
|
70
|
+
throw new BadDataException(`${this.fieldTitle("kibanaUrl")} must not contain a query string or fragment.`);
|
|
71
|
+
}
|
|
72
|
+
if (SPACE_PREFIX_REGEX.test(parsed.pathname)) {
|
|
73
|
+
throw new BadDataException(`${this.fieldTitle("kibanaUrl")} must not include the /s/<space> prefix; put the space id in the ${this.fieldTitle("space")} field instead.`);
|
|
74
|
+
}
|
|
75
|
+
if (API_PATH_REGEX.test(parsed.pathname)) {
|
|
76
|
+
throw new BadDataException(`${this.fieldTitle("kibanaUrl")} must be the base URL Kibana is served from, without an /api path.`);
|
|
77
|
+
}
|
|
78
|
+
if (space && !SPACE_ID_REGEX.test(space)) {
|
|
79
|
+
throw new BadDataException(`${this.fieldTitle("space")} must be a space id (letters, numbers, hyphens and underscores), not its display name.`);
|
|
80
|
+
}
|
|
81
|
+
if (!apiKey) {
|
|
82
|
+
throw new BadDataException(`${this.fieldTitle("apiKey")} is required.`);
|
|
83
|
+
}
|
|
84
|
+
if (API_KEY_PREFIX_REGEX.test(apiKey)) {
|
|
85
|
+
throw new BadDataException(`${this.fieldTitle("apiKey")} must be pasted without the 'ApiKey' prefix.`);
|
|
86
|
+
}
|
|
87
|
+
/*
|
|
88
|
+
* A raw `id:api_key` pair or a value with whitespace is the most
|
|
89
|
+
* common paste mistake; it would only surface as a 401 later, without
|
|
90
|
+
* saying why. The base64 `encoded` value has neither.
|
|
91
|
+
*/
|
|
92
|
+
if (WHITESPACE_REGEX.test(apiKey) || apiKey.includes(":")) {
|
|
93
|
+
throw new BadDataException(`${this.fieldTitle("apiKey")} must be the base64 encoded value Kibana shows when the key is created (the 'encoded' field), not the raw id:api_key pair.`);
|
|
94
|
+
}
|
|
95
|
+
return { kibanaUrl, space, apiKey };
|
|
96
|
+
}
|
|
97
|
+
validateSettings(settings) {
|
|
98
|
+
ElasticSecurityConnector.parseSettings(settings);
|
|
99
|
+
}
|
|
100
|
+
buildClient(parsed, requestTimeoutInMs) {
|
|
101
|
+
return new ElasticSecurityClient({
|
|
102
|
+
kibanaUrl: parsed.kibanaUrl,
|
|
103
|
+
space: parsed.space,
|
|
104
|
+
apiKey: parsed.apiKey,
|
|
105
|
+
transport: this.transport,
|
|
106
|
+
requestTimeoutInMs,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/*
|
|
110
|
+
* Three provider checks, in dependency order. Each later check is
|
|
111
|
+
* skipped rather than failed when an earlier one fails, so the report
|
|
112
|
+
* names one root cause instead of three symptoms of it.
|
|
113
|
+
*/
|
|
114
|
+
async testConnection(settings, options) {
|
|
115
|
+
const checks = [];
|
|
116
|
+
let parsed;
|
|
117
|
+
let startedAtMs = Date.now();
|
|
118
|
+
try {
|
|
119
|
+
parsed = ElasticSecurityConnector.parseSettings(settings);
|
|
120
|
+
}
|
|
121
|
+
catch (error) {
|
|
122
|
+
checks.push(makeCheck({
|
|
123
|
+
key: "authentication",
|
|
124
|
+
name: "Authenticate with Kibana",
|
|
125
|
+
status: "fail",
|
|
126
|
+
startedAtMs,
|
|
127
|
+
message: redactLogString(ConnectorErrorMessage.toMessage(error)),
|
|
128
|
+
remediation: "Correct the highlighted setting and test again. Nothing was contacted.",
|
|
129
|
+
}));
|
|
130
|
+
checks.push(ElasticSecurityConnector.skipped("read-permission", "Read detection alerts", "Skipped because the configuration is invalid."));
|
|
131
|
+
checks.push(ElasticSecurityConnector.skipped("detections-available", "Alerts available to import", "Skipped because the configuration is invalid."));
|
|
132
|
+
return checks;
|
|
133
|
+
}
|
|
134
|
+
const client = this.buildClient(parsed, options.requestTimeoutInMs);
|
|
135
|
+
let hostLabel = "Kibana";
|
|
136
|
+
try {
|
|
137
|
+
hostLabel = new URL(client.getBaseUrl()).host;
|
|
138
|
+
}
|
|
139
|
+
catch (_a) {
|
|
140
|
+
hostLabel = "Kibana";
|
|
141
|
+
}
|
|
142
|
+
// 1. Authentication: GET /api/status must come back unredacted.
|
|
143
|
+
let authenticated = false;
|
|
144
|
+
try {
|
|
145
|
+
const status = await client.getStatus();
|
|
146
|
+
if (!status.authenticated) {
|
|
147
|
+
checks.push(makeCheck({
|
|
148
|
+
key: "authentication",
|
|
149
|
+
name: "Authenticate with Kibana",
|
|
150
|
+
status: "fail",
|
|
151
|
+
startedAtMs,
|
|
152
|
+
message: `Kibana at ${hostLabel} answered without authenticating the request: the status document was redacted to the overall level only (${status.level || "unknown"}).`,
|
|
153
|
+
remediation: "Kibana ignored the credential, which happens when anonymous access is enabled and the Authorization header was not applied. Confirm the API key was pasted as its base64 encoded value and that no proxy in front of Kibana strips the Authorization header.",
|
|
154
|
+
details: { level: status.level, summary: status.summary },
|
|
155
|
+
}));
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
authenticated = true;
|
|
159
|
+
checks.push(makeCheck({
|
|
160
|
+
key: "authentication",
|
|
161
|
+
name: "Authenticate with Kibana",
|
|
162
|
+
status: "pass",
|
|
163
|
+
startedAtMs,
|
|
164
|
+
message: `Kibana ${status.version || ""} at ${hostLabel} accepted the API key. Overall status: ${status.level || "unknown"}.`.replace(/\s+/g, " "),
|
|
165
|
+
details: {
|
|
166
|
+
kibanaVersion: status.version,
|
|
167
|
+
level: status.level,
|
|
168
|
+
summary: status.summary,
|
|
169
|
+
},
|
|
170
|
+
}));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
catch (error) {
|
|
174
|
+
checks.push(makeCheck({
|
|
175
|
+
key: "authentication",
|
|
176
|
+
name: "Authenticate with Kibana",
|
|
177
|
+
status: "fail",
|
|
178
|
+
startedAtMs,
|
|
179
|
+
message: ElasticSecurityConnector.errorMessage(error),
|
|
180
|
+
remediation: ElasticSecurityConnector.remediationFor(error, "authentication"),
|
|
181
|
+
}));
|
|
182
|
+
}
|
|
183
|
+
if (!authenticated) {
|
|
184
|
+
checks.push(ElasticSecurityConnector.skipped("read-permission", "Read detection alerts", "Skipped because authentication did not succeed."));
|
|
185
|
+
checks.push(ElasticSecurityConnector.skipped("detections-available", "Alerts available to import", "Skipped because authentication did not succeed."));
|
|
186
|
+
return checks;
|
|
187
|
+
}
|
|
188
|
+
const now = new Date();
|
|
189
|
+
const dayAgo = new Date(now.getTime() - DAY_IN_MS);
|
|
190
|
+
const weekAgo = new Date(now.getTime() - 7 * DAY_IN_MS);
|
|
191
|
+
// 2. Read permission: one alert from the last 24 hours.
|
|
192
|
+
startedAtMs = Date.now();
|
|
193
|
+
let readable = false;
|
|
194
|
+
try {
|
|
195
|
+
const page = await client.searchAlerts({
|
|
196
|
+
startTime: dayAgo,
|
|
197
|
+
endTime: now,
|
|
198
|
+
size: 1,
|
|
199
|
+
});
|
|
200
|
+
readable = true;
|
|
201
|
+
const firstHit = page.hits[0];
|
|
202
|
+
const ruleName = firstHit
|
|
203
|
+
? ElasticSecurityConnector.describeHit(firstHit)
|
|
204
|
+
: "";
|
|
205
|
+
checks.push(makeCheck({
|
|
206
|
+
key: "read-permission",
|
|
207
|
+
name: "Read detection alerts",
|
|
208
|
+
status: "pass",
|
|
209
|
+
startedAtMs,
|
|
210
|
+
message: firstHit
|
|
211
|
+
? `The detection alerts index is readable; the one-record probe over the last 24 hours returned an alert from rule "${ruleName}".`
|
|
212
|
+
: "The detection alerts index is readable. No alert was created in the last 24 hours.",
|
|
213
|
+
}));
|
|
214
|
+
}
|
|
215
|
+
catch (error) {
|
|
216
|
+
checks.push(makeCheck({
|
|
217
|
+
key: "read-permission",
|
|
218
|
+
name: "Read detection alerts",
|
|
219
|
+
status: "fail",
|
|
220
|
+
startedAtMs,
|
|
221
|
+
message: ElasticSecurityConnector.errorMessage(error),
|
|
222
|
+
remediation: ElasticSecurityConnector.remediationFor(error, "read-permission"),
|
|
223
|
+
}));
|
|
224
|
+
}
|
|
225
|
+
if (!readable) {
|
|
226
|
+
checks.push(ElasticSecurityConnector.skipped("detections-available", "Alerts available to import", "Skipped because detection alerts could not be read."));
|
|
227
|
+
return checks;
|
|
228
|
+
}
|
|
229
|
+
// 3. Availability: counts over the last 24 hours and 7 days.
|
|
230
|
+
startedAtMs = Date.now();
|
|
231
|
+
try {
|
|
232
|
+
const last24h = await client.countAlerts({
|
|
233
|
+
startTime: dayAgo,
|
|
234
|
+
endTime: now,
|
|
235
|
+
});
|
|
236
|
+
const last7d = await client.countAlerts({
|
|
237
|
+
startTime: weekAgo,
|
|
238
|
+
endTime: now,
|
|
239
|
+
});
|
|
240
|
+
const label24h = ElasticSecurityConnector.countLabel(last24h);
|
|
241
|
+
const label7d = ElasticSecurityConnector.countLabel(last7d);
|
|
242
|
+
const nothing = last24h.count === 0 && last7d.count === 0;
|
|
243
|
+
const details = {
|
|
244
|
+
createdLast24h: last24h.count,
|
|
245
|
+
createdLast7d: last7d.count,
|
|
246
|
+
hasMoreLast24h: !last24h.exact,
|
|
247
|
+
hasMoreLast7d: !last7d.exact,
|
|
248
|
+
};
|
|
249
|
+
checks.push(makeCheck(Object.assign(Object.assign({ key: "detections-available", name: "Alerts available to import", status: nothing ? "warn" : "pass", startedAtMs, message: nothing
|
|
250
|
+
? "No alerts were created in the last 7 days. Polling will import new alerts as Elastic Security creates them."
|
|
251
|
+
: `${label24h} alert${label24h === "1" ? "" : "s"} created in the last 24 hours and ${label7d} in the last 7 days.` }, (nothing
|
|
252
|
+
? {
|
|
253
|
+
remediation: "If you expect alerts, check that detection rules are enabled in this Kibana space and that the space in the connection matches the one the rules run in (alerts are stored per space).",
|
|
254
|
+
}
|
|
255
|
+
: {})), { details })));
|
|
256
|
+
}
|
|
257
|
+
catch (error) {
|
|
258
|
+
checks.push(makeCheck({
|
|
259
|
+
key: "detections-available",
|
|
260
|
+
name: "Alerts available to import",
|
|
261
|
+
status: "fail",
|
|
262
|
+
startedAtMs,
|
|
263
|
+
message: ElasticSecurityConnector.errorMessage(error),
|
|
264
|
+
remediation: ElasticSecurityConnector.remediationFor(error, "detections-available"),
|
|
265
|
+
}));
|
|
266
|
+
}
|
|
267
|
+
return checks;
|
|
268
|
+
}
|
|
269
|
+
/*
|
|
270
|
+
* Read every alert created in the window, page by page and oldest
|
|
271
|
+
* first, within the request and event budgets. A budget hit returns
|
|
272
|
+
* complete=false with a warning and the resume point; nothing is
|
|
273
|
+
* silently dropped.
|
|
274
|
+
*/
|
|
275
|
+
async fetchEvents(settings, window, options) {
|
|
276
|
+
const parsed = ElasticSecurityConnector.parseSettings(settings);
|
|
277
|
+
const client = this.buildClient(parsed, options.requestTimeoutInMs);
|
|
278
|
+
const result = {
|
|
279
|
+
events: [],
|
|
280
|
+
fetchedCount: 0,
|
|
281
|
+
rejectedCount: 0,
|
|
282
|
+
failedCount: 0,
|
|
283
|
+
complete: true,
|
|
284
|
+
requestCount: 0,
|
|
285
|
+
warnings: [],
|
|
286
|
+
samples: [],
|
|
287
|
+
};
|
|
288
|
+
const pageSize = Math.max(1, Math.min(ELASTIC_SECURITY_MAX_PAGE_SIZE, Math.trunc(options.maxEvents)));
|
|
289
|
+
const endIso = window.endTime.toISOString();
|
|
290
|
+
const seenIds = new Set();
|
|
291
|
+
let lowerBound = window.startTime.toISOString();
|
|
292
|
+
/*
|
|
293
|
+
* Ids of the alerts already read whose @timestamp is the lower bound.
|
|
294
|
+
* Every alert read earlier is older than the lower bound (pages are
|
|
295
|
+
* ascending and the bound only moves forward), so these are the only
|
|
296
|
+
* read alerts the next `gte` request could return again.
|
|
297
|
+
*/
|
|
298
|
+
let tieIds = [];
|
|
299
|
+
// The newest @timestamp read; pages are ascending, so also the last.
|
|
300
|
+
let lastReadTime = undefined;
|
|
301
|
+
for (;;) {
|
|
302
|
+
if (result.requestCount >= options.maxRequests) {
|
|
303
|
+
result.complete = false;
|
|
304
|
+
result.warnings.push(`Stopped after ${options.maxRequests} requests with alerts still unread from ${lowerBound}.`);
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
if (Buffer.byteLength(JSON.stringify(tieIds), "utf8") >
|
|
308
|
+
ELASTIC_SECURITY_MAX_EXCLUDED_ID_BYTES) {
|
|
309
|
+
result.complete = false;
|
|
310
|
+
result.warnings.push(`${tieIds.length} alerts read so far share the creation time ${lowerBound}, more than one search request can exclude, so the rest of the alerts created at that instant were not read.`);
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
const page = await client.searchAlerts({
|
|
314
|
+
startTime: lowerBound,
|
|
315
|
+
endTime: endIso,
|
|
316
|
+
size: pageSize,
|
|
317
|
+
excludeIds: tieIds,
|
|
318
|
+
});
|
|
319
|
+
result.requestCount += 1;
|
|
320
|
+
let newInPage = 0;
|
|
321
|
+
let reachedEventBound = false;
|
|
322
|
+
for (const hit of page.hits) {
|
|
323
|
+
/*
|
|
324
|
+
* A hit without an _id cannot be deduplicated across the overlap
|
|
325
|
+
* re-read; its content stands in for the id so an identical
|
|
326
|
+
* document is still recognized as the same alert.
|
|
327
|
+
*/
|
|
328
|
+
const key = hit.id || JSON.stringify(hit.source);
|
|
329
|
+
/*
|
|
330
|
+
* Normally excluded by the query; kept so a Kibana or proxy that
|
|
331
|
+
* drops the exclusion re-reads nothing twice.
|
|
332
|
+
*/
|
|
333
|
+
if (seenIds.has(key)) {
|
|
334
|
+
continue;
|
|
335
|
+
}
|
|
336
|
+
if (result.fetchedCount >= options.maxEvents) {
|
|
337
|
+
reachedEventBound = true;
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
seenIds.add(key);
|
|
341
|
+
newInPage += 1;
|
|
342
|
+
result.fetchedCount += 1;
|
|
343
|
+
const hitTime = parseEventTime(hit.timestamp);
|
|
344
|
+
if (hitTime &&
|
|
345
|
+
(!lastReadTime || hitTime.getTime() > lastReadTime.getTime())) {
|
|
346
|
+
lastReadTime = hitTime;
|
|
347
|
+
}
|
|
348
|
+
this.collect(hit, result, options.sampleLimit);
|
|
349
|
+
}
|
|
350
|
+
if (reachedEventBound) {
|
|
351
|
+
result.complete = false;
|
|
352
|
+
result.warnings.push(`Stopped after collecting ${options.maxEvents} alerts; the window holds more.`);
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
// A short page is the last page.
|
|
356
|
+
if (page.hits.length < pageSize) {
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
const lastHit = page.hits[page.hits.length - 1];
|
|
360
|
+
const lastTimestamp = (lastHit === null || lastHit === void 0 ? void 0 : lastHit.timestamp) || "";
|
|
361
|
+
if (!lastTimestamp) {
|
|
362
|
+
result.complete = false;
|
|
363
|
+
result.warnings.push("A full page of alerts ended with a document that has no @timestamp, so the window cannot be paged further.");
|
|
364
|
+
break;
|
|
365
|
+
}
|
|
366
|
+
/*
|
|
367
|
+
* A full page with nothing new means the source ignored the
|
|
368
|
+
* exclusion and the lower bound is not moving the result set;
|
|
369
|
+
* another request would return the same page. Report it rather
|
|
370
|
+
* than loop.
|
|
371
|
+
*/
|
|
372
|
+
if (newInPage === 0) {
|
|
373
|
+
result.complete = false;
|
|
374
|
+
result.warnings.push(`A full page of alerts from ${lowerBound} contained only alerts already read, so the window cannot be paged further.`);
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
const idsAtLastTimestamp = page.hits
|
|
378
|
+
.filter((hit) => {
|
|
379
|
+
return (Boolean(hit.id) &&
|
|
380
|
+
ElasticSecurityConnector.sameInstant(hit.timestamp, lastTimestamp));
|
|
381
|
+
})
|
|
382
|
+
.map((hit) => {
|
|
383
|
+
return hit.id;
|
|
384
|
+
});
|
|
385
|
+
/*
|
|
386
|
+
* A page that did not get past the lower bound (all of it shares
|
|
387
|
+
* that instant) adds to the ids already excluded there; a page that
|
|
388
|
+
* moved the bound starts a new list, because nothing read before it
|
|
389
|
+
* carries the new timestamp.
|
|
390
|
+
*/
|
|
391
|
+
tieIds = ElasticSecurityConnector.sameInstant(lastTimestamp, lowerBound)
|
|
392
|
+
? Array.from(new Set([...tieIds, ...idsAtLastTimestamp]))
|
|
393
|
+
: Array.from(new Set(idsAtLastTimestamp));
|
|
394
|
+
lowerBound = lastTimestamp;
|
|
395
|
+
}
|
|
396
|
+
/*
|
|
397
|
+
* Every alert created strictly before lastReadTime inside the window
|
|
398
|
+
* has been read, which is exactly what the poller needs to move on.
|
|
399
|
+
*/
|
|
400
|
+
if (!result.complete && lastReadTime) {
|
|
401
|
+
result.resumeAfter = lastReadTime;
|
|
402
|
+
}
|
|
403
|
+
return result;
|
|
404
|
+
}
|
|
405
|
+
/*
|
|
406
|
+
* Two @timestamp values name the same instant. Compared as times so
|
|
407
|
+
* "…412Z" and "…412+00:00" group together; the raw strings are compared
|
|
408
|
+
* only when one does not parse.
|
|
409
|
+
*/
|
|
410
|
+
static sameInstant(left, right) {
|
|
411
|
+
const leftTime = parseEventTime(left);
|
|
412
|
+
const rightTime = parseEventTime(right);
|
|
413
|
+
if (leftTime && rightTime) {
|
|
414
|
+
return leftTime.getTime() === rightTime.getTime();
|
|
415
|
+
}
|
|
416
|
+
return left === right;
|
|
417
|
+
}
|
|
418
|
+
collect(hit, result, sampleLimit) {
|
|
419
|
+
const raw = ElasticSecurityConnector.toRaw(hit);
|
|
420
|
+
if (!ElasticSecurityNormalizer.isRecognized(raw)) {
|
|
421
|
+
result.rejectedCount += 1;
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
let normalized;
|
|
425
|
+
try {
|
|
426
|
+
normalized = ElasticSecurityNormalizer.normalize(raw);
|
|
427
|
+
}
|
|
428
|
+
catch (error) {
|
|
429
|
+
result.failedCount += 1;
|
|
430
|
+
if (result.warnings.length < MAX_NORMALIZATION_WARNINGS) {
|
|
431
|
+
result.warnings.push(`Alert ${hit.id || "(no id)"} could not be normalized: ${redactLogString(ConnectorErrorMessage.toMessage(error))}`);
|
|
432
|
+
}
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
435
|
+
result.events.push(normalized);
|
|
436
|
+
if (result.samples.length < sampleLimit) {
|
|
437
|
+
const sample = Object.assign(Object.assign({ id: normalized.eventUid, title: normalized.ruleName || normalized.message, severity: normalized.severityName }, (hit.timestamp ? { createdTime: hit.timestamp } : {})), { eventTime: normalized.time.toISOString() });
|
|
438
|
+
result.samples.push(sample);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
static toRaw(hit) {
|
|
442
|
+
return {
|
|
443
|
+
_id: hit.id,
|
|
444
|
+
_index: hit.index,
|
|
445
|
+
_source: hit.source,
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
/*
|
|
449
|
+
* The rule name for the read-permission message. A document the
|
|
450
|
+
* normalizer cannot read must not turn a successful read into a failed
|
|
451
|
+
* check, so this never throws.
|
|
452
|
+
*/
|
|
453
|
+
static describeHit(hit) {
|
|
454
|
+
try {
|
|
455
|
+
const raw = this.toRaw(hit);
|
|
456
|
+
if (!ElasticSecurityNormalizer.isRecognized(raw)) {
|
|
457
|
+
return "unrecognized document";
|
|
458
|
+
}
|
|
459
|
+
return redactLogString(ElasticSecurityNormalizer.normalize(raw).ruleName || "unnamed");
|
|
460
|
+
}
|
|
461
|
+
catch (_a) {
|
|
462
|
+
return "unreadable document";
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
static skipped(key, name, message) {
|
|
466
|
+
return makeCheck({
|
|
467
|
+
key,
|
|
468
|
+
name,
|
|
469
|
+
status: "skip",
|
|
470
|
+
startedAtMs: Date.now(),
|
|
471
|
+
message,
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
static countLabel(count) {
|
|
475
|
+
return count.exact ? String(count.count) : `${count.count}+`;
|
|
476
|
+
}
|
|
477
|
+
static errorMessage(error) {
|
|
478
|
+
return redactLogString(ConnectorErrorMessage.toMessage(error, { truncate: false }));
|
|
479
|
+
}
|
|
480
|
+
/*
|
|
481
|
+
* Remediation is chosen by HTTP status when the failure carried one,
|
|
482
|
+
* and by the step otherwise (a timeout or a non-JSON body means the URL
|
|
483
|
+
* is not reaching Kibana at all).
|
|
484
|
+
*/
|
|
485
|
+
static remediationFor(error, step) {
|
|
486
|
+
const status = error instanceof ElasticSecurityHttpError ? error.statusCode : null;
|
|
487
|
+
if (status === 401) {
|
|
488
|
+
return "Create a new API key in Kibana (Stack Management > API keys) and paste its base64 encoded value with Update credentials. Keys can be given an expiry; an expired or invalidated key answers 401.";
|
|
489
|
+
}
|
|
490
|
+
if (status === 403) {
|
|
491
|
+
return "Grant the API key's user (or its role descriptors) read and view_index_metadata on the .alerts-security.alerts-<space-id> index and the Kibana Security feature privilege that allows viewing alerts in this space, then test again.";
|
|
492
|
+
}
|
|
493
|
+
if (status === 404) {
|
|
494
|
+
return "Check the Kibana URL and Kibana space. The URL must be the origin Kibana is served from (for example https://kibana.example.com or https://<deployment>.kb.<region>.cloud.es.io), and the space must be the space id, not its display name.";
|
|
495
|
+
}
|
|
496
|
+
if (status === 429) {
|
|
497
|
+
return "Kibana or Elasticsearch is rate limiting. Wait and test again; consider a longer poll interval.";
|
|
498
|
+
}
|
|
499
|
+
if (status !== null && status >= 500) {
|
|
500
|
+
return "Kibana or Elasticsearch failed internally. Check the Kibana server logs and Elasticsearch cluster health, then test again.";
|
|
501
|
+
}
|
|
502
|
+
if (step === "authentication") {
|
|
503
|
+
return "OneUptime could not get a readable status document from Kibana. Check that the Kibana URL is reachable from the OneUptime API and worker processes (a private network needs a self-hosted OneUptime or a network path), uses the right scheme and port, and is not behind a login page or proxy that rewrites responses.";
|
|
504
|
+
}
|
|
505
|
+
if (step === "read-permission") {
|
|
506
|
+
return "Kibana answered the status request but not the detection engine search. Confirm Elastic Security is enabled in this space and that the API key can read detection alerts.";
|
|
507
|
+
}
|
|
508
|
+
return "The alert count request failed after a successful read. Test again; if it persists, check the Kibana server logs for the signals search endpoint.";
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
//# sourceMappingURL=ElasticSecurityConnector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElasticSecurityConnector.js","sourceRoot":"","sources":["../../../../../../../Server/Utils/SecurityEvent/Connectors/ElasticSecurity/ElasticSecurityConnector.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,iDAAiD,CAAC;AAO/E,OAAO,8BAA8B,MAAM,8EAA8E,CAAC;AAC1H,OAAO,EAEL,mCAAmC,GACpC,MA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