-
Notifications
You must be signed in to change notification settings - Fork 72
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
fix for input validation of correlation rule names #428
Conversation
Signed-off-by: Subhobrata Dey <sbcd90@gmail.com>
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #428 +/- ##
============================================
- Coverage 28.23% 28.19% -0.05%
+ Complexity 897 896 -1
============================================
Files 231 231
Lines 9318 9326 +8
Branches 1073 1074 +1
============================================
- Hits 2631 2629 -2
- Misses 6451 6460 +9
- Partials 236 237 +1
|
@@ -25,6 +30,8 @@ public class IndexCorrelationRuleRequest extends ActionRequest { | |||
|
|||
private RestRequest.Method method; | |||
|
|||
private static final Pattern REGEX = Pattern.compile("[a-zA-Z0-9 _,-.]{5,50}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we rename this variable to something more readable? Maybe: IS_VALID_RULE_NAME
?
Signed-off-by: Subhobrata Dey <sbcd90@gmail.com>
Signed-off-by: Subhobrata Dey <sbcd90@gmail.com> (cherry picked from commit cc53260)
Signed-off-by: Subhobrata Dey <sbcd90@gmail.com> (cherry picked from commit cc53260)
Description
fix for input validation of correlation rule names
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.