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

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

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 <jowg@amazon.com>

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

Signed-off-by: Joanne Wang <jowg@amazon.com>

* change var name

Signed-off-by: Joanne Wang <jowg@amazon.com>

* add modifiers to log

Signed-off-by: Joanne Wang <jowg@amazon.com>

---------

Signed-off-by: Joanne Wang <jowg@amazon.com>
(cherry picked from commit f4ee7bb)
Copy link

codecov bot commented Mar 7, 2024

Codecov Report

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

Project coverage is 25.78%. Comparing base (4f68164) to head (a6264a7).

Files Patch % Lines
...ityanalytics/rules/objects/SigmaDetectionItem.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.9     #886      +/-   ##
============================================
+ Coverage     25.74%   25.78%   +0.03%     
- Complexity      939      945       +6     
============================================
  Files           252      252              
  Lines         10746    10750       +4     
  Branches       1197     1199       +2     
============================================
+ Hits           2767     2772       +5     
+ Misses         7733     7732       -1     
  Partials        246      246              

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

@jowg-amazon jowg-amazon merged commit 7fbe7c0 into 2.9 Mar 12, 2024
14 of 15 checks passed
@github-actions github-actions bot deleted the backport/backport-860-to-2.9 branch March 12, 2024 00:07
riysaxen-amzn pushed a commit to riysaxen-amzn/security-analytics that referenced this pull request Mar 25, 2024
…ch-project#965)

* Added rest layer for the workflow. Added secure tests (opensearch-project#886)

* Added rest layer for the workflow. Added secure tests

* add execution_id field in alert mapping
---------

Signed-off-by: Stevan Buzejic <buzejic.stevan@gmail.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Co-authored-by: Stevan Buzejic <buzejic.stevan@gmail.com>
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