Last changed
Be the first to hear about exciting product updates, critical vulnerability alerts, compare alternative images, and more.
Sign UpA minimal, FIPS 140-3 compliant image for Spark Operator. Facilitates the deployment and management of Apache Spark applications in Kubernetes environments.
Chainguard Containers are regularly-updated, secure-by-default container images.
For those with access, this container image is available on cgr.dev
:
Be sure to replace the ORGANIZATION
placeholder with the name used for your organization's private repository within the Chainguard Registry.
While Chainguard's Spark Operator FIPS image is comparable to the Kubeflow Spark Operator image on Docker Hub, Chainguard's image is also FIPS 140-3 compliant. Chainguard's image includes only the minimum set of dependencies needed to run Spark Operator.
Chainguard provides a FIPS compliant Spark image that must be used with the operator.
This image contains Bouncy Castle crypto libraries for FIPS.
The FIPS certified version of Bouncy Castle (CMVP [#4743]) is compliant with the FIPS 140-3 standard when used in accordance with the [Bouncy Castle Security Policy].
This image also 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.
Before getting up and running with Spark Operator FIPS, you'll need to create a BCFKS KeyStore:
You can now use keytool to view the KeyStore:
After the KeyStore has been generated, the operator will need to be configured to use it. To do so, you'll need to mount a custom configuration file that will be used by Spark when applications are submitted by the operator.
Create a file, spark.properties
, with the following contents:
We will use this later when you deploy the operator. Please consult the official documentation for configuring Spark for guidance on what properties are best for your environment.
To create a TrustStore and import and trust an existing CA certifcate you can also use keytool:
Configuring the installation of Spark shipped with the operator for use with your TrustStore can be done in your config file as with the KeyStore above. For example, the properties below may be set:
If you'd like to use a TrustStore type other than BCFKS, you'll need to set the environment variables below in your values manifest:
The same variables will need to be overriden for the driver and executor in each job.
Before deploying Spark Operator FIPS, you'll need to create a ConfigMap, spark-props
, containing your Spark configuration file:
Then you'll need to create a PV, secret, or ConfigMap that contains your KeyStore/TrustStore. As an example, to create a secret that contains your KeyStores, you'd first encode both via base64:
Then create a resource for the secret in a file, keystores-secret.yaml
:
And apply the resource:
Finally, you'll need to create a values manifest, values.yaml
:
Note that a volume must be mounted for tmp
as it contains Spark artifacts.
To deploy Spark Operator FIPS, start by adding the Helm chart repository:
Then deploy the operator with Helm:
All resources using the operator must be updated as every driver and executor must be configured to use the KeyStore and TrustStore you've generated above. In addition to the KeyStore and TrustStore, you'll also need to provide the same configuration file you created for the operator.
Unlike with the operator, we'll need to mount the config file as spark.properties
instead of spark-defaults.conf
, as the operator overrides the default properties file.
As an example, every job's resource should have a similar template:
Submitting your application is as easy as applying the resource that contains the definition for the job:
You should now be up and running with Spark Operator FIPS!
Chainguard Containers are minimal container images that are secure by default.
In many cases, the Chainguard Containers tagged as :latest
contain only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager. Chainguard Containers are built with Wolfi, our Linux undistro 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 -dev
variant.
Although the -dev
container image variants have similar security features as their more minimal versions, they feature additional software that is typically not necessary in production environments. We recommend using multi-stage builds to leverage the -dev
variants, copying application artifacts into a final minimal container that offers a reduced attack surface that won’t allow package installations or logins.
To better understand how to work with Chainguard Containers, please visit Chainguard Academy and Chainguard Courses.
In addition to Containers, Chainguard offers VMs and Libraries. Contact Chainguard to access additional products.
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.
Chainguard container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" version of this image:
Apache-2.0
BSD-2-Clause
BSD-3-Clause
Bitstream-Vera
FTL
GCC-exception-3.1
GPL-2.0-only
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreementThis 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