You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[9.2] [Privmon] Deletion Detection and Monitoring Sources FTR Test Updates (#240051) (#240853)
# Backport
This will backport the following commits from `main` to `9.2`:
- [[Privmon] Deletion Detection and Monitoring Sources FTR Test Updates
(#240051)](#240051)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Charlotte Alexandra
Wilson","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-10-27T15:39:27Z","message":"[Privmon]
Deletion Detection and Monitoring Sources FTR Test Updates
(#240051)\n\nThis PR introduces FTR Testing for deletion detection in
the privileged\nuser monitoring, integrations sync, feature.\n\n### Key
Updates: \n\n- Coverage to test when a user is deleted, they are
correctly handled\nduring a full sync window - labels updated,
privileged status set to\nfalse. This also tests the full sync detection
functionality.\n- Coverage to test the case of start + complete window
outside of the\ncurrent batch of users, soft deleting ALL users.\n-
Updated utilities functions with some common helpers and constants
to\ncreate the full sync window, delete integrations user and reduce
hard\ncoded values.\n- Updated default entity source tests to include
AD.\n\n### 🐞 Bugs Found & Fixed During Test Creation\n\n**First-run
handling:**\n- Previously, the fallback logic inside “detect full sync”
didn’t handle\nthe first run correctly.\n- When the SO had no previous
sync, it treated `fullSync ===\nlastCompletedEvent`\n- and skipped the
first full-sync run.\n- This has been fixed to ensure the initial run
executes properly.\n\n**The fix - Last full sync source**\n* Updated
lastFullSync to read only from the Saved Object (SO).\n* The checks for
a completed marker now live inside the deletion\ndetection logic
itself.","sha":"41a5600a8278e28aab5e14084814a354b62ead39","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Entity
Analytics","backport:version","v9.2.0","v9.3.0"],"title":"[Privmon]
Deletion Detection and Monitoring Sources FTR Test
Updates","number":240051,"url":"https://github.com/elastic/kibana/pull/240051","mergeCommit":{"message":"[Privmon]
Deletion Detection and Monitoring Sources FTR Test Updates
(#240051)\n\nThis PR introduces FTR Testing for deletion detection in
the privileged\nuser monitoring, integrations sync, feature.\n\n### Key
Updates: \n\n- Coverage to test when a user is deleted, they are
correctly handled\nduring a full sync window - labels updated,
privileged status set to\nfalse. This also tests the full sync detection
functionality.\n- Coverage to test the case of start + complete window
outside of the\ncurrent batch of users, soft deleting ALL users.\n-
Updated utilities functions with some common helpers and constants
to\ncreate the full sync window, delete integrations user and reduce
hard\ncoded values.\n- Updated default entity source tests to include
AD.\n\n### 🐞 Bugs Found & Fixed During Test Creation\n\n**First-run
handling:**\n- Previously, the fallback logic inside “detect full sync”
didn’t handle\nthe first run correctly.\n- When the SO had no previous
sync, it treated `fullSync ===\nlastCompletedEvent`\n- and skipped the
first full-sync run.\n- This has been fixed to ensure the initial run
executes properly.\n\n**The fix - Last full sync source**\n* Updated
lastFullSync to read only from the Saved Object (SO).\n* The checks for
a completed marker now live inside the deletion\ndetection logic
itself.","sha":"41a5600a8278e28aab5e14084814a354b62ead39"}},"sourceBranch":"main","suggestedTargetBranches":["9.2"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/240051","number":240051,"mergeCommit":{"message":"[Privmon]
Deletion Detection and Monitoring Sources FTR Test Updates
(#240051)\n\nThis PR introduces FTR Testing for deletion detection in
the privileged\nuser monitoring, integrations sync, feature.\n\n### Key
Updates: \n\n- Coverage to test when a user is deleted, they are
correctly handled\nduring a full sync window - labels updated,
privileged status set to\nfalse. This also tests the full sync detection
functionality.\n- Coverage to test the case of start + complete window
outside of the\ncurrent batch of users, soft deleting ALL users.\n-
Updated utilities functions with some common helpers and constants
to\ncreate the full sync window, delete integrations user and reduce
hard\ncoded values.\n- Updated default entity source tests to include
AD.\n\n### 🐞 Bugs Found & Fixed During Test Creation\n\n**First-run
handling:**\n- Previously, the fallback logic inside “detect full sync”
didn’t handle\nthe first run correctly.\n- When the SO had no previous
sync, it treated `fullSync ===\nlastCompletedEvent`\n- and skipped the
first full-sync run.\n- This has been fixed to ensure the initial run
executes properly.\n\n**The fix - Last full sync source**\n* Updated
lastFullSync to read only from the Saved Object (SO).\n* The checks for
a completed marker now live inside the deletion\ndetection logic
itself.","sha":"41a5600a8278e28aab5e14084814a354b62ead39"}}]}]
BACKPORT-->
Co-authored-by: Charlotte Alexandra Wilson <[email protected]>
Copy file name to clipboardExpand all lines: x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/privilege_monitoring/data_sources/sync/integrations/sync_markers/sync_markers.ts
Copy file name to clipboardExpand all lines: x-pack/solutions/security/test/security_solution_api_integration/test_suites/entity_analytics/monitoring/trial_license_complete_tier/engine.ts
0 commit comments