prowler-cloud / prowler

Prowler is an Open Source Security tool for AWS, Azure, GCP and Kubernetes to do security assessments, audits, incident response, compliance, continuous monitoring, hardening and forensics readiness. Includes CIS, NIST 800, NIST CSF, CISA, FedRAMP, PCI-DSS, GDPR, HIPAA, FFIEC, SOC2, GXP, Well-Architected Security, ENS and more
https://prowler.com
Apache License 2.0
10.45k stars 1.49k forks source link

refactor(SecurityHub): create class to handle integration #4397

Closed jfagoagas closed 1 month ago

jfagoagas commented 1 month ago

Context

We want to move the Prowler integrations to a decoupled component.

Description

Create the SecurityHub class and update code accordingly. Now it uses the AWSSecurityFindingFormat.

The provider is no longer needed.

License

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

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 68.26923% with 33 lines in your changes missing coverage. Please review.

Project coverage is 87.65%. Comparing base (3d99e6e) to head (f37283f). Report is 8 commits behind head on master.

Files Patch % Lines
...ler/providers/aws/lib/security_hub/security_hub.py 71.00% 29 Missing :warning:
prowler/__main__.py 0.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #4397 +/- ## ========================================== - Coverage 87.66% 87.65% -0.02% ========================================== Files 851 851 Lines 26596 26606 +10 ========================================== + Hits 23315 23321 +6 - Misses 3281 3285 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.