-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Set TLS minimum version to 1.2 #12689
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
Set TLS minimum version to 1.2 #12689
Conversation
Signed-off-by: Andrew Thornton <art27@cantab.net>
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.
Thanks for splitting up PR :)
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.
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 :) |
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.
go secure :D
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