Skip to content

[Backport 2.5] Add throw for empty strings in rules with modifier contains, startwith, and endswith #912

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

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport f4ee7bb from #860

…h, and endswith (#860)

* add validation for empty strings with contains, startswith and endswith modifiers

Signed-off-by: Joanne Wang <[email protected]>

* throw exception if empty string with contains, startswith, or endswith

Signed-off-by: Joanne Wang <[email protected]>

* change var name

Signed-off-by: Joanne Wang <[email protected]>

* add modifiers to log

Signed-off-by: Joanne Wang <[email protected]>

---------

Signed-off-by: Joanne Wang <[email protected]>
(cherry picked from commit f4ee7bb)
Copy link

codecov bot commented Mar 12, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 36.63%. Comparing base (3428248) to head (dff64c1).

Files Patch % Lines
...ityanalytics/rules/objects/SigmaDetectionItem.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.5     #912      +/-   ##
============================================
+ Coverage     36.60%   36.63%   +0.02%     
- Complexity      887      892       +5     
============================================
  Files           179      179              
  Lines          7053     7057       +4     
  Branches        863      865       +2     
============================================
+ Hits           2582     2585       +3     
  Misses         4236     4236              
- Partials        235      236       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jowg-amazon jowg-amazon merged commit 0025b7a into 2.5 Mar 12, 2024
@github-actions github-actions bot deleted the backport/backport-860-to-2.5 branch March 12, 2024 00:08
riysaxen-amzn pushed a commit to riysaxen-amzn/security-analytics that referenced this pull request Mar 25, 2024
…es or metadata creation fails (opensearch-project#900) (opensearch-project#912)

* log errors and clean up monitor when indexing doc level queries or metadata creation fails
* refactor delete monitor action to re-use delete methods
Signed-off-by: Surya Sashank Nistala <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants