Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(acm): Fix issues with list-certificates #1970

Merged
merged 2 commits into from
Feb 24, 2023

Conversation

jfagoagas
Copy link
Member

Context

There was an issue with the ACM service since we were retrieving the certificate data from the describe_certificate instead of the list_certificates and in the case of a Bad Request error from AWS the above checks were failing.

Description

  • Fix the following errors:
  • acm_certificates_expiration_check -- AttributeError[13]: 'Certificate' object has no attribute 'expiration_days'
  • acm_certificates_transparency_logs_enabled -- AttributeError[11]: 'Certificate' object has no attribute 'type'
  • Improve the test cases for the ACM service and the above checks.

Also I've fixed a flaky test from TrustedAdvisor since in some cases the AWS Region was not present in the client.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jfagoagas jfagoagas requested review from a team, drewkerrigan, thejaywhy and toniblyx February 24, 2023 08:14
@jfagoagas jfagoagas self-assigned this Feb 24, 2023
@jfagoagas jfagoagas requested review from n4ch04 and MrCloudSec and removed request for drewkerrigan and thejaywhy February 24, 2023 08:15
Copy link
Member

@MrCloudSec MrCloudSec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!!!

@MrCloudSec MrCloudSec merged commit 227306c into master Feb 24, 2023
@MrCloudSec MrCloudSec deleted the PRWLR-1619-prowler-fix-acm-issues branch February 24, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants