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

chore(ec2): reduce noise in Security Groups checks #2525

Merged
merged 4 commits into from
Jun 23, 2023
Merged

Conversation

sergargar
Copy link
Member

Description

Reduce noise in Security Groups checks (if a security group has all ports open, only create one finding).

License

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

@sergargar sergargar requested a review from a team as a code owner June 22, 2023 14:52
Copy link
Member

@jfagoagas jfagoagas left a comment

Choose a reason for hiding this comment

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

This is awesome but could you please update the EC2 service tests and include a new test to verify the new public_ports attribute? Thanks!

@sergargar sergargar requested a review from jfagoagas June 23, 2023 11:14
@@ -34,6 +35,15 @@ def set_mocked_audit_info(self):
organizations_metadata=None,
audit_resources=None,
mfa_enabled=False,
audit_metadata=Audit_Metadata(
services_scanned=0,
# We need to set this check to call __list_functions__
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# We need to set this check to call __list_functions__
# We need to set this check to call __list_functions__

@@ -46,6 +47,15 @@ def set_mocked_audit_info(self):
organizations_metadata=None,
audit_resources=None,
mfa_enabled=False,
audit_metadata=Audit_Metadata(
services_scanned=0,
# We need to set this check to call __list_functions__
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# We need to set this check to call __list_functions__

@sergargar sergargar requested a review from jfagoagas June 23, 2023 12:13
@jfagoagas jfagoagas added the provider/aws Issues/PRs related with the AWS provider label Jun 23, 2023
@sergargar sergargar merged commit c2a05da into master Jun 23, 2023
4 checks passed
@sergargar sergargar deleted the reduce-sg-noise branch June 23, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/aws Issues/PRs related with the AWS provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants