packaged by Chainguard
Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.
Minimal image for the Kubernetes SMB CSI driver, built with Chainguard's FIPS Go toolchain and OpenSSL configuration.
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.
The cgr.dev/ORGANIZATION/kubernetes-csi-driver-smb-fips image replaces the Linux
smbplugin image
published at gcr.io/k8s-staging-sig-storage/smbplugin and
registry.k8s.io/sig-storage/smbplugin. It preserves the /smbplugin
entrypoint, root user, and / working directory. CIFS mount helpers and the
utilities used by the driver are included.
The default image omits upstream's shell, e2fsprogs, xfsprogs, udev, and
full util-linux suite. It includes mount and umount from util-linux,
mount.cifs, and coreutils for operations such as volume cloning. The driver
mounts existing SMB shares and invokes these utilities directly; it does not
need a shell, local filesystem formatting tools, or device management services.
Omitting those tools reduces image size and attack surface. Use a -dev tag
when you need a shell for troubleshooting.
The image provides /etc/krb5.conf with the upstream credential-cache location,
FILE:/var/lib/kubelet/kerberos/krb5cc_%{uid}. CIFS upcalls run through the host's
request-key and cifs.upcall; namespace-aware upcalls read this configuration
after entering the driver container. Follow upstream's
node-side Kerberos setup,
including the shared credential directory and host cache-location configuration.
For custom Kerberos configuration, use a
Helm post-renderer to add
a ConfigMap volume to the csi-smb-node DaemonSet. Mount the ConfigMap's
krb5.conf key read-only at /etc/krb5.conf in the smb container using
subPath: krb5.conf. Use the same post-renderer for subsequent Helm upgrades.
This variant uses Chainguard's FIPS Go toolchain and OpenSSL configuration. See Chainguard's FIPS guidance for details about FIPS support in Chainguard Containers.
SMB authentication, signing, and encryption also depend on the host kernel's CIFS client and host Kerberos helpers. The image's userspace FIPS configuration does not configure the host. Use an appropriately configured host and SMB server when FIPS requirements apply to storage traffic, and configure the chart's CSI sidecars separately when your deployment requires FIPS variants throughout.
Use a Kubernetes cluster with Linux nodes, Helm 3, and access to an existing SMB share. The nodes must support CIFS mounts and allow the driver's privileged pods and bidirectional mount propagation. Configure registry credentials for your organization before installing. This image supports Linux nodes; disable the chart's Windows DaemonSet when using the image override below.
Create a values file that selects the FIPS driver image while preserving the chart's CSI sidecars:
This example mounts an existing SMB share using username/password
authentication. Replace //smb.example.com/share with a share reachable from
your Linux nodes, and replace the credentials with an account that can create
directories and read and write files on that share. Create the credentials
Secret in the workload's namespace:
Create a second Helm values file with a storageClasses entry. The provisioner
uses the Secret to create a directory for each volume; the node plugin uses it
to mount that directory. The UID, GID, and mode options give the example pod
access to the mounted files. Retain preserves the volume's data when the PVC
is deleted:
Keep smb-values.yaml from Getting Started in this command so the driver image
override stays in effect. Create a PVC and a pod that mounts it at /data,
writes a file, and prints its contents:
The example uses the public BusyBox image as a client. Successful output is:
For a cluster with a nonstandard kubelet directory, set linux.kubelet in the
values file so the driver registers its socket and mounts volumes in the
directory the kubelet uses. Consult the upstream
driver parameters
for mount options and Kerberos configuration.
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
GCC-exception-3.1
GPL-3.0-or-later
LGPL-2.1
MIT
NIST-PD
libselinux-1.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 ChainguardThis 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