Closed Marcus-James-Adams closed 3 years ago
azurerm_mssql_server
allows setting the Extended Auditing Policy using either the extended_auditing_policy
argument or the mssql_server_extended_auditing_policy
resource. Currently checkov
only supports the former use case.
Supporting mssql_server_extended_auditing_policy will be difficult to implement, as each check is run on each resource, and the check registry does not pass/expose all the resources/entities to the checks.
I see that in #155 that the feature to correlate multiple resources has been added in #1023, is there any example of how to do so? The #1023 PR is too big to go through
I see that in #155 that the feature to correlate multiple resources has been added in #1023, is there any example of how to do so? The #1023 PR is too big to go through
Nevermind, after going through the code base I realized that the YAML based checks supports correlating multiple resources. I've created a PR (#1818) to support this.
Check: CKV_AZURE_23: "Ensure that 'Auditing' is set to 'On' for SQL servers" FAILED for resource: azurerm_mssql_server.server File: /sql_server.tf:19-37 Guide: https://docs.bridgecrew.io/docs/bc_azr_logging_2
When using Checkov v1.0.861
However The auditing policy is set by the separate resource azurerm_mssql_server_extended_auditing_policy