DirectorySecurity AdvisoriesPricing
Sign in
Directory
kubernetes-csi-driver-smb-fips logoFIPS

kubernetes-csi-driver-smb-fips

packaged by Chainguard

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 kubernetes-csi-driver-smb-fips

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.

Download this Container Image

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

docker pull cgr.dev/ORGANIZATION/kubernetes-csi-driver-smb-fips:latest

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

Compatibility Notes

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.

FIPS Support

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.

Prerequisites

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.

Getting Started

Create a values file that selects the FIPS driver image while preserving the chart's CSI sidecars:

cat > smb-values.yaml <<'EOF'
image:
  smb:
    repository: cgr.dev/ORGANIZATION/kubernetes-csi-driver-smb-fips
    tag: "latest"
windows:
  enabled: false
EOF

helm repo add csi-driver-smb https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts
helm repo update csi-driver-smb
helm upgrade --install csi-driver-smb csi-driver-smb/csi-driver-smb \
  --namespace kube-system --values smb-values.yaml
kubectl rollout status deployment/csi-smb-controller --namespace kube-system
kubectl rollout status daemonset/csi-smb-node --namespace kube-system

Configuration

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:

cat > smb-secret.yaml <<'EOF'
apiVersion: v1
kind: Secret
metadata:
  name: smbcreds
  namespace: default
type: Opaque
stringData:
  username: "REPLACE_WITH_SMB_USERNAME"
  password: "REPLACE_WITH_SMB_PASSWORD"
EOF
kubectl apply -f smb-secret.yaml

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:

cat > smb-storage-values.yaml <<'EOF'
storageClasses:
  - name: smb
    parameters:
      source: "//smb.example.com/share"
      csi.storage.k8s.io/provisioner-secret-name: smbcreds
      csi.storage.k8s.io/provisioner-secret-namespace: default
      csi.storage.k8s.io/node-stage-secret-name: smbcreds
      csi.storage.k8s.io/node-stage-secret-namespace: default
    reclaimPolicy: Retain
    volumeBindingMode: Immediate
    mountOptions:
      - vers=3.0
      - uid=1000
      - gid=1000
      - dir_mode=0770
      - file_mode=0660
      - noserverino
EOF

helm upgrade --install csi-driver-smb csi-driver-smb/csi-driver-smb \
  --namespace kube-system --values smb-values.yaml --values smb-storage-values.yaml

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:

cat > smb-workload.yaml <<'EOF'
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: smb-data
  namespace: default
spec:
  storageClassName: smb
  accessModes: [ReadWriteMany]
  resources:
    requests:
      storage: 1Gi
---
apiVersion: v1
kind: Pod
metadata:
  name: smb-example
  namespace: default
spec:
  restartPolicy: Never
  nodeSelector:
    kubernetes.io/os: linux
  securityContext:
    runAsNonRoot: true
    runAsUser: 1000
    runAsGroup: 1000
  containers:
    - name: writer
      image: cgr.dev/chainguard/busybox:latest
      command: ["sh", "-ec"]
      args:
        - |
          printf '%s\n' 'Hello from SMB' > /data/hello.txt
          cat /data/hello.txt
      volumeMounts:
        - name: smb
          mountPath: /data
  volumes:
    - name: smb
      persistentVolumeClaim:
        claimName: smb-data
EOF

kubectl apply -f smb-workload.yaml
kubectl wait --namespace default --for=jsonpath='{.status.phase}'=Bound \
  pvc/smb-data --timeout=180s
kubectl wait --namespace default --for=jsonpath='{.status.phase}'=Succeeded \
  pod/smb-example --timeout=180s
kubectl logs --namespace default smb-example

The example uses the public BusyBox image as a client. Successful output is:

Hello from SMB

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.

Documentation and Resources

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'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 agreement

Compliance

Chainguard 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 Chainguard

This image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.

PCI DSS at Chainguard

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
kubernetes-csi-driver-smb logo

kubernetes-csi-driver-smb


Category
FIPS
STIG

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.