mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fix(kms): call GetKeyRotationStatus only for Customer Keys (#1842)
This commit is contained in:
@@ -73,7 +73,7 @@ class KMS:
|
||||
logger.info("KMS - Get Key Rotation Status...")
|
||||
try:
|
||||
for key in self.keys:
|
||||
if "EXTERNAL" not in key.origin:
|
||||
if "EXTERNAL" not in key.origin and "AWS" not in key.manager:
|
||||
regional_client = self.regional_clients[key.region]
|
||||
key.rotation_enabled = regional_client.get_key_rotation_status(
|
||||
KeyId=key.id
|
||||
|
||||
Reference in New Issue
Block a user