Skip to content

Commit

Permalink
Fixed issue with CKV_AZURE_227
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Defise committed Oct 12, 2023
1 parent 6039e9f commit 60dff0e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ def __init__(self) -> None:
missing_block_result=CheckResult.FAILED)

def get_inspected_key(self) -> str:
return "enable_host_encryption"
if self.entity_type == "azurerm_kubernetes_cluster":
return "default_node_pool/[0]/enable_host_encryption"
else:
return "enable_host_encryption"



check = AKSEncryptionAtHostEnabled()

0 comments on commit 60dff0e

Please sign in to comment.