Skip to content
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

feat(arm): NSGRuleUDPAccessRestricted #6616

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

esterKoren
Copy link
Contributor

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Description

We converted the check NSGRuleUDPAccessRestricted from TERRAFORM language to the ARM language so that it also works on resources that are defined in the ARM language

Description

Ensure that UDP Services are restricted from the Internet.

Fix

To address the issue of converting the NSGRuleUDPAccessRestricted check from Terraform language to ARM language, the following steps were taken*

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my feature, policy, or fix is effective and works
  • New and existing tests pass locally with my changes

rule_confs = [conf.get("properties", {})]
evaluated_key_prefix = ''
if isinstance(rule_confs[0], dict) and 'securityRules' in rule_confs[0]:
rule_confs = [rule_confs[0]['securityRules'][0]["properties"]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is failing the dogfood-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants