Skip to content

[8.16] [EDR Workflows] Fix invalid event filter for cloud workloads (#208974)#209330

Merged
gergoabraham merged 2 commits intoelastic:8.16from
gergoabraham:backport/8.16/pr-208974
Feb 4, 2025
Merged

[8.16] [EDR Workflows] Fix invalid event filter for cloud workloads (#208974)#209330
gergoabraham merged 2 commits intoelastic:8.16from
gergoabraham:backport/8.16/pr-208974

Conversation

@gergoabraham
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.16:

Questions ?

Please refer to the Backport tool documentation

…#208974)

## Summary

Fixes the bug of the invalid event filter created automatically when
creating a cloud workloads endpoint integration. The issue was a type
issue: `undefined` or an object is expected, instead an array was
passed.

To make sure this does not happen again, the type for the `meta` field
was updated from the deprecated `t.object` to `t.UnknownRecord`, which
is able to catch similar issues as a type error:
ca0c01b

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 158a077)

# Conflicts:
#	x-pack/plugins/security_solution/server/fleet_integration/fleet_integration.test.ts
@gergoabraham gergoabraham added the backport This PR is a backport of another PR label Feb 3, 2025
@gergoabraham gergoabraham enabled auto-merge (squash) February 3, 2025 15:08
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Feb 3, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #80 / Fleet Endpoints Integrations inputs_with_standalone_docker_agent "before all" hook for "generate a valid config for standalone agents"
  • [job] [logs] FTR Configs #80 / Fleet Endpoints Integrations inputs_with_standalone_docker_agent "before all" hook for "generate a valid config for standalone agents"
  • [job] [logs] Jest Tests #3 / SolutionFilter when the owner is a single solution should call onChange with selected solution id when no option selected yet

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
lists 145.1KB 145.1KB +7.0B
securitySolution 19.8MB 19.8MB +7.0B
total +14.0B
Unknown metric groups

References to deprecated APIs

id before after diff
securitySolution 450 440 -10

History

@gergoabraham
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@gergoabraham gergoabraham merged commit 51a908c into elastic:8.16 Feb 4, 2025
@gergoabraham gergoabraham deleted the backport/8.16/pr-208974 branch February 4, 2025 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants