sitaramkm / csi-driver-spiffe

A Kubernetes CSI plugin to automatically mount SPIFFE certificates to Pods using ephemeral volumes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cert-manager project logo

Go Report Card

csi-driver-spiffe

csi-driver-spiffe is a Container Storage Interface (CSI) driver plugin for Kubernetes to work along cert-manager. This CSI driver transparently delivers SPIFFE SVIDs in the form of X.509 certificate key pairs to mounting Kubernetes Pods.

The end result is all and any Pod running in Kubernetes can securely request their SPIFFE identity document from a Trust Domain with minimal configuration. These documents are:

  • automatically renewed; ✔️
  • private key never leaves the node's virtual memory; ✔️
  • each Pod's document is unique; ✔️
  • the document shares the same life cycle as the Pod and is destroyed on Pod termination. ✔️
...
          volumeMounts:
          - mountPath: "/var/run/secrets/spiffe.io"
            name: spiffe
      volumes:
        - name: spiffe
          csi:
            driver: spiffe.csi.cert-manager.io
            readOnly: true

SPIFFE documents can be used for mutual TLS (mTLS) or authentication by Pod's within its Trust Domain.

Documentation

Please follow the documentation at cert-manager.io for installing and using csi-driver-spiffe.

About

A Kubernetes CSI plugin to automatically mount SPIFFE certificates to Pods using ephemeral volumes


Languages

Language:Go 87.5%Language:Python 4.7%Language:Shell 4.1%Language:Makefile 3.1%Language:Mustache 0.6%