/
DirectorySecurity AdvisoriesPricing
Sign in
Directory
cassandra-fips logoFIPS

cassandra-fips

Last changed

Request a free trial

Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.

Tags
Overview
Comparison
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for cassandra-fips

Cassandra is a free and open-source, distributed, wide-column store, NoSQL database.

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/cassandra-fips:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Disclaimer

This image is equipped with the essential components for Cassandra to operate in FIPS mode. However, it's important for users to ensure they use it in line with FIPS compliance standards.

This includes tasks such as keystore generation, configuration, and launching Cassandra with the correct configuration parameters. More guidance is provided in the sections below.

Compatibility Notes

This image is compatible with external Cassandra image. Additionally, it supports running Cassandra in a FIPS 140-3 complaint mode.

FIPS Support

This Image ships with a validated redistribution of the OpenSSL's FIPS provider module. For more on FIPS support in Chainguard Images, consult the guide on FIPS-enabled Chainguard Images on Chainguard Academy

Keystore

Cassandra running in FIPS mode requires a BCFKS compatible keystore to manage its TLS certificates.

Although Cassandra supports various keystore types, only BCKFS offers the capability to operate in approved (strict) mode under FIPS standards, ensuring only approved ciphers are used.

BCKFS Keystore creation

To create keystore in BCKFS format you can use keytool from this image like so:

docker run -v $(pwd):/tmp/keystore --entrypoint keytool cgr.dev/ORGANIZATION/cassandra-fips \
  -v -keystore /tmp/keystore/server.keystore \
  -storetype bcfks \
  -providername BCFIPS \
  -alias "localhost" \
  -genkeypair -sigalg SHA512withRSA -keyalg RSA \
  -dname CN="localhost" \
  -storepass "<YOUR TLS KEYSTORE PASSWORD>" \
  -keypass "<YOUR TLS KEY PASSWORD, can be the same>"

To view the keystore:

docker run -v $(pwd):/tmp/keystore --entrypoint keytool cgr.dev/ORGANIZATION/cassandra-fips \
  -v -keystore /tmp/keystore/server.keystore \
  -list \
  -storepass "<YOUR TLS KEYSTORE PASSWORD>"

Export CA certificate

To export a CA certificate from an existing keystore you can use keytool:

docker run -v "$(pwd):/tmp/keystore" --entrypoint keytool cgr.dev/ORGANIZATION/cassandra-fips \
  -v \
  -keystore /tmp/keystore/server.keystore \
  -storetype bcfks \
  -providername BCFIPS \
  -alias "localhost" \
  -exportcert -rfc \
  -storepass "<YOUR TLS KEYSTORE PASSWORD>" | dos2unix > cassandra.crt

Create cqlshrc file

To connect to Cassandra with cqlsh you need to create a cqlshrc file with the following content:

cat <<EOF > cqlshrc.yaml
[ssl]
certfile = /etc/cassandra/ssl/cassandra.crt
validate = false
version = TLSv1.3
EOF

Create cassandra.yaml file

To use Cassandra in FIPS mode, cassandra.yaml needs to be configured to use FIPS enabled keystores and truststores.

Edit cassandra.yaml file and set the various keystore and truststore options to use store_type: BCFKS for the type. The following includes example server and client encryption options using the correct BCFKS keystore :

<details> <summary>cassandra.yaml</summary>
# extracted with egrep -v '((\W)+\#|^$|^#)' cassandra.yaml
server_encryption_options:
internode_encryption: all
enable_legacy_ssl_storage_port: false
keystore: /tmp/keystore/server.keystore
keystore_password: <YOUR KEYSTORE PASSWORD>
require_client_auth: false
truststore: /tmp/keystore/server.truststore
truststore_password: <YOUR TRUSTSTORE PASSWORD>
require_endpoint_verification: false
client_encryption_options:
enabled: true
keystore: /tmp/keystore/server.keystore
keystore_password: <YOUR KEYSTORE PASSWORD>
require_client_auth: false
protocol: TLS
store_type: BCFKS
transparent_data_encryption_options:
enabled: false
chunk_length_kb: 64
cipher: AES/CBC/PKCS5Padding
key_alias: testing:1
key_provider:
  - class_name: dev.chainguard.cassandra.util.BcFipsKeyProvider
    parameters:
      - keystore: /tmp/keystore/server.keystore
        keystore_password: <YOUR KEYSTORE PASSWORD>
        store_type: BCFKS
        key_password: <YOUR KEY PASSWORD>
</details>

Running with TLS enabled

Example of launching Cassandra with TLS enabled:

docker run --rm --name cassandra-fips \
  -v "$(pwd)/server.keystore:/tmp/keystore/server.keystore" \
  -v "$(pwd)/cassandra.yaml:/etc/cassandra/cassandra.yaml" \
  -v "$(pwd)/cqlshrc.yaml:/home/cassandra/.cassandra/cqlshrc" \
  -v "$(pwd)/cassandra.crt:/etc/cassandra/ssl/cassandra.crt" \
  cgr.dev/ORGANIZATION/cassandra-fips

Now, wait until the Startup complete message is shown in the logs. This means that Cassandra is ready to accept connections. You can now connect to it with cqlsh:

docker exec <CONTAINER_ID_OR_NAME> SSL_CERTFILE=etc/cassandra/ssl/cassandra.crt cqlsh --ssl localhost 9042 -e "DESCRIBE KEYSPACES"

system       system_distributed  system_traces  system_virtual_schema
system_auth  system_schema       system_views

FIPS validation

You'll see debug logs such as the below if Cassandra is running in FIPS mode:

BCFIPS health check OK

Additionally, you can check bcfips is enforcing minimum password lengths, by running the container with a non-compliant admin password, such as 1234:

Caused by: org.bouncycastle.crypto.fips.FipsUnapprovedOperationError:
password must be at least 112 bits

What are Chainguard Containers?

Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.

All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.

In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.

Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.

Need additional packages?

To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.

To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.

Learn More

Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

  • Apache-2.0

  • Artistic-1.0-Perl

  • BSD-2-Clause

  • BSD-3-Clause

  • Bitstream-Vera

  • FTL

  • GCC-exception-3.1

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Compliance

This is a FIPS validated image for FedRAMP compliance.

This image is STIG hardened and scanned against the DISA General Purpose Operating System SRG with reports available.

Learn more about STIGsGet started with STIGs

Related images
cassandra logo
cassandra

Category
FIPS
STIG

Safe Source for Open Sourceâ„¢
Contact us
© 2025 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Product

Chainguard ContainersChainguard LibrariesChainguard VMsIntegrationsPricing