-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Expanded minimum RSA Keylength to 3072 #26604
Conversation
German Federal Office for Information Security requests in its technical guideline BSI TR-02102-1 RSA Keylength not shorter than 3000bits starting 2024, in the year 2023 3000bits as a recommendation. Gitea should request longer RSA Keys by default in favor of security and drop old clients which do not support shorter keys.
CI fails, the test code also needs to be updated accordingly. Would you like to fix them or would you like some maintainers to edit this PR to help? |
Searched again and found way more occurences of 2048 bit RSA. gitea/models/asymkey/ssh_key_test.go Line 31 in a4cfeae
|
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.
Vote the approval ahead since it looks good.
While I do not think it is "breaking" because the existing short ssh keys could still be used if I understand correctly.
CI still fails |
Unit test need a refactor. |
Honestly dont know what to do. Please help. |
No worries,
Please run This is the trace from error |
🚀 |
CI passes. And IMO this is not "breaking", all uploaded/generated keys are not affected, so removed the "breaking" label. Feel free to add the breaking label back if it is really breaking (with detailed breaking description and what users should do to handle the breaking) |
Thank both of you! |
* giteaofficial/main: Fix bug for ctx usage (go-gitea#26762) Remove some transition related code (go-gitea#26755) Expanded minimum RSA Keylength to 3072 (go-gitea#26604) [skip ci] Updated licenses and gitignores Use docs.gitea.com instead of docs.gitea.io (go-gitea#26739) Adding hint `Archived` to archive label. (go-gitea#26741) # Conflicts: # templates/base/head_navbar.tmpl
I added a missing |
German Federal Office for Information Security requests in its technical guideline BSI TR-02102-1 RSA Keylength not shorter than 3000bits starting 2024, in the year 2023 3000bits as a recommendation. Gitea should request longer RSA Keys by default in favor of security and drop old clients which do not support longer keys.
https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Publikationen/TechnischeRichtlinien/TR02102/BSI-TR-02102.pdf?__blob=publicationFile&v=9 - Page 19, Table 1.2