You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prowler aws --region eu-west-2 --checks-folder custom_checks --check kms_key_not_multiregional
# Note: "kms_key_not_multiregional" is a custom check that needs to check multi-region status of keys in an account
Cloud provider you are launching
AWS
Environment you have, like single account, multi-account, organizations, multi or single subscription, etc.
Single account, as well as Organizations
See error
When developing a custom check to check the multi-region status of keys created in an AWS account, I discovered
that the Key class
was missing a field for MultiRegion field of a KMS key metadata. The resulting error is given below:
E AttributeError: 'Key' object has no attribute 'multi_region'
Expected behavior
A field that contains the value of KeyMetadata.MultiRegion is available in the KMS Key class
Actual Result with Screenshots or Logs
E AttributeError: 'Key' object has no attribute 'multi_region'
How did you install Prowler?
From pip package (pip install prowler)
Environment Resource
Workstation
OS used
MacOS
Prowler version
5.2.0
Pip version
25.0
Context
When developing a custom check to check the multi-region status of keys created in an AWS account, I discovered
that the Key class
was missing a field for MultiRegion field of a KMS key metadata. The resulting error is given below:
E AttributeError: 'Key' object has no attribute 'multi_region'
Proposed solution
Add missing multi_region field to KMS Key class to store the value of KeyMetadata.MultiRegion that is available in the KMS DescribeKey api response
Steps to Reproduce
Description
prowler aws --region eu-west-2 --checks-folder custom_checks --check kms_key_not_multiregional # Note: "kms_key_not_multiregional" is a custom check that needs to check multi-region status of keys in an account
AWS
Single account, as well as Organizations
When developing a custom check to check the multi-region status of keys created in an AWS account, I discovered
that the Key class
was missing a field for
MultiRegion
field of a KMS key metadata. The resulting error is given below:Expected behavior
A field that contains the value of
KeyMetadata.MultiRegion
is available in the KMS Key classActual Result with Screenshots or Logs
How did you install Prowler?
From pip package (pip install prowler)
Environment Resource
Workstation
OS used
MacOS
Prowler version
5.2.0
Pip version
25.0
Context
When developing a custom check to check the multi-region status of keys created in an AWS account, I discovered
that the Key class
was missing a field for
MultiRegion
field of a KMS key metadata. The resulting error is given below:Proposed solution
multi_region
field to KMS Key class to store the value ofKeyMetadata.MultiRegion
that is available in the KMS DescribeKey api responseSee example output here
The text was updated successfully, but these errors were encountered: