-
Notifications
You must be signed in to change notification settings - Fork 5.6k
swagger change for application gateway waf global config and exclusio… #3962
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1827,6 +1827,31 @@ | |
| "minimum": 8, | ||
| "exclusiveMinimum": false, | ||
| "description": "Maxium request body size for WAF." | ||
| }, | ||
| "maxRequestBodySizeInKb": { | ||
| "type": "integer", | ||
| "format": "int32", | ||
| "maximum": 128, | ||
| "exclusiveMaximum": false, | ||
| "minimum": 8, | ||
| "exclusiveMinimum": false, | ||
| "description": "Maxium request body size in Kb for WAF." | ||
| }, | ||
| "fileUploadLimitInMb": { | ||
| "type": "integer", | ||
| "format": "int32", | ||
| "maximum": 500, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the |
||
| "exclusiveMaximum": false, | ||
| "minimum": 0, | ||
| "exclusiveMinimum": false, | ||
| "description": "Maxium file upload size in Mb for WAF." | ||
| }, | ||
| "exclusions": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/ApplicationGatewayFirewallExclusion" | ||
| }, | ||
| "description": "The exclusion list." | ||
| } | ||
| }, | ||
| "required": [ | ||
|
|
@@ -1895,6 +1920,28 @@ | |
| ], | ||
| "description": "Allows to disable rules within a rule group or an entire rule group." | ||
| }, | ||
| "ApplicationGatewayFirewallExclusion": { | ||
| "properties": { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. when i tested i noticed it was like this |
||
| "matchVariable": { | ||
| "type": "string", | ||
| "description": "The variable to be excluded." | ||
| }, | ||
| "selectorMatchOperator": { | ||
| "type": "string", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How far down in the stack are these strings vs. enums? If they were enums here, I think the auto generated API's will have built in validation and auto-completion, so we should consider the tradeoffs of enums vs strings here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we have string defination on the nrp and also have validation there, so don't want to make the transfer in the nrp code. It will be too long for us. |
||
| "description": "When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to." | ||
| }, | ||
| "selector": { | ||
| "type": "string", | ||
| "description": "When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to." | ||
| } | ||
| }, | ||
| "required": [ | ||
| "matchVariable", | ||
| "selectorMatchOperator", | ||
| "selector" | ||
| ], | ||
| "description": "Allow to exclude some variable satisfy the condition for the WAF check" | ||
| }, | ||
| "ApplicationGatewayAvailableWafRuleSetsResult": { | ||
| "properties": { | ||
| "value": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't minimum value of the maxRequeustBodySizeInKb supposed to
1KB?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be 8kb