Skip to content
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

(PA-5266) Change checksum algorithm to SHA256 #670

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

mhashizume
Copy link
Contributor

Prior to this commit, the puppet_agent::prepare::package class used the sha256lite algorithm in the file resource for local installation packages.

In certain circumstances (e.g. when a download is interrupted), this checksum, which only checks the first N bytes, does not provide sufficient information to determine if the file is actually there.

This commit updates the file resource to use the more complete sha256 algorithm to handle cases like this.

@mhashizume mhashizume requested a review from a team as a code owner September 22, 2023 23:59
@mhashizume mhashizume force-pushed the PA-5266/main/prepare-digest branch from 32e82d9 to 8fc3a27 Compare September 23, 2023 15:09
Prior to this commit, the puppet_agent::prepare::package class used the
sha256lite algorithm in the file resource for local installation
packages.

In certain circumstances (e.g. when a download is interrupted), this
checksum, which only checks the first N bytes, does not provide
sufficient information to determine if the file is actually there.

This commit removes the checksum attribute altogether, which causes the
file resource to use its default algorithm, sha256. This algorithm
should handle circumstances like those outlined above.
@mhashizume mhashizume force-pushed the PA-5266/main/prepare-digest branch from 8fc3a27 to c8c47cb Compare September 25, 2023 16:13
@cthorn42 cthorn42 merged commit f78b136 into puppetlabs:main Sep 25, 2023
16 checks passed
@mhashizume mhashizume deleted the PA-5266/main/prepare-digest branch September 26, 2023 15:58
@mhashizume mhashizume added the enhancement New feature or request label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants