-
-
Notifications
You must be signed in to change notification settings - Fork 248
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: set viewer_certificate.ssl_support_method to a non-empty value #208
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bridgecrew has found infrastructure configuration errors in this PR ⬇️
@@ -439,7 +439,7 @@ resource "aws_cloudfront_distribution" "default" { | |||
|
|||
viewer_certificate { | |||
acm_certificate_arn = var.acm_certificate_arn | |||
ssl_support_method = local.use_default_acm_certificate ? "" : "sni-only" | |||
ssl_support_method = "sni-only" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure CloudFront distribution has a strict security headers policy attached
Resource: aws_cloudfront_distribution.default | ID: BC_AWS_NETWORKING_65
@@ -439,7 +439,7 @@ resource "aws_cloudfront_distribution" "default" { | |||
|
|||
viewer_certificate { | |||
acm_certificate_arn = var.acm_certificate_arn | |||
ssl_support_method = local.use_default_acm_certificate ? "" : "sni-only" | |||
ssl_support_method = "sni-only" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify CloudFront Distribution Viewer Certificate is using TLS v1.2
Resource: aws_cloudfront_distribution.default | ID: BC_AWS_NETWORKING_63
How to Fix
resource "aws_cloudfront_distribution" "pass" {
...
viewer_certificate {
cloudfront_default_certificate = false
minimum_protocol_version = "TLSv1.2_2018"
}
}
Description
This policy identifies AWS CloudFront web distributions which are configured with TLS versions for HTTPS communication between viewers and CloudFront. As a best practice, use TLSv1.1_2016 or later as the minimum protocol version in your CloudFront distribution security policiesDependent Resources
Calculating...
🎉 Fixed by commit bb27c86 - Updated README.md
/rebuild-readme |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change details
-
Error ID Change Path Resource BC_AWS_NETWORKING_63 Fixed /main.tf aws_cloudfront_distribution.default
/test all |
Going to merge with BC "errors" unresolved because I have them fixed in #209 |
what
viewer_certificate.ssl_support_method
to a non-empty valuewhy
viewer_certificate.ssl_support_method
is being validated on plan-time and can no longer be an empty string but must besni-only
orvip
(of which the latter incurs costs)references