-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Top Level WAF Swagger Changes #7222
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
Top Level WAF Swagger Changes #7222
Conversation
Automation for azure-sdk-for-pythonEncountered a Subprocess error: (azure-sdk-for-python)
Command: ['/usr/local/bin/autorest', '/tmp/tmpd26qwrxl/rest/specification/network/resource-manager/readme.md', '--keep-version-file', '--multiapi', '--no-async', '--python', '--python-mode=update', '--python-sdks-folder=/tmp/tmpd26qwrxl/sdk/sdk', '[email protected]/[email protected]', '--version=preview'] AutoRest code generation utility [version: 2.0.4283; node: v10.15.3]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/root/.autorest/@[email protected]/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4399)
Loading AutoRest extension '@microsoft.azure/autorest.python' (4.0.70->4.0.70)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.44->2.3.44)
Processing batch task - {"tag":"package-2019-06"} .
<--- Last few GCs --->
[11461:0x3336cc0] 73678 ms: Mark-sweep 1377.1 (1426.3) -> 1377.0 (1426.3) MB, 1397.0 / 0.0 ms (average mu = 0.166, current mu = 0.120) allocation failure GC in old space requested
[11461:0x3336cc0] 75096 ms: Mark-sweep 1377.1 (1426.3) -> 1377.1 (1426.8) MB, 1417.0 / 0.0 ms (average mu = 0.086, current mu = 0.001) allocation failure GC in old space requested
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0xec5e7dbe1d]
Security context: 0x01b23de9e6e9 <JSObject>
1: storeMappingPair(aka storeMappingPair) [0x1d17edf397b1] [/node_modules/yaml-ast-parser/dist/src/loader.js:~270] [pc=0xec5efb749a](this=0x24682ec026f1 <undefined>,state=0x225015d356b1 <State map = 0x3b285a0111f1>,_result=0x19e458046799 <Object map = 0x228f1c51ed99>,keyTag=0x24682ec022b1 <null>,keyNode=0x34d1bf0fff09 <Object map = 0x228f1c51f6e1>,valueNod...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x8dc510 node::Abort() [node]
2: 0x8dc55c [node]
3: 0xad9b5e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xad9d94 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xec7bf2 [node]
6: 0xec7cf8 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [node]
7: 0xed3dd2 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
8: 0xed4704 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xed7371 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [node]
10: 0xea07f4 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [node]
11: 0x11402db v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [node]
12: 0xec5e7dbe1d |
|
Can one of the admins verify this patch? |
Automation for azure-sdk-for-goNothing to generate for azure-sdk-for-go |
anton-evseev
left a comment
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.
This PR changes specs in 2019-06-01 but it has to target 2019-08-01
|
@number213 I have done the same. Please check. |
...ion/network/resource-manager/Microsoft.Network/stable/2019-08-01/webapplicationfirewall.json
Show resolved
Hide resolved
|
@majastrz please review this from ARM's side |
...ion/network/resource-manager/Microsoft.Network/stable/2019-08-01/webapplicationfirewall.json
Show resolved
Hide resolved
majastrz
left a comment
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.
There seem to be breaking changes in your PR. I added a comment about this. Please take a look.
|
@majastrz this is a branch for new API version that's not merged into |
|
Per call with @venkatsvpr there may be some changes so adding "do not merge" tag for now |
anton-evseev
left a comment
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.
Please update WafPolicyCreateOrUpdate.json. If you send properties from the current example, you'd get an error:
PS C:\Users\v-anevse> ARMClient.exe PUT /subscriptions/947d47b4-7883-4bb9-9d85-c5e8e2f572ce/resourceGroups/v-anevse/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/test-policy?api-version=2019-08-01 "{\`"location\`":\`"WestUs\`",\`"properties\`":{\`"customRules\`":[{\`"name\`":\`"Rule1\`",\`"priority\`":1,\`"ruleType\`":\`"MatchRule\`",\`"action\`":\`"Block\`",\`"matchConditions\`":[{\`"matchVariables\`":[{\`"variableName\`":\`"RemoteAddr\`",\`"selector\`":null}],\`"operator\`":\`"IPMatch\`",\`"matchValues\`":[\`"192.168.1.0/24\`",\`"10.0.0.0/24\`"]}]},{\`"name\`":\`"Rule2\`",\`"priority\`":2,\`"ruleType\`":\`"MatchRule\`",\`"matchConditions\`":[{\`"matchVariables\`":[{\`"variableName\`":\`"RemoteAddr\`",\`"selector\`":null}],\`"operator\`":\`"IPMatch\`",\`"matchValues\`":[\`"192.168.1.0/24\`"]},{\`"matchVariables\`":[{\`"variableName\`":\`"RequestHeaders\`",\`"selector\`":\`"UserAgent\`"}],\`"operator\`":\`"Contains\`",\`"matchValues\`":[\`"Windows\`"]}],\`"action\`":\`"Block\`"}]}}"
{
"error": {
"code": "ApplicationGatewayFirewallManagedRuleSetsNoValidCrsRuleSetsAttached",
"message": "Firewall policy /subscriptions/947d47b4-7883-4bb9-9d85-c5e8e2f572ce/resourceGroups/v-anevse/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/test-policy does not have any valid Core Rule Set attached to it.",
"details": []
}
}
anton-evseev
left a comment
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.
LGTM except one example
...etwork/resource-manager/Microsoft.Network/stable/2019-08-01/examples/WafListAllPolicies.json
Show resolved
Hide resolved
35f33f2 to
ef1537f
Compare
|
@tjprescott assigning this to you since Catherine Zhu said you're one of those who would cover for Chinese team during their long holiday. Could you please merge this PR? |
| "$ref": "#/definitions/WebApplicationFirewallCustomRule" | ||
| } | ||
| }, | ||
| "managedRules": { |
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.
Add new properties at the end.
* Adds base for updating Microsoft.Network from version stable/2019-07-01 to version 2019-08-01 * Updates readme * Updates API version in new specs and examples * Add reference to Connection Monitor specs in 2019-08-01 (#7218) * Support AH protocol (#7231) * Virtual Network BGP Communities (#7248) * Virtual Wan point to site feature redesign:- (#7238) * Virtual Wan point to site feature redesign * Fix examples * Fix validation errors * Fix validation error * Fix validation errors * Incorporate review comments * Fix default error in standard error response * Fix validation error * Refer to default error from ddos swagger spec * Fix build error * Firewall Manager Feature Swagger Updates for Public Preview (#7266) * Adding the structure of urlConfiguration in rewriteRuleActionSet (#7275) * Revert "Adding the structure of urlConfiguration in rewriteRuleActionSet (#7275)" (#7333) This reverts commit e89f35d. * Virtual network gateway changes for dns forwarding (#7359) * Virtuan network gateway changes for dns forwarding * Fixed example response * Fixed examples * Fixed 201 example * Top-level WAF (#7222) * Move new props to the end to avoid breaking changes in SDK (#7387)
Link To Previous PR:
#6851
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Contribution checklist:
ARM API Review Checklist
Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.
Please follow the link to find more details on API review process.