Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] [Security Solution][Detection Engine] Remove CreateRuleOptions, pass options through security rule wrapper instead (#216039) #216383

Merged
merged 1 commit into from
Mar 29, 2025

Conversation

marshallmain
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…options through security rule wrapper instead (elastic#216039)

## Summary

Another small refactor follow up to
elastic#212694. Overall, the goal here is
to increase consistency in how security rule executors receive common
parameters. `CreateRuleOptions` contained parameters that were passed in
to every security rule type and sometimes used in the `executor` -
bypassing the executor function's parameters. With this PR, params that
are used across multiple security rule type executors like `licensing`,
`experimentalFeatures`, `scheduleNotificationResponseActionsService`,
etc are all passed through the executor options from the shared security
rule type wrapper.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 0e63fce)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_types/query/create_query_alert_type.test.ts
#	x-pack/solutions/security/plugins/security_solution/server/plugin.ts
@marshallmain marshallmain merged commit d0cf51e into elastic:8.x Mar 29, 2025
11 checks passed
@marshallmain marshallmain deleted the backport/8.x/pr-216039 branch April 4, 2025 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants