s3: add support for TlsVersion condition key in Bucket #27279
Labels
@aws-cdk/aws-s3
Related to Amazon S3
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p1
Describe the feature
Currently the
aws_s3.Bucket
constructor has a flag forenforce_ssl
. However, this only mandates that TLS is used, not which version of TLS.Recently, S3 added support for restriction which version of TLS is allowed via the
s3:TlsVersion
condition key. https://repost.aws/knowledge-center/s3-enforce-modern-tlsPlease add another constructor parameter
enforce_minimum_tls_version
to specify the minimum version.Open question: If
enforce_minimum_tls_version
is specified butenforce_ssl
is not, what happens? I believe it should default to mandating TLS. If you don't want that, you must explicitly passenforce_ssl=False
.Use Case
We want to follow modern security best practices.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.85.0
Environment details (OS name and version, etc.)
Alpine 3.18
The text was updated successfully, but these errors were encountered: