Skip to content

Commit a43942b

Browse files
authored
Merge pull request #9405 from AriaXLi/PUP-12047
(PUP-12047) Add logic to skip MD5 checksum method on a FIPS system
2 parents 8047d1c + 1f7c8ef commit a43942b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/puppet/file_serving/http_metadata.rb

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def collect
5151
# Prefer the checksum_type from the indirector request options
5252
# but fall back to the alternative otherwise
5353
[@checksum_type, :sha256, :sha1, :md5, :mtime].each do |type|
54+
next if type == :md5 && Puppet::Util::Platform.fips_enabled?
55+
5456
@checksum_type = type
5557
@checksum = @checksums[type]
5658
break if @checksum

0 commit comments

Comments
 (0)