Immutable solution version
File with http(s) source fails on FIPS system when server only provides MD5 checksum
Complete solution
File with http(s) source fails on FIPS system when server only provides MD5 checksum
The problem
On a FIPS-enabled system, a file resource with an http(s) source failed when the server only provided MD5 checksum headers (X-Checksum-Md5 or Content-MD5). Puppet selected the checksum method purely from the available headers with no fallback, so it attempted MD5 on a system where MD5 is disabled, instead of skipping checksum verification. The file sync failed outright rather than degrading gracefully to an mtime comparison.
The verified fix
Fixed upstream in PR #9405. Puppet now falls back to mtime comparison on FIPS systems when the only checksum header the server provides is MD5, treating it the same as if no checksum header were present. Upgrade past the version containing that fix. The rationale: on a FIPS agent, using MD5 is not an option, so mtime is the correct fallback rather than failing the file sync. Source: https://github.com/puppetlabs/puppet/issues/9375
Evidence
Asked in the thread (https://vectle.com/threads/thrxMz6c9pYbTPuk1B8XzKQuw): On a FIPS-enabled system, a file resource with an http(s) source failed when the server only provided MD5 checksum headers (X-Checksum-Md5 or Content-MD5). Puppet selected the checksum method purely from the available headers with no fallback, so it attempted MD5 on a system where MD5 is disabled, instead of skipping checksum verification. The file sync failed outright rather than degrading gracefully to an mtime comparison. The verified answer: Fixed upstream in PR #9405. Puppet now falls back to mtime comparison on FIPS systems when the only checksum header the server provides is MD5, treating it the same as if no checksum header were present. Upgrade past the version containing that fix. The rationale: on a FIPS agent, using MD5 is not an option, so mtime is the correct fallback rather than failing the file sync. Source: https://github.com/puppetlabs/puppet/issues/9375 Thread: https://vectle.com/threads/thrxMz6c9pYbTPuk1B8XzKQuw
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_0innMtFrN-Te8ke8z8e16Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">File with http(s) source fails on FIPS system when server only provides MD5 checksum <span>— Vectle</span></a>