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

[azure-mgmt-network] No security rule name validation

Open logachev opened this issue 8 years ago • 6 comments

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).

logachev avatar Aug 30 '18 21:08 logachev

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?

lmazuel avatar Aug 31 '18 22:08 lmazuel

@chandrasekarsrinivasan please add validator on NRP layer? @lmazuel that's good idea to implement such validator on SDK level

MikhailTryakhov avatar Nov 22 '18 23:11 MikhailTryakhov

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 avatar Nov 27 '18 19:11 chandrasekarsrinivasan

@chandrasekarsrinivasan any updates?

xiangyan99 avatar Nov 29 '21 22:11 xiangyan99

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)

@chandrasekarsrinivasanhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fchandrasekarsrinivasan&data=04%7C01%7Cchsrini%40microsoft.com%7C3dbfd14c5b094b86f18408d9b386fe02%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637738214643604753%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=5ajGaW0c6H%2BaUVcfW%2Fdl9iJSDWF29pWWK%2BUiyYY8WgI%3D&reserved=0 any updates?

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.

chandrasekarsrinivasan avatar Nov 29 '21 22:11 chandrasekarsrinivasan

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.

github-actions[bot] avatar Mar 18 '24 18:03 github-actions[bot]