diff --git a/configs/projects/pe-bolt-server-runtime-main.rb b/configs/projects/pe-bolt-server-runtime-main.rb index 50df8a280..31d3f1f5d 100644 --- a/configs/projects/pe-bolt-server-runtime-main.rb +++ b/configs/projects/pe-bolt-server-runtime-main.rb @@ -10,6 +10,15 @@ proj.setting(:ruby_version, '3.2.2') proj.setting(:openssl_version, '3.0') + # We enable legacy algorithms for winrm transport. Currently the winrm transport + # does not work on FIPS, so in order to stay compliant we do not enable legacy algorithms + # on fips builds. + if proj.get_platform.name =~ /^redhatfips/ + proj.setting(:use_legacy_openssl_algos, false) + else + proj.setting(:use_legacy_openssl_algos, true) + end + instance_eval File.read(File.join(File.dirname(__FILE__), '_shared-pe-bolt-server_with_ruby.rb')) proj.component 'rubygem-prime' proj.component 'rubygem-rexml' diff --git a/configs/projects/pe-installer-runtime-main.rb b/configs/projects/pe-installer-runtime-main.rb index a62cdcee1..9d0f4f45f 100644 --- a/configs/projects/pe-installer-runtime-main.rb +++ b/configs/projects/pe-installer-runtime-main.rb @@ -36,8 +36,6 @@ ruby_base_version = proj.ruby_version.gsub(/(\d+)\.(\d+)\.(\d+)/, '\1.\2.0') proj.setting(:gem_home, File.join(proj.libdir, 'ruby', 'gems', ruby_base_version)) proj.setting(:gem_install, "#{proj.host_gem} install --no-document --local --bindir=#{proj.ruby_bindir}") - # Enable legacy openssl agls for wirnm - proj.setting(:use_legacy_openssl_algos, true) proj.setting(:artifactory_url, "https://artifactory.delivery.puppetlabs.net/artifactory") proj.setting(:buildsources_url, "#{proj.artifactory_url}/generic/buildsources")