You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When checking azure_security_group_rule, azurerm_network_security_rule or azurerm_network_security_group Terraform resource types, NSGRulePortAccessRestricted.py throws a "TypeError: string indices must be integers" error whenever there's a dynamic block.
To Reproduce
Steps to reproduce the behavior:
Create a resource in terraform, containing a dynamic security rule -
…#489)
* Fix NSGRulePortAccessRestricted crashing on a terraform dynamic block
See issue: #488
* More appropriate return code
* One more try...
Looking at the rest of the code, seems CheckResult.UNKNOWN is probably more suitable.
* Reduced scope
Co-authored-by: David Nicoll <[email protected]>
…#489)
* Fix NSGRulePortAccessRestricted crashing on a terraform dynamic block
See issue: #488
* More appropriate return code
* One more try...
Looking at the rest of the code, seems CheckResult.UNKNOWN is probably more suitable.
* Reduced scope
Co-authored-by: David Nicoll <[email protected]>
…#489)
* Fix NSGRulePortAccessRestricted crashing on a terraform dynamic block
See issue: #488
* More appropriate return code
* One more try...
Looking at the rest of the code, seems CheckResult.UNKNOWN is probably more suitable.
* Reduced scope
Co-authored-by: David Nicoll <[email protected]>
Describe the bug
When checking azure_security_group_rule, azurerm_network_security_rule or azurerm_network_security_group Terraform resource types, NSGRulePortAccessRestricted.py throws a "TypeError: string indices must be integers" error whenever there's a dynamic block.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
As checkov cannot evaluate the dynamic block, I expect the check to be skipped without throwing an error.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: