Resource should allow specifying checksum other than SHA-256, e.g. SHA-512. #19059
Closed
1 task done
Labels
features
New features
Verification
brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.Provide a detailed description of the proposed feature
Formula resources should allow to have other than SHA-256 checksums added for verification purposes.
E.g.
Ideally the resource should allow multiple checksums and an optional size value as well.
What is the motivation for the feature?
I need to add resources to the formula for which only SHA-512 checksums are verifiably published. By adding the sha512 checksum into the formula, anybody can verify that the formula uses the unaltered resource.
If multiple checksums are provided, this further increases the certainty that the file is legit.
Adding the file length attribute protects against attack on the hash which stuff data at the end of the original stream.
How will the feature be relevant to at least 90% of Homebrew users?
SHA-512 is picking up in adoption, so the relevance will grow over time.
What alternatives to the feature have been considered?
Downloading/verifying/sha256-ing and putting that hash in to the resource description is not equivalent, as it loses the signature of the manifest file that original file's SHA-512 checksum had.
There is no true alternative to the feature, in fact, the only alternative is not to have a checksum at all, which is very undesired and generates warnings for a good reason.
The text was updated successfully, but these errors were encountered: