Skip to content

Commit 79214ec

Browse files
[IT-2431] Require secure access for ConfigAuditBucket
Secure the `ConfigAuditBucket` by denying any S3 API calls for the bucket that do not use TLS/HTTPS. This addresses a Security Hub finding from `cis-aws-foundations-benchmark/v/1.4.0/2.1.2`. Ref: https://repost.aws/knowledge-center/s3-bucket-policy-for-config-rule
1 parent 7059af4 commit 79214ec

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

org-formation/080-aws-config-inventory/config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ Resources:
6767
Condition:
6868
StringEquals:
6969
's3:x-amz-acl': 'bucket-owner-full-control'
70+
- Sid: AWSConfigBucketDenyInsecure
71+
Effect: Deny
72+
Principal: '*'
73+
Action: 's3:*'
74+
Resource:
75+
- !Sub '${ConfigAuditBucket.Arn}'
76+
- !Sub '${ConfigAuditBucket.Arn}/*'
77+
Condition:
78+
Bool:
79+
'aws:SecureTransport': 'false'
7080

7181
ConfigurationRecorder:
7282
Type: 'AWS::Config::ConfigurationRecorder'

0 commit comments

Comments
 (0)