packaged by Chainguard
Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.
A minimal, secure container image for the SPIFFE CSI Driver, a Kubernetes node plugin that exposes the SPIFFE Workload API socket to pods through ephemeral inline CSI volumes.
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.
Chainguard's spiffe-csi-driver image is a drop-in replacement for the upstream ghcr.io/spiffe/spiffe-csi-driver image, with two differences:
/spiffe-csi-driver, the path the upstream image uses as its entrypoint, and also at /usr/bin/spiffe-csi-driver.scratch, so it ships a minimal base layer and a complete package SBOM.Like the upstream image, this image runs as root. Publishing a volume bind-mounts the SPIRE agent's Workload API socket directory into the workload container, which requires CAP_SYS_ADMIN, so the driver's pod spec must set securityContext.privileged: true.
csi-node-driver-registrar sidecar, which registers the driver with the kubelet under the plugin name csi.spiffe.io.The driver is a Kubernetes node plugin, so it does little on its own, but you can confirm the image starts and serves the CSI gRPC API on a Unix domain socket:
The driver logs Starting. and then Listening..., which it emits only after binding the CSI socket.
The driver ships as the spiffe-csi-driver subchart of the SPIRE hardened Helm chart. The subchart's image is overridden under its own key.
Create a values.yaml pointing the subchart at this image:
Then install the CRDs and the chart:
Once the DaemonSet is ready, the kubelet has a registered CSI driver:
Workloads consume the driver through an ephemeral inline volume. The volume must be read-only; the driver rejects any other request.
The mount contains the SPIRE agent socket, which SPIFFE-aware libraries reach through SPIFFE_ENDPOINT_SOCKET=unix:///spiffe-workload-api/spire-agent.sock.
The driver is configured entirely through command-line flags; it reads no configuration file. The two that matter most are the socket paths, which must agree with the volumes the DaemonSet mounts:
-workload-api-socket-dir is the directory holding the SPIRE agent socket, mounted from the host. This is the directory the driver bind-mounts into each workload.-csi-socket-path is where the driver serves the CSI gRPC API, mounted from the kubelet plugin directory so csi-node-driver-registrar can find it.-node-id identifies the node to the kubelet. Rather than templating it per node, leave it unset and let the driver read it from the environment variable named by -node-id-env (MY_NODE_NAME by default), populated from the downward API:
Use -plugin-name only if you need to register under a name other than csi.spiffe.io; it must match the driver field of every workload's CSI volume.
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.
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.
Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.
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's 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
LGPL-2.1-or-later
MIT
MPL-2.0
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreementChainguard Containers are SLSA Level 3 compliant with detailed metadata and documentation about how it was built. We generate build provenance and a Software Bill of Materials (SBOM) for each release, with complete visibility into the software supply chain.
SLSA compliance at ChainguardThis image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.
PCI DSS at ChainguardA FIPS validated version of this image is available for FedRAMP compliance. STIG is included with FIPS image.