Skip to content

Commit 463b19e

Browse files
committed
Deny Wiz access to objects in S3
Instead of explicitly preventing Wiz from interacting with certain buckets, we are instead globally denying it access to any files in S3. This ensures that sensitive data on S3 cannot be leaked, while also reducing the maintenance burden to keep a list of buckets up-to-date.
1 parent 74255a0 commit 463b19e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

terragrunt/modules/wiz/main.tf

+2-7
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,11 @@ resource "aws_iam_role_policy" "tf-policy" {
170170
},
171171
{
172172
"Action" : [
173-
"s3:*",
173+
"s3:GetObject"
174174
],
175175
"Effect" : "Deny",
176176
"Resource" : [
177-
"arn:aws:s3:::*terraform*",
178-
"arn:aws:s3:::*tfstate*",
179-
"arn:aws:s3:::*tf?state*",
180-
"arn:aws:s3:::*cloudtrail*",
181-
"arn:aws:s3:::elasticbeanstalk-*",
182-
"arn:aws:s3:::rust-release-keys",
177+
"*"
183178
],
184179
"Sid" : "WizAccessS3"
185180
}

0 commit comments

Comments
 (0)