Skip to content

Ubuntu 24 images broken with FIPS mode #273

@juburr

Description

@juburr

Describe the bug
After the cimg/base:current tag recently changed from Ubuntu 22 to Ubuntu 24, the checkout command stopped working. This affects self-hosted CircleCI enterprise customers who have NIST 171 environments requiring FIPS on their server. The checkout command fails with:

PRNG is not seeded
fatal: Could not read from remote repository.

A known workaround can be found below, so in many ways this is less of a bug report and more-so a request for you to provide FIPS mode support. Related, I've also found that when you try to add a deploy key to a project through the button in the CircleCI UI, it always generates it with ED25519, which also appears to fail with FIPS mode enabled. My workaround for that is also listed below.

To Reproduce
No special config.yml is needed to reproduce. Checkout is the very first command in the job, and it fails immediately.

Expected behavior
It properly checks out the source code.

Workarounds

  • For now we can just replace cimg/base:current with cimg/base:current-22.04 in most cases. Unfortunately some popular orbs have cimg/base:current baked into their source code for jobs though. Likewise, you can't update cimg/go, cimg/node, and others though because they're based off of cimg/base:current.
  • If the first workaround isn't possible, you can disable FIPS via an environment variable (not a great long-term solution):
docker:
  - image: cimg/base:current
environment:
  OPENSSL_FORCE_FIPS_MODE: 0

Screenshots and Build Links

Image

Additional context
This probably amount to including FIPS provider binaries in the image that can be used with openssl. Ubuntu only seems to offer these through their Ubuntu Pro subscription though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions