-
Notifications
You must be signed in to change notification settings - Fork 353
fix(query): fix fp for dynamic network_rules for Trusted Microsoft Services Not Enabled #7522
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
base: master
Are you sure you want to change the base?
Conversation
…rvices Not Enabled
cx-artur-ribeiro
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.
Hey Ricardo,
First of all, nice job tackling different available options for terraform azure instances!
Can you check my comments and see if you agree, please?
Thanks!
assets/queries/terraform/azure/trusted_microsoft_services_not_enabled/query.rego
Show resolved
Hide resolved
assets/queries/terraform/azure/trusted_microsoft_services_not_enabled/query.rego
Outdated
Show resolved
Hide resolved
assets/queries/terraform/azure/trusted_microsoft_services_not_enabled/query.rego
Outdated
Show resolved
Hide resolved
…dynamic_network_rules
This extra test does not have the network_rules field
…dynamic_network_rules
cx-artur-ribeiro
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.
Hey Ricardo, take a look at my comments please.
...es/terraform/azure/trusted_microsoft_services_not_enabled/test/positive_expected_result.json
Outdated
Show resolved
Hide resolved
...es/terraform/azure/trusted_microsoft_services_not_enabled/test/positive_expected_result.json
Outdated
Show resolved
Hide resolved
assets/queries/terraform/azure/trusted_microsoft_services_not_enabled/query.rego
Outdated
Show resolved
Hide resolved
cx-eduardo-semanas
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
…dynamic_network_rules
…dynamic_network_rules
Closes #
Reason for Proposed Changes
Proposed Changes
not common_lib.valid_key(resource.dynamic, "network_rules").network_rules.bypassinsidedynamic.network_rules.content, mirroring the logic already applied to the static structure.azurerm_storage_account_network_rules, which is a separate resource.I submit this contribution under the Apache-2.0 license.