Skip to content

Commit 885b51b

Browse files
authored
Update aws-cloudfront-insecure-tls rule (#3705)
This updates aws-cloudfront-insecure-tls rule to account for the addition of aws cloudfront support for TLSv1.2_2025 and TLSv1.3_2025
1 parent 518f71b commit 885b51b

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

terraform/aws/security/aws-cloudfront-insecure-tls.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,31 @@ rules:
3939
}
4040
...
4141
}
42+
- pattern-not-inside: |
43+
resource "aws_cloudfront_distribution" $ANYTHING {
44+
...
45+
viewer_certificate {
46+
...
47+
minimum_protocol_version = "TLSv1.2_2025"
48+
...
49+
}
50+
...
51+
}
52+
- pattern-not-inside: |
53+
resource "aws_cloudfront_distribution" $ANYTHING {
54+
...
55+
viewer_certificate {
56+
...
57+
minimum_protocol_version = "TLSv1.3_2025"
58+
...
59+
}
60+
...
61+
}
4262
message: >-
4363
Detected an AWS CloudFront Distribution with an insecure TLS version.
4464
TLS versions less than 1.2 are considered insecure because they
4565
can be broken. To fix this, set your `minimum_protocol_version` to
46-
`"TLSv1.2_2018", "TLSv1.2_2019" or "TLSv1.2_2021"`.
66+
`"TLSv1.2_2018", "TLSv1.2_2019", "TLSv1.2_2021", "TLSv1.2_2025" or "TLSv1.3_2025"`.
4767
metadata:
4868
category: security
4969
technology:

0 commit comments

Comments
 (0)