Set TLS minimum version to 1.2#12689
Conversation
Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick
left a comment
There was a problem hiding this comment.
Thanks for splitting up PR :)
6543
left a comment
There was a problem hiding this comment.
do this is need a opt out? Via app.ini ?
As there is a way for users to use less secure way (reverse proxy in front of gitea configured with lower TLS version) I'm ok if we don't provide opt-out. |
|
yes had that in mind too - just like to have a bit consent :) |
Codecov Report
@@ Coverage Diff @@
## master #12689 +/- ##
==========================================
- Coverage 43.33% 43.33% -0.01%
==========================================
Files 645 645
Lines 71526 71527 +1
==========================================
Hits 30994 30994
- Misses 35516 35518 +2
+ Partials 5016 5015 -1
Continue to review full report at Codecov.
|
|
This is a breaking change we should mention on release notes. |
Partial of #10602
Changes to TLS
Currently, Gitea allows TLS 1.0 and TLS 1.1 for HTTPS connections. These versions of TLS have long been deprecated due to security vulnerabilities, and are also no longer necessary for wide browser compatibility. The change I propose in this pull request sets TLS 1.2 as the minimum TLS version, with additional support for TLS 1.3.
On SSLLabs, we can see the difference. Before the changes:
After the changes:
Closes #10602
Signed-off-by: Andrew Thornton art27@cantab.net