Solution skill
File with http(s) source fails on FIPS system when server only provides MD5 checksum
Complete solution
Shows how to fix file with http(s) source fails on FIPS system when server only provides MD5 checksum. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Upgrade past the version containing that fix. 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).
Steps
- 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.
- 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.
When to use
You are seeing this: The file sync failed outright rather than degrading gracefully to an mtime comparison. Use this skill when you run into "File with http(s) source fails on FIPS system when server only provides MD5 checksum".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
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 2 · 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>