Skip to content

Commit

Permalink
fix(sws/cloudfront): wrong check tls version (#928)
Browse files Browse the repository at this point in the history
Co-authored-by: Adrien Frediani <frediani.adrien@fairway.digital>
  • Loading branch information
frediana and Adrien Frediani committed Jul 12, 2021
1 parent 656744d commit 73bcc12
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package accurics
package accurics

{{.prefix}}cloudfrontNoSecureCiphers[retVal]{
cloudfront = input.aws_cloudfront_distribution[_]
Expand All @@ -11,9 +11,9 @@ package accurics
}

minimumAllowedProtocolVersion(currentVersion) {
currentVersion == "TLSv1.1"
startswith(currentVersion, "TLSv1.1")
}

minimumAllowedProtocolVersion(currentVersion) {
currentVersion == "TLSv1.2"
}
startswith(currentVersion, "TLSv1.2")
}

0 comments on commit 73bcc12

Please sign in to comment.