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

Add EXCLUDED_BUCKET_NAMES set for aws_cloudtrail_s3_bucket_public.py policy #951

Merged
merged 4 commits into from
Nov 16, 2023

Conversation

egibs
Copy link
Contributor

@egibs egibs commented Nov 16, 2023

Background

The Events codepipeline-cloudtrail-placeholder-bucket Buckets are managed by AWS and are also public. This was causing the aws_cloudtrail_s3_bucket_public policy to alert when the buckets were inspected.

This PR adds an EXCLUDED_BUCKET_NAMES set for these buckets (and future buckets, if necessary) and also adds a list of AWS regions in order to build out the complete set of these bucket names.

Changes

  • Adds a function to return a list of AWS regions
  • Adds an EXCLUDED_BUCKET_NAMES set for buckets to ignore in the policy

Testing

  • Tests still pass as expected

@egibs egibs requested a review from a team November 16, 2023 16:18
@egibs egibs changed the title Creating common ancestor commit Add EXCLUDED_BUCKET_NAMES set for aws_cloudtrail_s3_bucket_public.py policy Nov 16, 2023
grantjoy
grantjoy previously approved these changes Nov 16, 2023
@egibs egibs merged commit 7b11c1f into main Nov 16, 2023
1 check passed
@egibs egibs deleted the egibs-add-excluded-buckets-to-s3-bucket-public-policy branch November 16, 2023 16:39
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.

3 participants