Skip to content

[9.0] [EDR Workflows] Fix invalid event filter for cloud workloads (#208974)#209290

Merged
kibanamachine merged 1 commit intoelastic:9.0from
kibanamachine:backport/9.0/pr-208974
Feb 3, 2025
Merged

[9.0] [EDR Workflows] Fix invalid event filter for cloud workloads (#208974)#209290
kibanamachine merged 1 commit intoelastic:9.0from
kibanamachine:backport/9.0/pr-208974

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.0:

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)
@kibanamachine kibanamachine requested review from a team as code owners February 3, 2025 13:30
@kibanamachine kibanamachine requested review from gergoabraham and tomsonpl and removed request for a team February 3, 2025 13:30
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Feb 3, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) February 3, 2025 13:30
@kibanamachine kibanamachine merged commit 5bfcc27 into elastic:9.0 Feb 3, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

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 143.3KB 143.3KB +7.0B
securitySolution 21.4MB 21.4MB +7.0B
total +14.0B
Unknown metric groups

References to deprecated APIs

id before after diff
securitySolution 367 357 -10

cc @gergoabraham

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.

3 participants