---
title: "Your Dependencies Don’t Care About Your FIPS Configuration"
description: "FIPS-enabled container images can still run non-FIPS crypto because prebuilt native dependencies bring their own crypto linkage."
url: "https://swe.quest/articles/your-dependencies-don-t-care-about-your-fips-configuration-c719fbf5e05d7dd0"
canonical: "https://www.docker.com/blog/fips-dependencies-and-prebuilt-binaries/"
source: "Docker"
published: "2026-01-22"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["supply-chain-security","cryptography","containers","ruby"]
---

# Your Dependencies Don’t Care About Your FIPS Configuration

A post on [Docker](https://swe.quest/sources/docker.md), published 2026-01-22, 5 min read, Case study. Original: [https://www.docker.com/blog/fips-dependencies-and-prebuilt-binaries/](https://www.docker.com/blog/fips-dependencies-and-prebuilt-binaries/)

## Summary

FIPS-enabled container images can still run non-FIPS crypto because prebuilt native dependencies bring their own crypto linkage. A Rails app on a correctly configured Ruby/OpenSSL 3 FIPS image hit crypto errors only through ActiveRecord, traced to a prebuilt libpq pulled in by the pg gem. The fix is to set force\_ruby\_platform: true for pg (or BUNDLE\_FORCE\_RUBY\_PLATFORM) and install libpq-dev so the gem is compiled against the image's OpenSSL. Enabling this globally drags in compilers and headers for every native gem, so the recommendations are to treat prebuilt binaries as suspect, verify linkage with ldd, compile selectively in a multi-stage build, and test real execution paths such as running queries.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Ruby](https://swe.quest/tags/ruby.md) (Languages)

## Prerequisites

- OpenSSL providers
- Ruby Bundler and native gems ([easy posts on Ruby](https://swe.quest/tags/ruby.md?difficulty=easy))
- Docker multi-stage builds ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))

## Keywords

FIPS, OpenSSL 3, libpq, pg gem, Bundler, ActiveRecord, BUNDLE\_FORCE\_RUBY\_PLATFORM

## Related posts

- [Ruby2Shell (CVE-2026-132825): find vulnerable Ruby across your repos](https://swe.quest/articles/ruby2shell-cve-2026-132825-find-vulnerable-ruby-across-your-repos-943808a4d97a4f48.md): Sourcegraph · 2026-11-20 · Medium · 5 min read · Ruby, Vulnerability research, Supply chain security, Developer tools
  Ruby2Shell (CVE-2026-132825) is a critical heap overflow in Ruby's string case conversion that researchers say default Rails and classic Sinatra apps expose without authentication, with remote code execution proofs of concept known.
- [Finding Relationships Between Ruby’s Top 100 Packages and Their Dependencies](https://swe.quest/articles/finding-relationships-between-ruby-s-top-100-packages-and-their-dependencies-e53722c1985f09a2.md): Shopify Engineering · 2022-10-19 · Medium · 9 min read · Supply chain security, Ruby, Identity & auth, Algorithms
  RubyGems' MFA requirement for gems over 180M downloads leaves a loophole: some big gems depend on small gems below the threshold, so compromising a small gem's owner account reaches big gems' users.
- [How We Fixed the Dependency Confusion Vulnerability in Over 600 Ruby Applications](https://swe.quest/articles/how-we-fixed-the-dependency-confusion-vulnerability-in-over-600-ruby-14f9a0a0836510b2.md): Shopify Engineering · 2022-01-27 · Medium · 9 min read · Supply chain security, Ruby, Refactoring & migrations, CI/CD
  Shopify closed a dependency confusion hole across roughly 600 Ruby applications by migrating each \`Gemfile.lock\` to Bundler's newer format, which pins every gem to an explicit source.
- [How GitHub uses CodeQL to secure GitHub](https://swe.quest/articles/how-github-uses-codeql-to-secure-github-3ead357c38ddce28.md): GitHub Engineering · 2025-02-12 · Medium · 14 min read · Static analysis, Application security, Ruby, CI/CD
  GitHub's Product Security Engineering team runs CodeQL across more than 10,000 repositories, mostly with default setup and the security-extended suites.
- [MITM attacks are easier to avoid with psql (Postgres) 16](https://swe.quest/articles/mitm-attacks-are-easier-to-avoid-with-psql-postgres-16-ea4ca88c3d78880f.md): Neon · 2023-10-05 · Medium · 8 min read · PostgreSQL, Cryptography, Security, Identity & auth
  Postgres 16's psql adds \`sslrootcert=system\`, which uses the OS's trusted CA store and implies \`sslmode=verify-full\`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
