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(security-groups): remove RFC1918 from ec2_securitygroup_allow_wide_open_public_ipv4 #4951

Merged

Conversation

pedrooot
Copy link
Member

@pedrooot pedrooot commented Sep 6, 2024

Context

#4936

Description

This check only ensures that netmask from IP are between 0 and 24, both not included. Updated the metadata and comments from check.

Checklist

License

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

@pedrooot pedrooot requested review from a team as code owners September 6, 2024 10:43
@github-actions github-actions bot added the provider/aws Issues/PRs related with the AWS provider label Sep 6, 2024
@jfagoagas jfagoagas added backport-to-v3 Backport PR to the v3 branch backport-to-v4.3 labels Sep 6, 2024
@jfagoagas jfagoagas self-requested a review September 6, 2024 10:51
Copy link

codecov bot commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.97%. Comparing base (e146491) to head (1c5d3f8).
Report is 1193 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4951   +/-   ##
=======================================
  Coverage   88.96%   88.97%           
=======================================
  Files         940      940           
  Lines       28777    28777           
=======================================
+ Hits        25602    25604    +2     
+ Misses       3175     3173    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jfagoagas jfagoagas merged commit 4d902e0 into master Sep 6, 2024
13 checks passed
@jfagoagas jfagoagas deleted the fix-ec2_securitygroup_allow_wide_open_public_ipv4-metadata branch September 6, 2024 11:42
prowler-bot pushed a commit that referenced this pull request Sep 6, 2024
@prowler-bot prowler-bot added the was-backported The PR was successfully backported to the target branch label Sep 6, 2024
prowler-bot pushed a commit that referenced this pull request Sep 6, 2024
@prowler-bot
Copy link
Collaborator

💚 All backports created successfully

Status Branch Result
v3
v4.3

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

@@ -10,7 +10,7 @@
"ResourceIdTemplate": "arn:partition:service:region:account-id:resource-id",
"Severity": "high",
"ResourceType": "AwsEc2SecurityGroup",
"Description": "Ensure no security groups allow ingress and egress from wide-open non-RFC1918 address.",
"Description": "Ensure no security groups allow ingress and egress from ide-open IP address with a mask between 0 and 24.",
Copy link

Choose a reason for hiding this comment

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

typo: should be wide ?

@jfagoagas jfagoagas added the backport-to-v4.3 Backport PR to the v4.3 branch label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-v3 Backport PR to the v3 branch backport-to-v4.3 Backport PR to the v4.3 branch provider/aws Issues/PRs related with the AWS provider was-backported The PR was successfully backported to the target branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants