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

Adding WAF Log type #617

Merged
merged 8 commits into from
Oct 5, 2023
Merged

Adding WAF Log type #617

merged 8 commits into from
Oct 5, 2023

Conversation

sandeshkr419
Copy link
Contributor

@sandeshkr419 sandeshkr419 commented Sep 26, 2023

Description

Adding WAF log type as a pre-packaged rule

Issues Resolved

Resolves #573

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #617 (dae7228) into main (b838dd8) will increase coverage by 0.04%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main     #617      +/-   ##
============================================
+ Coverage     25.02%   25.06%   +0.04%     
- Complexity      943      947       +4     
============================================
  Files           255      255              
  Lines         11155    11155              
  Branches       1250     1250              
============================================
+ Hits           2791     2796       +5     
+ Misses         8110     8107       -3     
+ Partials        254      252       -2     

see 1 file with indirect coverage changes

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
sbcd90
sbcd90 previously approved these changes Oct 4, 2023
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
@sandeshkr419 sandeshkr419 requested a review from sbcd90 October 4, 2023 22:31
@eirsep
Copy link
Member

eirsep commented Oct 4, 2023

LGTM but plz add tests for end-to-end flow i.e create waf log type detector, ingest docs and assert findings, alerts etc.

@sandeshkr419
Copy link
Contributor Author

sandeshkr419 commented Oct 4, 2023

LGTM but plz add tests for end-to-end flow i.e create waf log type detector, ingest docs and assert findings, alerts etc.

@eirsep Thanks for reviewing. In the following test added, I did create a detector and verified (asserted) percolate queries (via number of rules to be matched) generated. I agree on having an IT as a follow up change for verifying the end to end flow across all PRs.

@eirsep eirsep merged commit 115ae95 into opensearch-project:main Oct 5, 2023
14 of 15 checks passed
@sandeshkr419 sandeshkr419 deleted the waf branch October 5, 2023 15:45
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 5, 2023
* Adding WAF Log type

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Minor refactoring

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Fix duplicate keys

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Test fix

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* test fix

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Adding custom log specific to aws waf

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Add Security category to waf logtype

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

---------

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
(cherry picked from commit 115ae95)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 5, 2023
* Adding WAF Log type

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Minor refactoring

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Fix duplicate keys

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Test fix

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* test fix

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Adding custom log specific to aws waf

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

* Add Security category to waf logtype

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>

---------

Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
(cherry picked from commit 115ae95)
sbcd90 pushed a commit that referenced this pull request Oct 5, 2023
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
sbcd90 pushed a commit that referenced this pull request Oct 5, 2023
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] WAF log type support
3 participants