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

Missing WCU Calculation orstatement within andstatement #232

Closed
daknhh opened this issue Nov 15, 2023 · 0 comments
Closed

Missing WCU Calculation orstatement within andstatement #232

daknhh opened this issue Nov 15, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@daknhh
Copy link
Contributor

daknhh commented Nov 15, 2023

Describe the bug
Currently we are not able to calculate an WCU for a Firewall with an orstatement within andstatement.

How to reproduce it
Statements:
statement: { andStatement: { statements: [ { orStatement: { statements: [ { labelMatchStatement: { scope: "LABEL", key: "awswaf:managed:aws:core-rule-set:SizeRestrictions_Body" } }, { labelMatchStatement: { scope: "LABEL", key: "awswaf:managed:aws:core-rule-set:CrossSiteScripting_Body" } } ] } }, { orStatement: { statements: [ { notStatement: { statement: { regexMatchStatement: { regexString: "(/oauth2/callback/saml|/api/ce/submit|/api/qualityprofiles/restore)", fieldToMatch: { uriPath: {} }, textTransformations: [{ priority: 0, type: "LOWERCASE" }] } } } }, { notStatement: { statement: { regexMatchStatement: { regexString: "(POST)", fieldToMatch: { method: {} }, textTransformations: [{ priority: 0, type: "NONE" }] } } } } ] } } ] } },

Expected behaviour
Calculation is working
Please fill in the following information about the solution:.

  • Version: [e.g. 4.1.4].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant