Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanochShayner authored Jul 15, 2024
1 parent efeb201 commit 9a4a79d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ class AzureDataExplorerDoubleEncryptionEnabled(BaseResourceValueCheck):
def __init__(self) -> None:
name: str = "Ensure that Azure Data Explorer uses double encryption"
id: str = "CKV_AZURE_75"
supported_resources: tuple = ("Microsoft.Compute/disks",)
categories: tuple = (CheckCategories.ENCRYPTION,)
supported_resources = ("Microsoft.Kusto/clusters",)
categories = (CheckCategories.ENCRYPTION,)
super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)

def get_inspected_key(self) -> str:
return "properties/doubleEncryptionEnabled"
return "properties/enableDoubleEncryption"

def get_expected_value(self) -> Any:
return True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": "10.3",
"administratorLogin": "admin",
"administratorLoginPassword": "admin123",
"doubleEncryptionEnabled": false,
"enableDoubleEncryption": false,
"storageProfile": {
"storageMB": "5120"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": "10.3",
"administratorLogin": "admin",
"administratorLoginPassword": "admin123",
"doubleEncryptionEnabled": true,
"enableDoubleEncryption": true,
"storageProfile": {
"storageMB": "5120"
}
Expand Down

0 comments on commit 9a4a79d

Please sign in to comment.