puppetlabs / puppetlabs-puppet_agent

Module for managing Puppet-Agent
Apache License 2.0
41 stars 192 forks source link

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

Closed mhashizume closed 11 months ago

mhashizume commented 11 months ago

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.