-
Notifications
You must be signed in to change notification settings - Fork 903
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
Require checksums for HTTPS resources #895
Comments
Considering making this one an opt in feature |
This is up for discussion, please feel free to weigh in here. |
👍
Just my two cents. |
@TheFynx thanks. One thing to consider is that you can turn it on now in 0.10.0 already. The feature is set to allow empty checksums for secure connections by default. |
Going to hold on this one for a little while - I think the plan is to turn this on, but provide a little more time for folks to get their packages in order. |
I'm in agreement with @TheFynx on this one. This is one of the things I came here to mention, because I definitely think this should not be enabled by default. That is, it should not allow empty checksums just because the source is HTTPS by default. Just because a file is downloaded from an HTTPS site doesn't mean it couldn't be corrupted (either on the site or during the download) or replaced with a malicious version (if the site were compromised). HTTPS isn't a guarantee of a file's integrity; all it "guarantees" is that your connection to the file is secure. |
@vertigo220 we don't disagree with you here, and this is something that will get turned on by default. |
I'm confused, because you say it will get turned on by default, but I read that as the option to allow empty checksums for HTTPS will be enabled by default, which is the opposite of what I'm saying. Do you mean the need for checksums will be turned on by default? |
@vertigo220 apologies for the confusion - what was meant is that |
@vertigo220 for features choco has the ability for us to switch a default for a newer edition and if a user has not explicitly set the value, it will adjust automatically when the default changes. |
This will need a change to package-validator, to enforce this rule for all new package submissions as well: https://gitlab.com/chocolatey/community-infrastructure/package-validator/-/issues/143 |
With #112, we started requiring checksums for HTTP/FTP and provided an enabled feature to require checksums for HTTPS as well. If a checksum is missing in these scenarios, it would fail the package.
This switches the feature
allowEmptyChecksumsSecure
to disabled.The text was updated successfully, but these errors were encountered: