From dc7838c1917db09840bbef4f34f625f17f8e5699 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sun, 2 Aug 2026 15:01:19 +0200 Subject: [PATCH] tools: add an OpenSSL FIPS build to test-shared.yml Signed-off-by: Filip Skokan PR-URL: https://github.com/nodejs/node/pull/64960 Fixes: https://github.com/nodejs/node/issues/48379 Reviewed-By: Antoine du Hamel Reviewed-By: Aviv Keller --- tools/dep_updaters/update-nixpkgs-pin.sh | 2 + tools/nix/openssl-fips.nix | 57 ++++++++++++++++++++++++ tools/nix/openssl-matrix.nix | 2 + 3 files changed, 61 insertions(+) create mode 100644 tools/nix/openssl-fips.nix diff --git a/tools/dep_updaters/update-nixpkgs-pin.sh b/tools/dep_updaters/update-nixpkgs-pin.sh index b6efae46847..ba1f0e6efcc 100755 --- a/tools/dep_updaters/update-nixpkgs-pin.sh +++ b/tools/dep_updaters/update-nixpkgs-pin.sh @@ -93,6 +93,8 @@ nix-instantiate -I "nixpkgs=$NIXPKGS_PIN_FILE" --eval --strict --json -E " inherit (pkgs) \(.attrs | sort | join("\n ")) ; + + openssl_fips = import ./openssl-fips.nix { }; }"' > "$OPENSSL_MATRIX_FILE" cat -</dev/null + openssl md5 /dev/null 2>&1 \ + && echo "MD5 unexpectedly available with FIPS properties enabled" >&2 \ + && exit 1 + + runHook postInstallCheck + ''; +}) diff --git a/tools/nix/openssl-matrix.nix b/tools/nix/openssl-matrix.nix index 8c62cae8119..56cc7d506ad 100644 --- a/tools/nix/openssl-matrix.nix +++ b/tools/nix/openssl-matrix.nix @@ -16,4 +16,6 @@ openssl_3_6 openssl_4_0 ; + + openssl_fips = import ./openssl-fips.nix { }; }