Skip to content

Commit

Permalink
feat(arm): implement CKV_AZURE_58 for ARM (#5497)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Aug 31, 2023
1 parent 174c51d commit 90a0482
Show file tree
Hide file tree
Showing 4 changed files with 915 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from __future__ import annotations


from checkov.common.models.enums import CheckCategories
from checkov.arm.base_resource_negative_value_check import BaseResourceNegativeValueCheck


class SynapseWorkspaceEnablesManagedVirtualNetworks(BaseResourceNegativeValueCheck):
def __init__(self) -> None:
name = "Ensure that Azure Synapse workspaces enables managed virtual networks"
id = "CKV_AZURE_58"
supported_resources = ['Microsoft.Synapse/workspaces']
categories = [CheckCategories.NETWORKING]
super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)

def get_inspected_key(self) -> str:
return 'properties/managedVirtualNetwork'

def get_forbidden_values(self) -> str:
return "default"


check = SynapseWorkspaceEnablesManagedVirtualNetworks()
Loading

0 comments on commit 90a0482

Please sign in to comment.