[Security Solution][Detections] Investigate removing usage of internal tags #92334
Labels
Feature:Detection Rules
Security Solution rules and Detection Engine
refactoring
Team:Detection Rule Management
Security Detection Rule Management Team
Team:Detections and Resp
Security Detection Response Team
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
technical debt
Improvement of the software architecture and operational architecture
Theme: simp_prot_mgmt
Security Solution Simplified Protection Management Theme
With #92036, the Alerting team enabled the ability to filter on string parameters within our custom alert params. As a result, we should be able to use this to remove our
internal_tags
workaround for filtering on theimmutable
custom field. While immutable is aboolean
, this fix leverages the flattened mapping under the hood, and so we should be able to use the string representation"true"
or"false"
to filter rules accordingly. e.g.alert.attributes.params.immutable:"true"
Testing real quick, I modified:
kibana/x-pack/plugins/security_solution/public/detections/containers/detection_engine/rules/api.ts
Lines 113 to 118 in 4584a8b
to be:
And this appears to work! 🎉
For more details on the
internal_tags
implementation, please see the original PR here: #52838The text was updated successfully, but these errors were encountered: