bug(cloudformation): false positive kms key rotation disabled is reported on ineligible keys #7337
Labels
aws
PR related with AWS Cloud
bug
Something isn't working
cloudformation
CloudFormation query
community
Community contribution
GIven the following resource, kics will report issue "KMS Key Rotation Disabled"
AWS documentation (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-enablekeyrotation) states:
Expected Behavior
"KMS Key Rotation Disabled" is reported only on symmetric encryption keys that support EnableKeyRotation=True
"KMS Key Rotation Disabled" is not reported on ineligible keys - i.e. asymmetric keys, EXTERNAL Origin keys, HMAC keys
Actual Behavior
"KMS Key Rotation Disabled" is reported as an issue on asymmetric keys
Steps to Reproduce the Problem
Scan CloudFormation template containing resource:
Specifications
(N/A if not applicable)
The text was updated successfully, but these errors were encountered: