@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
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
import APIException from "../../../../../Types/Exception/ApiException";
|
|
2
|
+
import BadDataException from "../../../../../Types/Exception/BadDataException";
|
|
3
|
+
import { redactLogString, redactLogValue } from "../../../LogRedaction";
|
|
4
|
+
export const MICROSOFT_SENTINEL_CLOUD_ENDPOINTS = {
|
|
5
|
+
public: {
|
|
6
|
+
loginBaseUrl: "https://login.microsoftonline.com",
|
|
7
|
+
managementBaseUrl: "https://management.azure.com",
|
|
8
|
+
portalHost: "portal.azure.com",
|
|
9
|
+
},
|
|
10
|
+
usgov: {
|
|
11
|
+
loginBaseUrl: "https://login.microsoftonline.us",
|
|
12
|
+
managementBaseUrl: "https://management.usgovcloudapi.net",
|
|
13
|
+
portalHost: "portal.azure.us",
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export const MICROSOFT_SENTINEL_API_VERSION = "2024-03-01";
|
|
17
|
+
/*
|
|
18
|
+
* Page size for polling. The API allows up to 1000, but each incident is a
|
|
19
|
+
* few kilobytes and the transport caps response size; 50 keeps a page
|
|
20
|
+
* comfortably inside that cap while a 20-request budget still covers a
|
|
21
|
+
* thousand incidents per poll.
|
|
22
|
+
*/
|
|
23
|
+
export const MICROSOFT_SENTINEL_DEFAULT_PAGE_SIZE = 50;
|
|
24
|
+
export const MICROSOFT_SENTINEL_MAX_PAGE_SIZE = 1000;
|
|
25
|
+
export const MICROSOFT_SENTINEL_DEFAULT_REQUEST_TIMEOUT_IN_MS = 60 * 1000;
|
|
26
|
+
// Refresh a cached token this long before Entra says it expires.
|
|
27
|
+
const TOKEN_EXPIRY_SKEW_IN_MS = 60 * 1000;
|
|
28
|
+
const TOKEN_STEP = "token request";
|
|
29
|
+
const INCIDENTS_STEP = "incidents list";
|
|
30
|
+
const GUID_REGEX = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
|
|
31
|
+
/*
|
|
32
|
+
* Entra accepts the tenant as a GUID or as a verified domain name
|
|
33
|
+
* (contoso.onmicrosoft.com). Anything with a slash, a space or a query
|
|
34
|
+
* character is refused because the value is interpolated into a URL path.
|
|
35
|
+
*/
|
|
36
|
+
const TENANT_DOMAIN_REGEX = /^[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$/;
|
|
37
|
+
/*
|
|
38
|
+
* Azure resource group names: 1-90 characters of letters, digits,
|
|
39
|
+
* underscores, hyphens, periods and parentheses, not ending in a period.
|
|
40
|
+
* https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules
|
|
41
|
+
*/
|
|
42
|
+
const RESOURCE_GROUP_REGEX = /^[-\w._()]{1,90}$/;
|
|
43
|
+
/*
|
|
44
|
+
* Workspace name pattern from the incidents API's URI parameter table:
|
|
45
|
+
* ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$, 1-90 characters.
|
|
46
|
+
*/
|
|
47
|
+
const WORKSPACE_NAME_REGEX = /^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$/;
|
|
48
|
+
// The shape DataSourceHttpFetch throws for a non-2xx answer.
|
|
49
|
+
const TRANSPORT_HTTP_ERROR_REGEX = /^Data source responded with HTTP (\d{3}):\s*([\s\S]*)$/;
|
|
50
|
+
export default class MicrosoftSentinelClient {
|
|
51
|
+
constructor(options) {
|
|
52
|
+
this.cachedToken = null;
|
|
53
|
+
this.requestCount = 0;
|
|
54
|
+
MicrosoftSentinelClient.validateTenantId(options.tenantId);
|
|
55
|
+
MicrosoftSentinelClient.validateGuid(options.clientId, "Application (client) ID");
|
|
56
|
+
MicrosoftSentinelClient.validateGuid(options.subscriptionId, "Subscription ID");
|
|
57
|
+
MicrosoftSentinelClient.validateResourceGroup(options.resourceGroup);
|
|
58
|
+
MicrosoftSentinelClient.validateWorkspaceName(options.workspaceName);
|
|
59
|
+
if (!options.clientSecret) {
|
|
60
|
+
throw new BadDataException("Client secret is required.");
|
|
61
|
+
}
|
|
62
|
+
this.options = options;
|
|
63
|
+
this.endpoints = MicrosoftSentinelClient.resolveCloud(options.cloud);
|
|
64
|
+
this.requestTimeoutInMs =
|
|
65
|
+
options.requestTimeoutInMs && options.requestTimeoutInMs > 0
|
|
66
|
+
? options.requestTimeoutInMs
|
|
67
|
+
: MICROSOFT_SENTINEL_DEFAULT_REQUEST_TIMEOUT_IN_MS;
|
|
68
|
+
}
|
|
69
|
+
// Every outbound request this instance made, token requests included.
|
|
70
|
+
getRequestCount() {
|
|
71
|
+
return this.requestCount;
|
|
72
|
+
}
|
|
73
|
+
/*
|
|
74
|
+
* ---------------------------------------------------------------------
|
|
75
|
+
* Validation (shared with the connector's validateSettings)
|
|
76
|
+
* ---------------------------------------------------------------------
|
|
77
|
+
*/
|
|
78
|
+
static isCloud(value) {
|
|
79
|
+
return value === "public" || value === "usgov";
|
|
80
|
+
}
|
|
81
|
+
static resolveCloud(cloud) {
|
|
82
|
+
const normalized = (cloud || "public").trim().toLowerCase();
|
|
83
|
+
if (!MicrosoftSentinelClient.isCloud(normalized)) {
|
|
84
|
+
throw new BadDataException(`Cloud must be "public" or "usgov"; received "${normalized}".`);
|
|
85
|
+
}
|
|
86
|
+
return MICROSOFT_SENTINEL_CLOUD_ENDPOINTS[normalized];
|
|
87
|
+
}
|
|
88
|
+
static validateGuid(value, label) {
|
|
89
|
+
if (!value || !GUID_REGEX.test(value.trim())) {
|
|
90
|
+
throw new BadDataException(`${label} must be a GUID such as 00000000-0000-0000-0000-000000000000.`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
static validateTenantId(value) {
|
|
94
|
+
const trimmed = (value || "").trim();
|
|
95
|
+
if (!trimmed ||
|
|
96
|
+
(!GUID_REGEX.test(trimmed) && !TENANT_DOMAIN_REGEX.test(trimmed))) {
|
|
97
|
+
throw new BadDataException("Directory (tenant) ID must be the tenant GUID or a verified tenant domain such as contoso.onmicrosoft.com.");
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
static validateResourceGroup(value) {
|
|
101
|
+
const trimmed = (value || "").trim();
|
|
102
|
+
if (!trimmed ||
|
|
103
|
+
!RESOURCE_GROUP_REGEX.test(trimmed) ||
|
|
104
|
+
trimmed.endsWith(".")) {
|
|
105
|
+
throw new BadDataException("Resource group must be 1-90 characters of letters, digits, underscores, hyphens, periods or parentheses and must not end with a period.");
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
static validateWorkspaceName(value) {
|
|
109
|
+
const trimmed = (value || "").trim();
|
|
110
|
+
if (!trimmed ||
|
|
111
|
+
trimmed.length > 90 ||
|
|
112
|
+
!WORKSPACE_NAME_REGEX.test(trimmed)) {
|
|
113
|
+
throw new BadDataException("Workspace name must be 3-90 letters, digits or hyphens, starting and ending with a letter or digit.");
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/*
|
|
117
|
+
* ---------------------------------------------------------------------
|
|
118
|
+
* URLs
|
|
119
|
+
* ---------------------------------------------------------------------
|
|
120
|
+
*/
|
|
121
|
+
getTokenUrl() {
|
|
122
|
+
return `${this.endpoints.loginBaseUrl}/${encodeURIComponent(this.options.tenantId.trim())}/oauth2/v2.0/token`;
|
|
123
|
+
}
|
|
124
|
+
/*
|
|
125
|
+
* The ARM resource for the token: the management host with the ".default"
|
|
126
|
+
* suffix, so the same client works in Azure Government where ARM is a
|
|
127
|
+
* different resource (https://management.usgovcloudapi.net/.default).
|
|
128
|
+
*/
|
|
129
|
+
getTokenScope() {
|
|
130
|
+
return `${this.endpoints.managementBaseUrl}/.default`;
|
|
131
|
+
}
|
|
132
|
+
getIncidentsBaseUrl() {
|
|
133
|
+
return (`${this.endpoints.managementBaseUrl}/subscriptions/${encodeURIComponent(this.options.subscriptionId.trim())}` +
|
|
134
|
+
`/resourceGroups/${encodeURIComponent(this.options.resourceGroup.trim())}` +
|
|
135
|
+
`/providers/Microsoft.OperationalInsights/workspaces/${encodeURIComponent(this.options.workspaceName.trim())}` +
|
|
136
|
+
`/providers/Microsoft.SecurityInsights/incidents`);
|
|
137
|
+
}
|
|
138
|
+
/*
|
|
139
|
+
* First-page URL for incidents CREATED in [startTime, endTime), oldest
|
|
140
|
+
* first. Creation time is the poll basis (see Connectors/Types.ts): a
|
|
141
|
+
* cursor over createdTimeUtc never skips an incident whose alerts
|
|
142
|
+
* describe activity from hours earlier.
|
|
143
|
+
*/
|
|
144
|
+
buildIncidentsUrl(data) {
|
|
145
|
+
const top = MicrosoftSentinelClient.clampPageSize(data.top);
|
|
146
|
+
const url = new URL(this.getIncidentsBaseUrl());
|
|
147
|
+
url.searchParams.set("api-version", MICROSOFT_SENTINEL_API_VERSION);
|
|
148
|
+
url.searchParams.set("$filter", `(properties/createdTimeUtc ge ${data.startTime.toISOString()}) and (properties/createdTimeUtc lt ${data.endTime.toISOString()})`);
|
|
149
|
+
url.searchParams.set("$orderby", "properties/createdTimeUtc asc");
|
|
150
|
+
url.searchParams.set("$top", String(top));
|
|
151
|
+
return url.toString();
|
|
152
|
+
}
|
|
153
|
+
static clampPageSize(value) {
|
|
154
|
+
if (!value || !Number.isFinite(value)) {
|
|
155
|
+
return MICROSOFT_SENTINEL_DEFAULT_PAGE_SIZE;
|
|
156
|
+
}
|
|
157
|
+
return Math.min(MICROSOFT_SENTINEL_MAX_PAGE_SIZE, Math.max(1, Math.floor(value)));
|
|
158
|
+
}
|
|
159
|
+
/*
|
|
160
|
+
* ---------------------------------------------------------------------
|
|
161
|
+
* Token
|
|
162
|
+
* ---------------------------------------------------------------------
|
|
163
|
+
*/
|
|
164
|
+
async getAccessToken() {
|
|
165
|
+
return (await this.acquireToken()).accessToken;
|
|
166
|
+
}
|
|
167
|
+
async acquireToken() {
|
|
168
|
+
if (this.cachedToken &&
|
|
169
|
+
this.cachedToken.expiresAtMs - TOKEN_EXPIRY_SKEW_IN_MS > Date.now()) {
|
|
170
|
+
return { accessToken: this.cachedToken.accessToken, fromCache: true };
|
|
171
|
+
}
|
|
172
|
+
const response = await this.send({
|
|
173
|
+
method: "POST",
|
|
174
|
+
url: this.getTokenUrl(),
|
|
175
|
+
headers: { Accept: "application/json" },
|
|
176
|
+
formUrlEncoded: true,
|
|
177
|
+
body: {
|
|
178
|
+
grant_type: "client_credentials",
|
|
179
|
+
client_id: this.options.clientId.trim(),
|
|
180
|
+
client_secret: this.options.clientSecret,
|
|
181
|
+
scope: this.getTokenScope(),
|
|
182
|
+
},
|
|
183
|
+
}, TOKEN_STEP);
|
|
184
|
+
const body = this.requireJsonObject(response, TOKEN_STEP);
|
|
185
|
+
const accessToken = body["access_token"];
|
|
186
|
+
if (typeof accessToken !== "string" || !accessToken) {
|
|
187
|
+
throw new APIException(`Microsoft Sentinel ${TOKEN_STEP} returned no access_token: ${MicrosoftSentinelClient.describeBody(response)}`);
|
|
188
|
+
}
|
|
189
|
+
const expiresInRaw = body["expires_in"];
|
|
190
|
+
const expiresInSeconds = typeof expiresInRaw === "number"
|
|
191
|
+
? expiresInRaw
|
|
192
|
+
: Number(expiresInRaw || 0);
|
|
193
|
+
this.cachedToken = {
|
|
194
|
+
accessToken,
|
|
195
|
+
expiresAtMs: Date.now() +
|
|
196
|
+
(Number.isFinite(expiresInSeconds) && expiresInSeconds > 0
|
|
197
|
+
? expiresInSeconds * 1000
|
|
198
|
+
: 5 * 60 * 1000),
|
|
199
|
+
};
|
|
200
|
+
return { accessToken, fromCache: false };
|
|
201
|
+
}
|
|
202
|
+
/*
|
|
203
|
+
* ---------------------------------------------------------------------
|
|
204
|
+
* Incidents
|
|
205
|
+
* ---------------------------------------------------------------------
|
|
206
|
+
*/
|
|
207
|
+
/*
|
|
208
|
+
* One page of incidents. Pass `nextLink` from the previous page to
|
|
209
|
+
* continue; the window parameters are ignored then because ARM encodes
|
|
210
|
+
* the whole query (filter, order, skip token) inside the link.
|
|
211
|
+
*/
|
|
212
|
+
async listIncidents(data) {
|
|
213
|
+
const url = data.nextLink
|
|
214
|
+
? this.assertNextLink(data.nextLink)
|
|
215
|
+
: this.buildIncidentsUrl({
|
|
216
|
+
startTime: data.startTime,
|
|
217
|
+
endTime: data.endTime,
|
|
218
|
+
top: data.top || MICROSOFT_SENTINEL_DEFAULT_PAGE_SIZE,
|
|
219
|
+
});
|
|
220
|
+
let token = await this.acquireToken();
|
|
221
|
+
let response = await this.sendRaw(MicrosoftSentinelClient.incidentsRequest(url, token.accessToken), INCIDENTS_STEP);
|
|
222
|
+
/*
|
|
223
|
+
* A cached token can be revoked (secret rotated, app registration
|
|
224
|
+
* removed) or expire between pages of one run. One retry with a
|
|
225
|
+
* freshly minted token separates "the token went stale" from "ARM does
|
|
226
|
+
* not accept tokens from this app" without ever looping: a fresh
|
|
227
|
+
* token that is refused fails below like any other 401.
|
|
228
|
+
*/
|
|
229
|
+
if (response.statusCode === 401 && token.fromCache) {
|
|
230
|
+
this.cachedToken = null;
|
|
231
|
+
token = await this.acquireToken();
|
|
232
|
+
response = await this.sendRaw(MicrosoftSentinelClient.incidentsRequest(url, token.accessToken), INCIDENTS_STEP);
|
|
233
|
+
}
|
|
234
|
+
this.assertOk(response, INCIDENTS_STEP);
|
|
235
|
+
const body = this.requireJsonObject(response, INCIDENTS_STEP);
|
|
236
|
+
const value = body["value"];
|
|
237
|
+
if (!Array.isArray(value)) {
|
|
238
|
+
throw new APIException(`Microsoft Sentinel ${INCIDENTS_STEP} returned an unrecognized response shape: expected a "value" array, received keys ${MicrosoftSentinelClient.describeKeys(body)}.`);
|
|
239
|
+
}
|
|
240
|
+
const incidents = value.filter((item) => {
|
|
241
|
+
return Boolean(item && typeof item === "object" && !Array.isArray(item));
|
|
242
|
+
});
|
|
243
|
+
const nextLinkRaw = body["nextLink"];
|
|
244
|
+
const nextLink = typeof nextLinkRaw === "string" && nextLinkRaw.trim()
|
|
245
|
+
? nextLinkRaw.trim()
|
|
246
|
+
: null;
|
|
247
|
+
return { incidents, nextLink };
|
|
248
|
+
}
|
|
249
|
+
/*
|
|
250
|
+
* Bounded availability count: one page of `top` incidents created in the
|
|
251
|
+
* window plus whether a further page exists. Never walks the pages — a
|
|
252
|
+
* count is for the test checklist, not for import.
|
|
253
|
+
*/
|
|
254
|
+
async countIncidentsCreated(data) {
|
|
255
|
+
const page = await this.listIncidents({
|
|
256
|
+
startTime: data.startTime,
|
|
257
|
+
endTime: data.endTime,
|
|
258
|
+
top: data.top || MICROSOFT_SENTINEL_DEFAULT_PAGE_SIZE,
|
|
259
|
+
});
|
|
260
|
+
return {
|
|
261
|
+
count: page.incidents.length,
|
|
262
|
+
hasMore: page.nextLink !== null,
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
/*
|
|
266
|
+
* ---------------------------------------------------------------------
|
|
267
|
+
* Transport plumbing
|
|
268
|
+
* ---------------------------------------------------------------------
|
|
269
|
+
*/
|
|
270
|
+
static incidentsRequest(url, accessToken) {
|
|
271
|
+
return {
|
|
272
|
+
method: "GET",
|
|
273
|
+
url,
|
|
274
|
+
headers: {
|
|
275
|
+
Authorization: `Bearer ${accessToken}`,
|
|
276
|
+
Accept: "application/json",
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
/*
|
|
281
|
+
* nextLink is server-supplied. It is followed only when it stays on the
|
|
282
|
+
* configured ARM host over https: a link elsewhere would let a
|
|
283
|
+
* compromised or misconfigured endpoint steer the bearer token to a
|
|
284
|
+
* host of its choosing. The egress guard would still vet the host, but
|
|
285
|
+
* the token must not leave ARM regardless.
|
|
286
|
+
*/
|
|
287
|
+
assertNextLink(nextLink) {
|
|
288
|
+
let parsed;
|
|
289
|
+
try {
|
|
290
|
+
parsed = new URL(nextLink);
|
|
291
|
+
}
|
|
292
|
+
catch (_a) {
|
|
293
|
+
throw new APIException(`Microsoft Sentinel ${INCIDENTS_STEP} returned an unusable nextLink: ${redactLogString(nextLink.substring(0, 200))}`);
|
|
294
|
+
}
|
|
295
|
+
const expected = new URL(this.endpoints.managementBaseUrl);
|
|
296
|
+
if (parsed.protocol !== "https:" || parsed.host !== expected.host) {
|
|
297
|
+
throw new APIException(`Microsoft Sentinel ${INCIDENTS_STEP} returned a nextLink on an unexpected host: ${redactLogString(parsed.host)} (expected ${expected.host}).`);
|
|
298
|
+
}
|
|
299
|
+
return parsed.toString();
|
|
300
|
+
}
|
|
301
|
+
// Send and require a 2xx answer.
|
|
302
|
+
async send(request, stepLabel) {
|
|
303
|
+
const response = await this.sendRaw(request, stepLabel);
|
|
304
|
+
this.assertOk(response, stepLabel);
|
|
305
|
+
return response;
|
|
306
|
+
}
|
|
307
|
+
/*
|
|
308
|
+
* Send and return whatever status came back, so a caller can react to a
|
|
309
|
+
* 401 before the status is turned into an error. Transport failures
|
|
310
|
+
* that carry an HTTP status are folded into a response; everything else
|
|
311
|
+
* (connection refused, the transport's own timeout, the local deadline)
|
|
312
|
+
* throws with the step in the prefix.
|
|
313
|
+
*/
|
|
314
|
+
async sendRaw(request, stepLabel) {
|
|
315
|
+
this.requestCount++;
|
|
316
|
+
const timeoutSeconds = Math.max(1, Math.round(this.requestTimeoutInMs / 1000));
|
|
317
|
+
let timer = undefined;
|
|
318
|
+
const deadline = new Promise((_resolve, reject) => {
|
|
319
|
+
timer = setTimeout(() => {
|
|
320
|
+
reject(new APIException(`Microsoft Sentinel ${stepLabel} timed out after ${timeoutSeconds} seconds with no response.`));
|
|
321
|
+
}, this.requestTimeoutInMs);
|
|
322
|
+
});
|
|
323
|
+
try {
|
|
324
|
+
return await Promise.race([
|
|
325
|
+
this.options.transport(Object.assign(Object.assign({}, request), { timeoutInMs: this.requestTimeoutInMs })),
|
|
326
|
+
deadline,
|
|
327
|
+
]);
|
|
328
|
+
}
|
|
329
|
+
catch (error) {
|
|
330
|
+
return this.recoverResponse(error, stepLabel);
|
|
331
|
+
}
|
|
332
|
+
finally {
|
|
333
|
+
clearTimeout(timer);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
assertOk(response, stepLabel) {
|
|
337
|
+
if (response.statusCode >= 200 && response.statusCode < 300) {
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
throw new APIException(`Microsoft Sentinel ${stepLabel} failed (HTTP ${response.statusCode}): ${MicrosoftSentinelClient.describeBody(response)}${MicrosoftSentinelClient.hintForFailure(stepLabel, response.statusCode, response.bodyJson)}`);
|
|
341
|
+
}
|
|
342
|
+
/*
|
|
343
|
+
* The production transport does not return error statuses — it throws
|
|
344
|
+
* `Data source responded with HTTP <status>: <body>`. Recover the status
|
|
345
|
+
* so the operator sees the same "(HTTP 403)" prefix whichever transport
|
|
346
|
+
* is behind the client, and the docs' troubleshooting keys stay true.
|
|
347
|
+
*/
|
|
348
|
+
recoverResponse(error, stepLabel) {
|
|
349
|
+
if (error instanceof APIException) {
|
|
350
|
+
throw error;
|
|
351
|
+
}
|
|
352
|
+
const message = error instanceof Error ? error.message : String(error || "");
|
|
353
|
+
const match = message.match(TRANSPORT_HTTP_ERROR_REGEX);
|
|
354
|
+
if (match) {
|
|
355
|
+
const bodyText = match[2] || "";
|
|
356
|
+
let bodyJson = undefined;
|
|
357
|
+
try {
|
|
358
|
+
bodyJson = JSON.parse(bodyText);
|
|
359
|
+
}
|
|
360
|
+
catch (_a) {
|
|
361
|
+
bodyJson = undefined;
|
|
362
|
+
}
|
|
363
|
+
return { statusCode: Number(match[1]), bodyText, bodyJson };
|
|
364
|
+
}
|
|
365
|
+
throw new APIException(`Microsoft Sentinel ${stepLabel} failed: ${redactLogString(message || "unknown transport error").substring(0, 500)}`);
|
|
366
|
+
}
|
|
367
|
+
requireJsonObject(response, stepLabel) {
|
|
368
|
+
const body = response.bodyJson;
|
|
369
|
+
if (body === undefined || body === null) {
|
|
370
|
+
throw new APIException(`Microsoft Sentinel ${stepLabel} returned a non-JSON body: ${redactLogString((response.bodyText || "").substring(0, 200))}`);
|
|
371
|
+
}
|
|
372
|
+
if (typeof body !== "object" || Array.isArray(body)) {
|
|
373
|
+
throw new APIException(`Microsoft Sentinel ${stepLabel} returned an unrecognized response shape: expected a JSON object, received ${Array.isArray(body) ? "an array" : typeof body}.`);
|
|
374
|
+
}
|
|
375
|
+
return body;
|
|
376
|
+
}
|
|
377
|
+
/*
|
|
378
|
+
* A body excerpt safe to store: structurally redacted when it parsed as
|
|
379
|
+
* JSON (so any `access_token`/`client_secret` key is masked whatever its
|
|
380
|
+
* value looks like), textually redacted otherwise, and clipped.
|
|
381
|
+
*/
|
|
382
|
+
static describeBody(response) {
|
|
383
|
+
if (response.bodyJson !== undefined && response.bodyJson !== null) {
|
|
384
|
+
const redacted = redactLogValue(response.bodyJson);
|
|
385
|
+
let serialized = "";
|
|
386
|
+
try {
|
|
387
|
+
serialized = JSON.stringify(redacted);
|
|
388
|
+
}
|
|
389
|
+
catch (_a) {
|
|
390
|
+
serialized = "[unserializable body]";
|
|
391
|
+
}
|
|
392
|
+
return serialized.substring(0, 500);
|
|
393
|
+
}
|
|
394
|
+
const text = (response.bodyText || "").trim();
|
|
395
|
+
return text
|
|
396
|
+
? redactLogString(text).substring(0, 500)
|
|
397
|
+
: "(empty response body)";
|
|
398
|
+
}
|
|
399
|
+
static describeKeys(body) {
|
|
400
|
+
const keys = Object.keys(body).slice(0, 10);
|
|
401
|
+
return keys.length ? keys.join(", ") : "(none)";
|
|
402
|
+
}
|
|
403
|
+
/*
|
|
404
|
+
* What the status most likely means, in the operator's terms. Entra
|
|
405
|
+
* returns an `error` code with an AADSTS-prefixed description; ARM
|
|
406
|
+
* returns { error: { code, message } }. The hint never repeats the body.
|
|
407
|
+
*/
|
|
408
|
+
static hintForFailure(stepLabel, status, bodyJson) {
|
|
409
|
+
const hint = MicrosoftSentinelClient.hintText(stepLabel, status, bodyJson);
|
|
410
|
+
return hint ? ` — ${hint}` : "";
|
|
411
|
+
}
|
|
412
|
+
static hintText(stepLabel, status, bodyJson) {
|
|
413
|
+
const body = bodyJson && typeof bodyJson === "object" && !Array.isArray(bodyJson)
|
|
414
|
+
? bodyJson
|
|
415
|
+
: null;
|
|
416
|
+
if (stepLabel === TOKEN_STEP) {
|
|
417
|
+
const errorCode = body ? String(body["error"] || "") : "";
|
|
418
|
+
const description = body
|
|
419
|
+
? String(body["error_description"] || "")
|
|
420
|
+
: "";
|
|
421
|
+
/*
|
|
422
|
+
* AADSTS7000215 is "invalid client secret provided", AADSTS7000216 is
|
|
423
|
+
* "client secret is required" — both mean the secret, not the ids.
|
|
424
|
+
*/
|
|
425
|
+
if (errorCode === "invalid_client" ||
|
|
426
|
+
description.includes("AADSTS7000215") ||
|
|
427
|
+
description.includes("AADSTS7000216")) {
|
|
428
|
+
return "Microsoft Entra rejected the client secret. It is wrong, expired, or belongs to a different app registration; create a new secret under Certificates & secrets and update the connection.";
|
|
429
|
+
}
|
|
430
|
+
// AADSTS700016: application with identifier ... was not found in the directory.
|
|
431
|
+
if (errorCode === "unauthorized_client" ||
|
|
432
|
+
description.includes("AADSTS700016")) {
|
|
433
|
+
return "The Application (client) ID was not found in this tenant. Check the Directory (tenant) ID and Application (client) ID on the app registration's Overview page.";
|
|
434
|
+
}
|
|
435
|
+
// AADSTS90002: tenant not found.
|
|
436
|
+
if (description.includes("AADSTS90002") || status === 404) {
|
|
437
|
+
return "The Directory (tenant) ID does not name an existing tenant. Copy it from the app registration's Overview page.";
|
|
438
|
+
}
|
|
439
|
+
if (status === 400 || status === 401) {
|
|
440
|
+
return "Microsoft Entra refused the client-credentials request. Check the Directory (tenant) ID, Application (client) ID and client secret.";
|
|
441
|
+
}
|
|
442
|
+
if (status === 429) {
|
|
443
|
+
return "Microsoft Entra is throttling token requests; the next poll retries.";
|
|
444
|
+
}
|
|
445
|
+
if (status >= 500) {
|
|
446
|
+
return "Microsoft Entra reported a server-side problem; the next poll retries.";
|
|
447
|
+
}
|
|
448
|
+
return "";
|
|
449
|
+
}
|
|
450
|
+
const armCode = body
|
|
451
|
+
? String((body["error"] || {})["code"] || "")
|
|
452
|
+
: "";
|
|
453
|
+
if (status === 401) {
|
|
454
|
+
return "Azure Resource Manager rejected the access token. The token was issued for the wrong cloud or the app registration was removed; confirm the Cloud setting matches where the workspace lives.";
|
|
455
|
+
}
|
|
456
|
+
if (status === 403 || armCode === "AuthorizationFailed") {
|
|
457
|
+
return "The app registration is not allowed to read incidents. Assign it the Microsoft Sentinel Reader role on the resource group that contains the workspace (Access control (IAM) > Add role assignment) and wait a few minutes for the assignment to propagate.";
|
|
458
|
+
}
|
|
459
|
+
if (status === 404) {
|
|
460
|
+
return "No workspace matched Subscription ID, Resource group and Workspace name, or Microsoft Sentinel is not enabled on it. Copy the values from the workspace's Overview page in the Azure portal.";
|
|
461
|
+
}
|
|
462
|
+
if (status === 429) {
|
|
463
|
+
return "Azure Resource Manager is throttling requests for this subscription; the next poll retries.";
|
|
464
|
+
}
|
|
465
|
+
if (status >= 500) {
|
|
466
|
+
return "Azure Resource Manager reported a server-side problem; the next poll retries.";
|
|
467
|
+
}
|
|
468
|
+
if (status === 400) {
|
|
469
|
+
return "Azure Resource Manager rejected the query. Report this message to OneUptime support; the incidents request is built by the connector, not from your settings.";
|
|
470
|
+
}
|
|
471
|
+
return "";
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
//# sourceMappingURL=MicrosoftSentinelClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MicrosoftSentinelClient.js","sourceRoot":"","sources":["../../../../../../../Server/Utils/SecurityEvent/Connectors/MicrosoftSentinel/MicrosoftSentinelClient.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,gBAAgB,MAAM,iDAAiD,CAAC;AAM/E,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AA4CxE,MAAM,CAAC,MAAM,kCAAkC,GAG3C;IACF,MAAM,EAAE;QACN,YAAY,EAAE,mCAAmC;QACjD,iBAAiB,EAAE,8BAA8B;QACjD,UAAU,EAAE,kBAAkB;KAC/B;IACD,KAAK,EAAE;QACL,YAAY,EAAE,kCAAkC;QAChD,iBAAiB,EAAE,sCAAsC;QACzD,UAAU,EAAE,iBAAiB;KAC9B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAW,YAAY,CAAC;AAEnE;;;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