Skip to content

Commit

Permalink
fix ckv_azure_6 for azapi
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Mar 6, 2025
1 parent b736fe4 commit 414c3db
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 89 deletions.
2 changes: 1 addition & 1 deletion policy/checkov/AKSApiServerAuthorizedIpRanges.azapi.rego
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ valid_azapi_kubernetes_cluster_api_server_authorized_ip_ranges(resource) if {
deny_CKV_AZURE_6 contains reason if {
resource := data.utils.resource(input, "azapi_resource")[_]
data.utils.is_azure_type(resource.values, "Microsoft.ContainerService/managedClusters")
not valid_azapi_kubernetes_cluster_api_server_authorized_ip_ranges(resource.changes.after)
not valid_azapi_kubernetes_cluster_api_server_authorized_ip_ranges(resource)

reason := sprintf("checkov/CKV_AZURE_6: Ensure AKS has an API Server Authorized IP Ranges enabled %s: https://github.com/bridgecrewio/checkov/blob/main/checkov/terraform/checks/resource/azure/AKSApiServerAuthorizedIpRanges.py", [resource.address])
}
32 changes: 0 additions & 32 deletions policy/checkov/AKSApiServerAuthorizedIpRanges.py

This file was deleted.

56 changes: 0 additions & 56 deletions policy/checkov/AKSApiServerAuthorizedIpRanges.tf

This file was deleted.

0 comments on commit 414c3db

Please sign in to comment.