This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Bundler disabling Compact Index on all FIPS-supported OpenSSL installations #5433
Labels
Comments
A PR with a fix for this would be much appreciated! |
Closed
bundlerbot
added a commit
that referenced
this issue
Feb 18, 2017
Enable compact index when OpenSSL FIPS mode is enabled but not active Fixes #5433. Since there is no easy accessor in Ruby to detect whether or not FIPS mode is currently active, the best approach I could come up with is to `fork` a separate process and attempt to generate a build MD5 object as a test of whether MD5 module is currently available. Because `fork` approach won't work on some platforms (JRuby, Windows etc), `md5_supported?` returns `false` on any platforms where FIPS mode is enabled and `Process.respond_to?(:fork)` is `false`. I've added a spec that simulates behavior when OpenSSL FIPS mode is active - an error message is output to STDERR and the process is killed with the `ABRT` signal.
segiddins
pushed a commit
that referenced
this issue
Feb 22, 2017
Enable compact index when OpenSSL FIPS mode is enabled but not active Fixes #5433. Since there is no easy accessor in Ruby to detect whether or not FIPS mode is currently active, the best approach I could come up with is to `fork` a separate process and attempt to generate a build MD5 object as a test of whether MD5 module is currently available. Because `fork` approach won't work on some platforms (JRuby, Windows etc), `md5_supported?` returns `false` on any platforms where FIPS mode is enabled and `Process.respond_to?(:fork)` is `false`. I've added a spec that simulates behavior when OpenSSL FIPS mode is active - an error message is output to STDERR and the process is killed with the `ABRT` signal. (cherry picked from commit 13f4cc1)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Since #5222, Bundler is disabling Compact Index on any system where OpenSSL is compiled with support for FIPS mode, regardless of whether or not FIPS mode is currently enabled on the process (e.g., by setting
OpenSSL.fips_mode = true
in Ruby).Compare the following:
FIPS mode supported but not enabled:
FIPS mode supported and enabled:
This bug is affecting current versions of Amazon Linux, which have
OpenSSL 1.0.1k-fips
installed by default.The text was updated successfully, but these errors were encountered: