tenable / terrascan

Detect compliance and security violations across Infrastructure as Code to mitigate risk before provisioning cloud native infrastructure.
https://runterrascan.io
Apache License 2.0
4.77k stars 500 forks source link

Panic: not a string #647

Closed alinalihassan closed 3 years ago

alinalihassan commented 3 years ago

Description

I tried to run terrascan scan for the first time on an existing terraform configuration and it fails.

What I Did

terrascan scan

panic: not a string

goroutine 1 [running]:
github.com/zclconf/go-cty/cty.Value.AsString(0x6180b10, 0xc00035f2e8, 0x5dd2f20, 0xc005ac6db0, 0xc005ac6db0, 0x6180b10)
    github.com/zclconf/go-cty@v1.7.1/cty/value_ops.go:1251 +0x1a5
github.com/zclconf/go-cty/cty.Value.AsValueMap(0x6180c60, 0xc004a7ec18, 0x5a68ce0, 0xc004a7ec30, 0xc0057b0000)
    github.com/zclconf/go-cty@v1.7.1/cty/value_ops.go:1323 +0x1ae
github.com/accurics/terrascan/pkg/iac-providers/terraform/commons.ctyToMap(0x6180c60, 0xc004a7ec18, 0x5a68ce0, 0xc004a7ec30, 0x5a68ce0, 0x70905e0, 0x6139d80, 0xc004a42b40)
    github.com/accurics/terrascan/pkg/iac-providers/terraform/commons/cty-converters.go:86 +0x6a
github.com/accurics/terrascan/pkg/iac-providers/terraform/commons.(*RefResolver).ResolveVarRef(0xc005a3ece0, 0xc002977a28, 0x17, 0x5aa91c0, 0xc004a42a60)
    github.com/accurics/terrascan/pkg/iac-providers/terraform/commons/variable-references.go:83 +0x1c5
github.com/accurics/terrascan/pkg/iac-providers/terraform/commons.(*RefResolver).ResolveStrRef(0xc005a3ece0, 0xc002977a28, 0x17, 0x3, 0xc005ab32b8)
    github.com/accurics/terrascan/pkg/iac-providers/terraform/commons/references.go:166 +0x2b4
github.com/accurics/terrascan/pkg/iac-providers/terraform/commons.(*RefResolver).ResolveRefs(0xc005a3ece0, 0xc005ac6cc0, 0x1b)
    github.com/accurics/terrascan/pkg/iac-providers/terraform/commons/references.go:70 +0x1b2
github.com/accurics/terrascan/pkg/iac-providers/terraform/commons.LoadIacDir(0xc00065e400, 0x39, 0xc005ac6b70, 0xc004d06d01, 0xc004d75b60)
    github.com/accurics/terrascan/pkg/iac-providers/terraform/commons/load-dir.go:163 +0x775
github.com/accurics/terrascan/pkg/iac-providers/terraform/v14.(*TfV14).LoadIacDir(0x708e330, 0xc00065e400, 0x39, 0x0, 0x0, 0x0)
    github.com/accurics/terrascan/pkg/iac-providers/terraform/v14/load-dir.go:29 +0x35
github.com/accurics/terrascan/pkg/runtime.(*Executor).Execute(0xc0001bca00, 0x0, 0x0, 0x0, 0xc0005b43f0, 0x1, 0x1, 0x0, 0x0)
    github.com/accurics/terrascan/pkg/runtime/executor.go:138 +0xcaf
github.com/accurics/terrascan/pkg/cli.(*ScanOptions).Run(0xc0005b6240, 0x0, 0x0)
    github.com/accurics/terrascan/pkg/cli/run.go:182 +0x395
github.com/accurics/terrascan/pkg/cli.(*ScanOptions).Scan(0xc0005b6240, 0xc0005afdff, 0x0)
    github.com/accurics/terrascan/pkg/cli/run.go:106 +0x285
github.com/accurics/terrascan/pkg/cli.scan(0x703a4a0, 0x708e330, 0x0, 0x0, 0x0, 0x0)
    github.com/accurics/terrascan/pkg/cli/scan.go:50 +0xef
github.com/spf13/cobra.(*Command).execute(0x703a4a0, 0x708e330, 0x0, 0x0, 0x703a4a0, 0x708e330)
    github.com/spf13/cobra@v1.1.1/command.go:850 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0x703a200, 0x708dec0, 0x0, 0x0)
    github.com/spf13/cobra@v1.1.1/command.go:958 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
    github.com/spf13/cobra@v1.1.1/command.go:895
github.com/accurics/terrascan/pkg/cli.Execute()
    github.com/accurics/terrascan/pkg/cli/register.go:69 +0x3dd
main.main()
    github.com/accurics/terrascan/cmd/terrascan/main.go:22 +0x25

Could someone guide me and figure out from which file/line this took place?

devang-gaur commented 3 years ago

@hassanalinali could you hint us about the content of the directory you ran terrascan scan in?

devang-gaur commented 3 years ago

@hassanalinali the command you ran seems to be TERRAFORM SCAN

patilpankaj212 commented 3 years ago

Hello @hassanalinali, The scan operation generated a panic while resolving references in your terraform config file. Can you please run scan command in debug mode? We should get information about the config file and the variable being resolved. terrascan scan --log-level debug

alinalihassan commented 3 years ago

Hi @patilpankaj212,

I will leave the logs below

Logs ``` 2021-04-08T17:07:41.017+0200 debug config/global.go:61 global config env variable is not specified 2021-04-08T17:07:41.021+0200 debug initialize/run.go:40 initializing terrascan 2021-04-08T17:07:41.021+0200 debug cli/scan.go:47 running terrascan in cli mode 2021-04-08T17:07:41.022+0200 debug downloader/getter.go:136 download with remote type: "", remote URL: "", destination dir: "/var/folders/6d/_52665zs4cgb29z7kl7rqyk40000gn/T/g0dgkt" 2021-04-08T17:07:41.023+0200 debug cli/run.go:209 remote url and type not configured, proceeding with regular scanning 2021-04-08T17:07:41.023+0200 debug runtime/validate.go:91 directory '/Users/hassanalinali/Developer/charitee-backend/terraform' exists 2021-04-08T17:07:41.024+0200 debug runtime/validate.go:109 iac type 'terraform', version 'v14' is supported 2021-04-08T17:07:41.024+0200 debug runtime/validate.go:118 cloud type 'all' is supported 2021-04-08T17:07:41.024+0200 debug runtime/validate.go:122 using policy path [/Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/gcp /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/github /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s] 2021-04-08T17:07:41.024+0200 debug runtime/validate.go:127 using severity level 2021-04-08T17:07:41.024+0200 debug runtime/validate.go:130 input validation successful 2021-04-08T17:07:41.024+0200 debug notifications/notifiers.go:59 no config file specified 2021-04-08T17:07:41.025+0200 debug runtime/executor.go:111 using policy path [/Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/gcp /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/github /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s] 2021-04-08T17:07:41.050+0200 debug opa/engine.go:134 no metadata files were found{dir 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws } 2021-04-08T17:07:41.059+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_cloudformation_stack/cloudFormationNullCheck.rego } 2021-04-08T17:07:41.060+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_cloudformation_stack/cloudFormationNullCheck.rego } 2021-04-08T17:07:41.081+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_iam_account_password_policy/passwordPolicyRequirement.rego } 2021-04-08T17:07:41.081+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_iam_account_password_policy/passwordPolicyRequirement.rego } 2021-04-08T17:07:41.081+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_iam_account_password_policy/passwordPolicyRequirement.rego } 2021-04-08T17:07:41.081+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_iam_account_password_policy/passwordMinLength.rego } 2021-04-08T17:07:41.100+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_s3_bucket/s3AclGrants.rego } 2021-04-08T17:07:41.100+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_s3_bucket/s3AclGrants.rego } 2021-04-08T17:07:41.100+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_s3_bucket/s3AclGrants.rego } 2021-04-08T17:07:41.103+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_s3_bucket_policy/actionsFromAllPrincipals.rego } 2021-04-08T17:07:41.103+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_s3_bucket_policy/actionsFromAllPrincipals.rego } 2021-04-08T17:07:41.103+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_s3_bucket_policy/actionsFromAllPrincipals.rego } 2021-04-08T17:07:41.103+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_s3_bucket_policy/actionsFromAllPrincipals.rego } 2021-04-08T17:07:41.111+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.111+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.111+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.111+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.112+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portsAlbNetworkPortSecurityPublicScope.rego } 2021-04-08T17:07:41.113+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portOpenToInternet.rego } 2021-04-08T17:07:41.113+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/aws/aws_security_group/portOpenToInternet.rego } 2021-04-08T17:07:41.119+0200 debug opa/engine.go:208 loaded 158 Rego rules from 112 rego files (160 metadata files). 2021-04-08T17:07:41.307+0200 debug opa/engine.go:134 no metadata files were found{dir 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure } 2021-04-08T17:07:41.317+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_mssql_server/mssqlAuditing.rego } 2021-04-08T17:07:41.357+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.357+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.357+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.357+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.357+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.357+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.357+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.357+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.357+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.357+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.358+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.359+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.360+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.361+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPrivate.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.362+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.363+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_security_rule/networkPortExposedPublic.rego } 2021-04-08T17:07:41.375+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_network_watcher_flow_log/networkWatcherCheck.rego } 2021-04-08T17:07:41.380+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_redis_cache/publiclyAccessible.rego } 2021-04-08T17:07:41.384+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/azure/azurerm_sql_firewall_rule/checkPublicAccessNotAllow.rego } 2021-04-08T17:07:41.388+0200 debug opa/engine.go:208 loaded 260 Rego rules from 48 rego files (261 metadata files). 2021-04-08T17:07:41.820+0200 debug opa/engine.go:134 no metadata files were found{dir 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/gcp } 2021-04-08T17:07:41.824+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/gcp/google_compute_firewall/portIsOpen.rego } 2021-04-08T17:07:41.828+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/gcp/google_compute_instance/metadataDisabled.rego } 2021-04-08T17:07:41.828+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/gcp/google_compute_instance/metadataDisabled.rego } 2021-04-08T17:07:41.836+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/gcp/google_container_cluster/stackDriverServiceDisabled.rego } 2021-04-08T17:07:41.840+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/gcp/google_container_node_pool/autoNodePropDisabled.rego } 2021-04-08T17:07:41.846+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/gcp/google_sql_database_instance/checkDatabaseSettings.rego } 2021-04-08T17:07:41.847+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/gcp/google_storage_bucket/checkStorageBucketConfig.rego } 2021-04-08T17:07:41.848+0200 debug opa/engine.go:208 loaded 50 Rego rules from 43 rego files (50 metadata files). 2021-04-08T17:07:41.870+0200 debug opa/engine.go:134 no metadata files were found{dir 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/github } 2021-04-08T17:07:41.872+0200 debug opa/engine.go:208 loaded 3 Rego rules from 3 rego files (3 metadata files). 2021-04-08T17:07:41.882+0200 debug opa/engine.go:134 no metadata files were found{dir 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s } 2021-04-08T17:07:41.884+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_namespace/defaultNamespaceUsed.rego } 2021-04-08T17:07:41.884+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_namespace/defaultNamespaceUsed.rego } 2021-04-08T17:07:41.893+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/securityContextCheck.rego } 2021-04-08T17:07:41.894+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/securityContextCheck.rego } 2021-04-08T17:07:41.895+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/specBoolCheck.rego } 2021-04-08T17:07:41.895+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/specBoolCheck.rego } 2021-04-08T17:07:41.896+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/securityContextCheck.rego } 2021-04-08T17:07:41.896+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/securityContextCheck.rego } 2021-04-08T17:07:41.896+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/securityContextCheck.rego } 2021-04-08T17:07:41.896+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/securityContextCheck.rego } 2021-04-08T17:07:41.896+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/probeCheck.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.903+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/allowed_capabilities/containerHasAllowedCapabilities.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.911+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_resources_not_defined/containerResourcesNotDefined.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.919+0200 debug opa/engine.go:92 skipping already loaded rego file{file 15 0 /Users/hassanalinali/.terrascan/pkg/policies/opa/rego/k8s/kubernetes_pod/container_uses_secrets_in_env/containerUsesSecretsInEnvironmentVar.rego } 2021-04-08T17:07:41.925+0200 debug opa/engine.go:208 loaded 90 Rego rules from 35 rego files (91 metadata files). 2021-04-08T17:07:42.023+0200 debug runtime/executor.go:127 initialized executor 2021-04-08T17:07:42.487+0200 debug downloader/getter.go:49 downloading "git::https://github.com/cloudposse/terraform-aws-acm-request-certificate?ref=0.13.1" to "/var/folders/6d/_52665zs4cgb29z7kl7rqyk40000gn/T/8vrb80" 2021-04-08T17:07:42.487+0200 debug downloader/getter.go:57 remote URL: "git::https://github.com/cloudposse/terraform-aws-acm-request-certificate?ref=0.13.1"; url with type: "git::https://github.com/cloudposse/terraform-aws-acm-request-certificate?ref=0.13.1" 2021-04-08T17:07:42.487+0200 debug downloader/getter.go:78 download with remote url: "git::https://github.com/cloudposse/terraform-aws-acm-request-certificate?ref=0.13.1", destination dir: "/var/folders/6d/_52665zs4cgb29z7kl7rqyk40000gn/T/8vrb80" 2021-04-08T17:07:42.487+0200 debug downloader/getter.go:49 downloading "git::https://github.com/cloudposse/terraform-aws-acm-request-certificate?ref=0.13.1" to "/var/folders/6d/_52665zs4cgb29z7kl7rqyk40000gn/T/8vrb80" 2021-04-08T17:07:42.487+0200 debug downloader/getter.go:57 remote URL: "git::https://github.com/cloudposse/terraform-aws-acm-request-certificate?ref=0.13.1"; url with type: "git::https://github.com/cloudposse/terraform-aws-acm-request-certificate?ref=0.13.1" 2021-04-08T17:07:43.625+0200 debug downloader/getter.go:49 downloading "git::https://github.com/cloudposse/terraform-null-label?ref=0.22.1" to "/var/folders/6d/_52665zs4cgb29z7kl7rqyk40000gn/T/6p6k1h" 2021-04-08T17:07:43.626+0200 debug downloader/getter.go:57 remote URL: "git::https://github.com/cloudposse/terraform-null-label?ref=0.22.1"; url with type: "git::https://github.com/cloudposse/terraform-null-label?ref=0.22.1" 2021-04-08T17:07:43.626+0200 debug downloader/getter.go:78 download with remote url: "git::https://github.com/cloudposse/terraform-null-label?ref=0.22.1", destination dir: "/var/folders/6d/_52665zs4cgb29z7kl7rqyk40000gn/T/6p6k1h" 2021-04-08T17:07:43.626+0200 debug downloader/getter.go:49 downloading "git::https://github.com/cloudposse/terraform-null-label?ref=0.22.1" to "/var/folders/6d/_52665zs4cgb29z7kl7rqyk40000gn/T/6p6k1h" 2021-04-08T17:07:43.626+0200 debug downloader/getter.go:57 remote URL: "git::https://github.com/cloudposse/terraform-null-label?ref=0.22.1"; url with type: "git::https://github.com/cloudposse/terraform-null-label?ref=0.22.1" 2021-04-08T17:07:44.269+0200 debug commons/load-dir.go:143 traversing through all modules in config tree 2021-04-08T17:07:44.269+0200 debug commons/resource.go:62 created resource config for resource 'private', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/network.tf' 2021-04-08T17:07:44.269+0200 debug commons/variable-references.go:113 resolving variable ref "${var.az_count}" in parent module call 2021-04-08T17:07:44.269+0200 debug commons/variable-references.go:57 extracted variable name "az_count" from reference "${var.az_count}" 2021-04-08T17:07:44.270+0200 debug commons/variable-references.go:84 resolved variable ref '${var.az_count}', value: '2' 2021-04-08T17:07:44.270+0200 debug commons/variable-references.go:94 resolved str variable ref: '${var.az_count}', value: '2' 2021-04-08T17:07:44.270+0200 debug commons/resource.go:62 created resource config for resource 'db_param_group', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/rds.tf' 2021-04-08T17:07:44.270+0200 debug commons/resource.go:62 created resource config for resource 'up', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/auto_scaling.tf' 2021-04-08T17:07:44.271+0200 debug commons/resource.go:62 created resource config for resource 'SMTP_ro', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/iam.tf' 2021-04-08T17:07:44.271+0200 debug commons/resource.go:62 created resource config for resource 'charitee_log_stream', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/logs.tf' 2021-04-08T17:07:44.271+0200 debug commons/resource.go:62 created resource config for resource 'main', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/network.tf' 2021-04-08T17:07:44.271+0200 debug commons/resource.go:62 created resource config for resource 'public', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/network.tf' 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:113 resolving variable ref "${var.az_count}" in parent module call 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:57 extracted variable name "az_count" from reference "${var.az_count}" 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:84 resolved variable ref '${var.az_count}', value: '2' 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:94 resolved str variable ref: '${var.az_count}', value: '2' 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:113 resolving variable ref "${cidrsubnet(aws_vpc.main.cidr_block, 8, var.az_count + count.index)}" in parent module call 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:57 extracted variable name "az_count" from reference "${cidrsubnet(aws_vpc.main.cidr_block, 8, var.az_count + count.index)}" 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:84 resolved variable ref '${cidrsubnet(aws_vpc.main.cidr_block, 8, var.az_count + count.index)}', value: '2' 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:94 resolved str variable ref: '${cidrsubnet(aws_vpc.main.cidr_block, 8, var.az_count + count.index)}', value: '${cidrsubnet(aws_vpc.main.cidr_block, 8, 2 + count.index)}' 2021-04-08T17:07:44.271+0200 debug commons/resource.go:62 created resource config for resource 'gw', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/network.tf' 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:113 resolving variable ref "${var.az_count}" in parent module call 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:57 extracted variable name "az_count" from reference "${var.az_count}" 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:84 resolved variable ref '${var.az_count}', value: '2' 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:94 resolved str variable ref: '${var.az_count}', value: '2' 2021-04-08T17:07:44.271+0200 debug commons/resource.go:62 created resource config for resource 'ecs_task_execution_role', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/roles.tf' 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:113 resolving variable ref "${var.ecs_task_execution_role_name}" in parent module call 2021-04-08T17:07:44.271+0200 debug commons/variable-references.go:57 extracted variable name "ecs_task_execution_role_name" from reference "${var.ecs_task_execution_role_name}" 2021-04-08T17:07:44.272+0200 debug commons/variable-references.go:84 resolved variable ref '${var.ecs_task_execution_role_name}', value: 'myEcsTaskExecutionRole' 2021-04-08T17:07:44.272+0200 debug commons/variable-references.go:94 resolved str variable ref: '${var.ecs_task_execution_role_name}', value: 'myEcsTaskExecutionRole' 2021-04-08T17:07:44.272+0200 debug commons/resource.go:62 created resource config for resource 'ses_verification', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/route53.tf' 2021-04-08T17:07:44.272+0200 debug commons/resource.go:62 created resource config for resource 'lb', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/security.tf' 2021-04-08T17:07:44.272+0200 debug commons/resource.go:62 created resource config for resource 'target', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/auto_scaling.tf' 2021-04-08T17:07:44.272+0200 debug commons/resource.go:62 created resource config for resource 'service_cpu_low', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/auto_scaling.tf' 2021-04-08T17:07:44.272+0200 debug commons/resource.go:62 created resource config for resource 'app', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/lb.tf' 2021-04-08T17:07:44.272+0200 debug commons/variable-references.go:113 resolving variable ref "${var.app_port}" in parent module call 2021-04-08T17:07:44.272+0200 debug commons/variable-references.go:57 extracted variable name "app_port" from reference "${var.app_port}" 2021-04-08T17:07:44.272+0200 debug commons/variable-references.go:84 resolved variable ref '${var.app_port}', value: '443' 2021-04-08T17:07:44.272+0200 debug commons/variable-references.go:97 resolved variable ref: '${var.app_port}', value: '443' 2021-04-08T17:07:44.272+0200 debug commons/resource.go:62 created resource config for resource 'ecs_tasks', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/security.tf' 2021-04-08T17:07:44.272+0200 debug commons/resource.go:62 created resource config for resource 'zoho_mx', file: '/Users/hassanalinali/Developer/charitee-backend/terraform/route53.tf' 2021-04-08T17:07:44.272+0200 debug commons/variable-references.go:113 resolving variable ref "${var.zoho_mx_records}" in parent module call 2021-04-08T17:07:44.272+0200 debug commons/variable-references.go:57 extracted variable name "zoho_mx_records" from reference "${var.zoho_mx_records}" 2021-04-08T17:07:44.272+0200 debug downloader/module-download.go:149 deleting "git::https://github.com/cloudposse/terraform-aws-acm-request-certificate?ref=0.13.1" installed at "/var/folders/6d/_52665zs4cgb29z7kl7rqyk40000gn/T/8vrb80" 2021-04-08T17:07:44.278+0200 debug downloader/module-download.go:149 deleting "git::https://github.com/cloudposse/terraform-null-label?ref=0.22.1" installed at "/var/folders/6d/_52665zs4cgb29z7kl7rqyk40000gn/T/6p6k1h" panic: not a string goroutine 1 [running]: github.com/zclconf/go-cty/cty.Value.AsString(0x6180b10, 0xc0003e52b8, 0x5dd2f20, 0xc003f60150, 0xc003f60150, 0x6180b10) github.com/zclconf/go-cty@v1.7.1/cty/value_ops.go:1251 +0x1a5 github.com/zclconf/go-cty/cty.Value.AsValueMap(0x6180c60, 0xc005fe8cf0, 0x5a68ce0, 0xc005fe8d08, 0xc001eae1a0) github.com/zclconf/go-cty@v1.7.1/cty/value_ops.go:1323 +0x1ae github.com/accurics/terrascan/pkg/iac-providers/terraform/commons.ctyToMap(0x6180c60, 0xc005fe8cf0, 0x5a68ce0, 0xc005fe8d08, 0x5a68ce0, 0x70905e0, 0x6139d80, 0xc0007f9060) github.com/accurics/terrascan/pkg/iac-providers/terraform/commons/cty-converters.go:86 +0x6a github.com/accurics/terrascan/pkg/iac-providers/terraform/commons.(*RefResolver).ResolveVarRef(0xc0056c6ce0, 0xc0007fdcf8, 0x16, 0x5aa91c0, 0xc0007f8fb0) github.com/accurics/terrascan/pkg/iac-providers/terraform/commons/variable-references.go:83 +0x1c5 github.com/accurics/terrascan/pkg/iac-providers/terraform/commons.(*RefResolver).ResolveStrRef(0xc0056c6ce0, 0xc0007fdcf8, 0x16, 0x3, 0xc003ede898) github.com/accurics/terrascan/pkg/iac-providers/terraform/commons/references.go:166 +0x2b4 github.com/accurics/terrascan/pkg/iac-providers/terraform/commons.(*RefResolver).ResolveRefs(0xc0056c6ce0, 0xc003f60060, 0x1a) github.com/accurics/terrascan/pkg/iac-providers/terraform/commons/references.go:70 +0x1b2 github.com/accurics/terrascan/pkg/iac-providers/terraform/commons.LoadIacDir(0xc000975e80, 0x39, 0xc003f4fb00, 0xc003a22f01, 0xc005defaa0) github.com/accurics/terrascan/pkg/iac-providers/terraform/commons/load-dir.go:163 +0x775 github.com/accurics/terrascan/pkg/iac-providers/terraform/v14.(*TfV14).LoadIacDir(0x708e330, 0xc000975e80, 0x39, 0x0, 0x0, 0xc002b71578) github.com/accurics/terrascan/pkg/iac-providers/terraform/v14/load-dir.go:29 +0x35 github.com/accurics/terrascan/pkg/runtime.(*Executor).Execute(0xc0001caa00, 0x0, 0x0, 0x0, 0xc000841a10, 0x1, 0x1, 0x0, 0x0) github.com/accurics/terrascan/pkg/runtime/executor.go:138 +0xcaf github.com/accurics/terrascan/pkg/cli.(*ScanOptions).Run(0xc00014e6c0, 0x0, 0x0) github.com/accurics/terrascan/pkg/cli/run.go:182 +0x395 github.com/accurics/terrascan/pkg/cli.(*ScanOptions).Scan(0xc00014e6c0, 0xc000633dff, 0x0) github.com/accurics/terrascan/pkg/cli/run.go:106 +0x285 github.com/accurics/terrascan/pkg/cli.scan(0x703a4a0, 0xc000141c60, 0x0, 0x2, 0x0, 0x0) github.com/accurics/terrascan/pkg/cli/scan.go:50 +0xef github.com/spf13/cobra.(*Command).execute(0x703a4a0, 0xc000141c40, 0x2, 0x2, 0x703a4a0, 0xc000141c40) github.com/spf13/cobra@v1.1.1/command.go:850 +0x472 github.com/spf13/cobra.(*Command).ExecuteC(0x703a200, 0x708dec0, 0x0, 0x0) github.com/spf13/cobra@v1.1.1/command.go:958 +0x375 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.1.1/command.go:895 github.com/accurics/terrascan/pkg/cli.Execute() github.com/accurics/terrascan/pkg/cli/register.go:69 +0x3dd main.main() github.com/accurics/terrascan/cmd/terrascan/main.go:22 +0x25 ```
patilpankaj212 commented 3 years ago

Thanks @hassanalinali, looking at the logs, panic was generated while resolving the value of variable zoho_mx_records in /Users/hassanalinali/Developer/charitee-backend/terraform/route53.tf. Is it possible for you to share a sample config, with which we can replicate?

alinalihassan commented 3 years ago

Yes, it's just a list of strings.

variable "zoho_mx_records" {
  description = "Zoho MX records"
  default     = ["10 mx.zoho.eu", "20 mx2.zoho.eu", "30 mx3.zoho.eu"]
}
patilpankaj212 commented 3 years ago

@hassanalinali, can you please add a type to that variable and try to scan again?

variable "zoho_mx_records" {
  type    = list(string)
  description = "Zoho MX records"
  default     = ["10 mx.zoho.eu", "20 mx2.zoho.eu", "30 mx3.zoho.eu"]
}

let me know if this resolves the isssue.

alinalihassan commented 3 years ago

It does work properly if I specify the type for all of my lists. Is this an intentional limitation of the parser or could it be fixed easily?

patilpankaj212 commented 3 years ago

It looks like a defect in the ref resolver, but would need to debug around that. For now would declaring the type of the variable work for you? Also, terraform documentation recommends the use of type for the variable https://www.terraform.io/docs/language/values/variables.html#type-constraints

alinalihassan commented 3 years ago

Yes, that works! I will close the issue and thanks for helping me!