Skip to content

[9.4] [Osquery] FF Enabled for Osquery 9.4 rework#258935

Merged
tomsonpl merged 27 commits intoelastic:9.4from
szwarckonrad:osquery-rework-ff-on
Apr 11, 2026
Merged

[9.4] [Osquery] FF Enabled for Osquery 9.4 rework#258935
tomsonpl merged 27 commits intoelastic:9.4from
szwarckonrad:osquery-rework-ff-on

Conversation

@szwarckonrad
Copy link
Copy Markdown
Contributor

Do not merge.
Testing CI and getting ready for GA.

szwarckonrad and others added 17 commits March 20, 2026 15:37
The unified history table's mapLiveHitToRow mapper was not populating
replay parameters (savedQueryId, timeout, ecsMapping, agentIds, agentAll,
agentPlatforms, agentPolicyIds) from the raw ES hit data. This caused the
"Run query" button in the history table to create a new query without the
original saved query reference, timeout, agent selection, or ECS mappings.
# Conflicts:
#	x-pack/platform/plugins/shared/osquery/server/routes/unified_history/map_live_hit_to_row.ts
@szwarckonrad szwarckonrad self-assigned this Mar 24, 2026
@szwarckonrad szwarckonrad added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:Defend Workflows “EDR Workflows” sub-team of Security Solution labels Mar 24, 2026
@tomsonpl
Copy link
Copy Markdown
Contributor

tomsonpl commented Apr 2, 2026

/ci

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Low

checkActionItemsInResults({
lens: true,
discover: true,
cases: true,
timeline: false,
});

The test calls checkActionItemsInResults with lens: true, discover: true, and timeline: false, but the function was refactored to only destructure and validate cases. The assertions for lens, discover, and timeline are silently skipped, so the test passes regardless of whether those UI elements are correctly shown or hidden.

Consider either restoring the parameter assertions in checkActionItemsInResults, or updating the test to remove the unused parameters if validating those action items is no longer required.

Suggested change
checkActionItemsInResults({
cases: true,
});
🤖 Copy this AI Prompt to have your agent fix this:
In file x-pack/platform/plugins/shared/osquery/cypress/e2e/roles/t1_and_t2_analyst.cy.ts around lines 68-73:

The test calls `checkActionItemsInResults` with `lens: true`, `discover: true`, and `timeline: false`, but the function was refactored to only destructure and validate `cases`. The assertions for `lens`, `discover`, and `timeline` are silently skipped, so the test passes regardless of whether those UI elements are correctly shown or hidden.

Consider either restoring the parameter assertions in `checkActionItemsInResults`, or updating the test to remove the unused parameters if validating those action items is no longer required.

Evidence trail:
x-pack/platform/plugins/shared/osquery/cypress/e2e/roles/t1_and_t2_analyst.cy.ts lines 68-73 (test calling checkActionItemsInResults with lens, discover, cases, timeline parameters); x-pack/platform/plugins/shared/osquery/cypress/tasks/live_query.ts lines 174-185 (function definition showing only `cases` is destructured and used, while discover, lens, timeline are in type signature but ignored)

@tomsonpl
Copy link
Copy Markdown
Contributor

tomsonpl commented Apr 8, 2026

/ci

@tomsonpl
Copy link
Copy Markdown
Contributor

tomsonpl commented Apr 8, 2026

/ci

@tomsonpl
Copy link
Copy Markdown
Contributor

tomsonpl commented Apr 8, 2026

/ci

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #2 / serverless search UI Rule details Edit rule with deleted connector should show and update deleted connectors when there are existing connectors of the same type

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
osquery 1.3MB 1.3MB +104.0B

History

cc @szwarckonrad

@tomsonpl tomsonpl marked this pull request as ready for review April 9, 2026 09:54
@tomsonpl tomsonpl requested a review from a team as a code owner April 9, 2026 09:54
@tomsonpl tomsonpl requested review from parkiino and pzl April 9, 2026 09:54
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

Copy link
Copy Markdown
Contributor

@tomsonpl tomsonpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@szwarckonrad szwarckonrad added v9.4.0 backport:version Backport to applied version labels and removed backport:skip This PR does not require backporting labels Apr 10, 2026
@tomsonpl tomsonpl changed the base branch from main to 9.4 April 11, 2026 07:33
@tomsonpl tomsonpl merged commit ecb6cec into elastic:9.4 Apr 11, 2026
24 checks passed
@tomsonpl tomsonpl changed the title [DO NOT MERGE][Osquery] FF Enabled for Osquery 9.4 rework [9.4] [Osquery] FF Enabled for Osquery 9.4 rework Apr 11, 2026
tomsonpl added a commit to tomsonpl/kibana that referenced this pull request Apr 13, 2026
…8935)

Do not merge.
Testing CI and getting ready for GA.

---------

Co-authored-by: Tomasz Ciecierski <tomasz.ciecierski@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants