forked from rpm-software-management/rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't consider MD5 digest for package verification by default
MD5 is long long obsolete crypto-wise, and modern systems are starting to have trouble verifying them due to crypto policies denying the whole algorithm. Stop using the MD5 header+payload digest for verification. This renders all rpm v3 and v4 content built with older than rpm 4.14 unverifiable by digests only and thus uninstallable by default, so it's a fairly drastic change, but since it's just a configuration default, change, it's trivial to override locally for those who need it. Also the older content can still be verified by changing verification level to signature instead (assuming signatures use stronger crypto) Tests updated to match the new expectations, and in some cases doubled to test for both the old and new behavior. Couple of peculiarities too: with the MD5 digest out of the way, the PAYLOADDIGESTALT thing can now function as intended so the expectation on that test turns from fail to success. A weirder case is that since this makes us ignore the MD5 digest entirely, we can merrily sign a package with malformed MD5 hash if it's otherwise okay. Dealing with that is out of scope here, filed as rpm-software-management#3291. Related: rpm-software-management#1292
- Loading branch information
Showing
4 changed files
with
47 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters