[Bug] Ignore Other Keep Wildcards#5792
Merged
eric-forte-elastic merged 6 commits intomainfrom Mar 9, 2026
Merged
Conversation
Contributor
Bug - GuidelinesThese guidelines serve as a reminder set of considerations when addressing a bug in the code. Documentation and Context
Code Standards and Practices
Testing
Additional Checks
|
Mikaayenson
approved these changes
Mar 6, 2026
Contributor
Mikaayenson
left a comment
There was a problem hiding this comment.
a couple things to think about. otherwise lgtm
terrancedejesus
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Issue link(s): #5764
Resolves #5764
Summary - What I changed
A small PR to change
detection_rules/rule.py: extend_uses_keep_star()so it treats both “keep ” and “keep …” as wildcards. This will resolve version double bump issues due to the wildcard introducing new fields from different integration/stack versions.This was the cause of the second double bump in #5761 (comment). See issue for more details.
Diff of
detection_rules/rule.pyvs main:How To Test
Unit tests to build package. Use the rule file
Entra ID Federated Identity Credential Issuer Modifiedand set its min_stack version to9.1and check for double bumps when building a package.Checklist
bug,enhancement,schema,maintenance,Rule: New,Rule: Deprecation,Rule: Tuning,Hunt: New, orHunt: Tuningso guidelines can be generatedmeta:rapid-mergelabel if planning to merge within 24 hoursContributor checklist