-
Notifications
You must be signed in to change notification settings - Fork 2.2k
(PUP-10583) Change default digest_algorithm to SHA256 #8315
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
(PUP-10583) Change default digest_algorithm to SHA256 #8315
Conversation
|
@joshcooper I skipped the following test
md5 and still run it?
|
|
The |
|
CLA signed by all contributors. |
Puppet's `digest_algorithm` setting defaults to `md5`, which is outdated. This commit switches it to to `sha256`. Update spec tests accordingly.
537b084 to
f9ce353
Compare
|
Looks good! I forgot about a couple of other areas where md5 is still referenced/used:
|
6a0004a to
5ceb33c
Compare
|
@joshcooper I pushed a separate commit with the latest changes so it's easier to review. Let me know if I missed anything. There was some non-ASCII whitespace at 5ceb33c#diff-908b50f77db1b5645f5c125514deccd3R798 which I removed. |
|
LGTM, also locally tested filebucket, and it works as expected. |
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.
LGTM. One nit, could you update the commit message for 5ceb33c to mention that it changes the checksum precedence.
|
jenkins please test this on redhat7-64a,ubuntu1804-64a,windows2019-64a with servertests |
Prefer `sha256` and other SHA algorithms over `md5` and `md5lite`. Update docs to refer to SHA256 as the default digest algorithm. Change md5-related variable names in the filebucket application to more general names.
Update filebucket specs to not make assumptions about the type of digest used.
983310f to
367db85
Compare
Now that sha256 is the default digest, md5 filebucketing fails. Previously a sha256 manifest was only applied on FIPS agents. Change the test to always use sha256.
367db85 to
efa72c2
Compare
|
jenkins please test this on redhat7-64a,ubuntu1804-64a,windows2019-64a with servertests |
|
Dang, I forgot there were some CI failures when running |
The default digest algorithm was changed in puppet 7 to sha256.[1] Update the acceptance test to work regardless of puppet version. [1] puppetlabs/puppet#8315
The default digest algorithm was changed in puppet 7 to sha256.[1] Update the acceptance test to work regardless of puppet version. [1] puppetlabs/puppet#8315
Puppet default digest algorithm was changed to sha256 puppetlabs/puppet#8315 This commit updates the compatibilty test to specify the checksum explicitly as `sha256`
Puppet's
digest_algorithmsetting defaults tomd5, which is outdated. This commit switches it to tosha256.Update spec tests accordingly.