Configure TLS protocol versions in SSLConfig
Configure TLS protocol versions in SSLConfig
This pull request adds the ability to configure TLS protocol versions in SSLConfig for HTTP servers.
Features
- Adds configurable TLS protocol versions support in SSLConfig with default TLSv1.3 and TLSv1.2
- Provides fine-grained control over TLS security settings, allowing disabling of older, less secure protocols
Changes
- Extended SSLConfig with optional protocols parameter
- Updated all factory methods to support the new configuration
- Updated documentation to reflect the new TLS protocol configuration options
- Fixed scalafmt formatting issues from the original PR
Based on the original work in #3714, which was closed due to binary compatibility issues and scalafmt errors.
Closes #3714
Deploy Preview for zio-http ready!
| Name | Link |
|---|---|
| Latest commit | 9f28ea349b65ce6f329e09782da6e11861c32e4e |
| Latest deploy log | https://app.netlify.com/projects/zio-http/deploys/6927fc5cf64dec00086fb42c |
| Deploy Preview | https://deploy-preview-3806--zio-http.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
You can't just ignore binary incompatibility. You have to solve it. You can rebase and use @unroll@ to fix it
@987Nabil please review
Why the manual unroll?
Why the manual unroll?
@unroll works fine on Scala 2, but fails to compile on Scala 3. I believe this is a bug or a limitation of the unroll plugin, likely related to the presence of additional apply methods in the SSLConfig companion object.