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(s3_bucket_level_public_access_block): check s3 public access block at account level #2653

Conversation

sergargar
Copy link
Member

Description

Mark as Pass if s3 public access block is configured at account level in s3_bucket_level_public_access_block.

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 August 1, 2023 08:08
@jfagoagas jfagoagas added the provider/aws Issues/PRs related with the AWS provider label Aug 1, 2023
jfagoagas
jfagoagas previously approved these changes Aug 1, 2023
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.

Awesome @sergargar, really nice fix!

@@ -5,6 +5,7 @@
from moto import mock_s3, mock_s3control

from prowler.providers.aws.lib.audit_info.models import AWS_Audit_Info
from prowler.providers.aws.services.s3.s3_service import S3Control
Copy link
Member

Choose a reason for hiding this comment

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

Please import this within each test, like S3

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@jfagoagas jfagoagas self-requested a review August 1, 2023 09:02
@sergargar sergargar merged commit 78f0b82 into master Aug 1, 2023
4 checks passed
@sergargar sergargar deleted the 2647-bug-s3_bucket_level_public_access_block-fails-even-though-public-access-is-blocked-at-the-account-level branch August 1, 2023 09:25
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.

[Bug]: s3_bucket_level_public_access_block FAILs, even though public access is blocked at the account level
2 participants