-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! feat(waf): CLOUDS-4788 Clean WAF log more thorougly
Signed-off-by: Vincent Boutour <[email protected]>
- Loading branch information
Showing
1 changed file
with
22 additions
and
18 deletions.
There are no files selected for viewing
40 changes: 22 additions & 18 deletions
40
...tParseAwsWafLogs.test_waf_rule_group_with_excluded_and_nonterminating_rules.approved.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
{ | ||
"ddsource": "waf", | ||
"message": { | ||
"ruleGroupList": { | ||
"AWS#AWSManagedRulesSQLiRuleSet": { | ||
"excludedRules": { | ||
"GenericRFI_BODY": { | ||
"exclusionType": "EXCLUDED_AS_COUNT" | ||
"ruleGroupList": [ | ||
{ | ||
"excludedRules": [ | ||
{ | ||
"exclusionType": "EXCLUDED_AS_COUNT", | ||
"ruleId": "GenericRFI_BODY" | ||
}, | ||
"second_exclude": { | ||
"exclusionType": "EXCLUDED_AS_COUNT" | ||
{ | ||
"exclusionType": "EXCLUDED_AS_COUNT", | ||
"ruleId": "second_exclude" | ||
} | ||
}, | ||
"nonTerminatingMatchingRules": { | ||
"first_nonterminating": { | ||
"exclusionType": "REGULAR" | ||
], | ||
"nonTerminatingMatchingRules": [ | ||
{ | ||
"exclusionType": "REGULAR", | ||
"ruleId": "first_nonterminating" | ||
}, | ||
"second_nonterminating": { | ||
"exclusionType": "REGULAR" | ||
{ | ||
"exclusionType": "REGULAR", | ||
"ruleId": "second_nonterminating" | ||
} | ||
}, | ||
], | ||
"ruleGroupId": "AWS#AWSManagedRulesSQLiRuleSet", | ||
"terminatingRule": { | ||
"SQLi_QUERYARGUMENTS": { | ||
"action": "BLOCK" | ||
} | ||
"action": "BLOCK", | ||
"ruleId": "SQLi_QUERYARGUMENTS" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |