[azure-mgmt-network] No security rule name validation
There is no security rule names validation when create via azure.mgmt.network.NetworkManagementClient.security_rules.create_or_update()
As a result, I was able to create rules with names similar to this one: c7n-policy-6.367126014858692e+17
I'm not able to edit these rules via Azure Portal. (Portal doesn't allow to use similar names).
Hi @logachev Seems to be me there is two bugs in one here:
- The server itself should test and refuse names that are invalid. This way, you won't be in a situation where the portal cannot edit something you created with the SDK (which is really bad :()
- The SDK could test with a regexp if the name is valid without even talking to Azure
@MikhailTryakhov your thought on this?
@chandrasekarsrinivasan please add validator on NRP layer? @lmazuel that's good idea to implement such validator on SDK level
We do not to have any name validation on clients (Portal, SDK or PS). Let me follow up with Portal on what restrictions are added and why this is showing up on SecurityRules only (This can happen with any resource).
@chandrasekarsrinivasan any updates?
I don't work on Security rules in NRP.
@Xiudong @.> and @Nitin @.> can you please have a look at this?
From: Xiang Yan @.> Sent: Monday, November 29, 2021 2:24 PM To: Azure/azure-sdk-for-python @.> Cc: Chandrasekar Srinivasan @.>; Mention @.> Subject: Re: [Azure/azure-sdk-for-python] [azure-mgmt-network] No security rule name validation (#3238)
You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-sdk-for-python%2Fissues%2F3238%23issuecomment-982079245&data=04%7C01%7Cchsrini%40microsoft.com%7C3dbfd14c5b094b86f18408d9b386fe02%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637738214643654749%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=MDZFzqGVAQKll5zuv3kqHuPSjlseEG80So3GkV2CWE0%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH5ZC4NYQYJM24EHKU3A3OLUOP4RLANCNFSM4FSRDVMA&data=04%7C01%7Cchsrini%40microsoft.com%7C3dbfd14c5b094b86f18408d9b386fe02%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637738214643654749%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=qHFJ%2BR4EUzTTxxhtRM5sLVVgeL27leITzOeInVc8Mw4%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cchsrini%40microsoft.com%7C3dbfd14c5b094b86f18408d9b386fe02%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637738214643654749%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=NEFEYFrZ%2BgNTd9Y1hLw9AfrxATMANKMSnAJnfwNsKdk%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cchsrini%40microsoft.com%7C3dbfd14c5b094b86f18408d9b386fe02%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637738214643654749%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=IbzSBtvlK3qwa%2FAtVrqgrP5ldxCDkWrFX2iRg%2BAt404%3D&reserved=0.
Hi @logachev, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.