Closed
Description
Description
This issue purposes adding a build for Universal Base Image (UBI) 8.1, which is based on RHEL, to the CI system.
Motivation
The motivation for doing this is that UBI 8.1 contains a system OpenSSL version that has FIPS support and this build would be configured to dynamically link to that OpenSSL version. This would allow us to exercise the FIPS code path which is currently not done. This is not something that happens often but there has been one occasion where code was committed to master which failed to compiler when fips was enabled: nodejs/node@17d87d5
Docker build instructions
$ docker pull registry.access.redhat.com/ubi8:8.1
$ docker run --ipc=host -ti registry.access.redhat.com/ubi8:8.1 /bin/bash
$ yum install -y git gcc-c++ which make python3 openssl-devel procps-ng
$ git clone https://github.com/nodejs/node.git
$ cd node
$ update-crypto-policies --set LEGACY
$ export OPENSSL_ENABLE_MD5_VERIFY=true
$ ./configure --openssl-system-ca-path=/etc/pki/tls/certs/ca-bundle.crt --shared-openssl --openssl-is-fips
$ make -j8 test
Currently there is one test failure which is covered by nodejs/node#31715