azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

[COSMOS Account] Network FW Configuration is rudementary/lacking

Open mw-root opened this issue 6 years ago • 3 comments

There does not appear to be any way to set the firewall to a whitelisting settup without defining CIDRs. (only allow selected networks in the portal).

We're stuck with wide open access, when we want to lock it down and add networks and ranges as required.

IPs are also ingested via CSV string which is ok, but very basic.

The storage account SDK has a suitable solution. The NetworkRuleSet object allows you to set default action to 'Allow' or 'Deny' and the IPRule allows you to define IPs/Ranges with 'allow' or 'deny'.

I've tried creating an empty list, or even with 0.15.0 using an empty IPRule but it returns a 400 from the rest API.

mw-root avatar Jun 17 '20 20:06 mw-root

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @kushagraThapar, @srinathnarayanan, @southpolesteve, @shurd, @ealsur, @j82w, @anfeldma-ms.

ghost avatar Jun 17 '20 21:06 ghost

Hi @mw-root thank you for opening this issue. Recently, we added the ipRules property in 0.15.0, which should allow you to add IP addresses as an array of object.

Alternatively, if you want to deny all public access to your account until the proper firewall rules are in place, you can use the property "publicNetworkAccess". If set to "Disabled", all requests are denied by default.

shurd avatar Jun 19 '20 08:06 shurd

I am going to close this issue as there are no further questions. If you are still encountering issues using ipRules, please open a new issue or support ticket via the Azure portal.

shurd avatar Jul 16 '20 18:07 shurd