Skip to content

v0.16.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 12:26
v0.16.0
21c9c3f

csi-driver-spiffe is a clean and simple way to get SPIFFE IDs for your Kubernetes pods with minimal dependencies and minimal fuss.

This release incorporates updated livenessprobe and csi-driver-registrar images along with a couple of community bugfixes - huge thanks to the community members who got involved to both fix and report/confirm issues.

It's worth checking #641 for details on the change it makes; specifically it could be relevant for improving the ergonomics of long-running pods which use csi-driver-spiffe. No action should be required, but there are a couple of points below to take notice of.

It's also worth pointing out that we raised #668 to capture that csi-driver and csi-driver-spiffe could conflict with each other when run together. If you run - or want to run - both, you should check that issue.

Possible new startup failure mode

This is an operational risk on hosts where the backing mount isn't shared.

The new Bidirectional propagation requires kubelet to make the mount rshared, which fails if the host mount containing the hostPath source is not itself shared. The existing pods-mount-dir is under /var/lib/kubelet, which is almost always on / (rshared on any systemd host). But app.driver.csiDataDir defaults to /tmp/cert-manager-csi-driver and /tmp is frequently a separate mount. On a host where that mount isn't shared, the driver pod will now fail to start with path ... is mounted on /tmp but it is not a shared mount, where previously it started fine.

In practice systemd makes / rshared early and child mounts inherit that, so most users are totally unaffected. But it's a non-obvious upgrade-time regression for anyone who isn't affected. If you have an unusual setup, this is worth checking before upgrading.

tmpfs outlives the pod, including on uninstall

This is a security consideration, but not an issue for most people. It's intended that the tmpfs will outlive the pod.

Nothing in csi-lib (which csi-driver-spiffe uses under the hood) ever unmounts the tmpfs. After a helm uninstall, a node drain, or a DaemonSet removal <csiDataDir>/inmemfs stays mounted on the node holding issued certificates and their private keys, with no process left to clean it up. Previously that memory and key material went away with the container's mount namespace.

csi-driver has this same behaviour so this is normal and expected but it's a genuine change in the security posture. Anyone concerned should reboot their nodes after uninstalling csi-driver-spiffe or do a manual umount. Most users will need to take no action.

What's Changed

  • ❗ fix(chart): propagate the csi-data-dir mount so volumes survive driver restarts by @lostick in #641

  • fix: merge commonLabels as a map to avoid duplicate label keys by @pgmpofu in #644

  • chore(deps): update docker/login-action action to v4.7.0 by @renovate[bot] in #646

  • fix(deps): update module github.com/cert-manager/cert-manager to v1.21.3 by @renovate[bot] in #645

  • chore(deps): update makefile modules to 2bbe78f by @renovate[bot] in #647

  • fix(deps): update kubernetes go patches to v0.37.2 by @renovate[bot] in #649

  • fix(deps): update module k8s.io/cli-runtime to v0.37.2 by @renovate[bot] in #650

  • chore(deps): update makefile modules to a120e6b by @renovate[bot] in #651

  • chore(deps): update module golang.org/x/net to v0.62.0 [security] by @renovate[bot] in #648

  • chore(deps): update makefile modules to f0372c4 by @renovate[bot] in #653

  • fix(deps): update module github.com/onsi/ginkgo/v2 to v2.34.0 by @renovate[bot] in #654

  • fix(deps): update module github.com/go-jose/go-jose/v4 to v4.1.8 by @renovate[bot] in #652

  • chore(deps): update docker/login-action action to v4.8.0 by @renovate[bot] in #655

  • chore(deps): update makefile modules to 6006d2e by @renovate[bot] in #656

  • fix(deps): update module github.com/go-jose/go-jose/v4 to v4.1.9 by @renovate[bot] in #657

  • chore(deps): update module golang.org/x/crypto to v0.59.0 [security] by @renovate[bot] in #659

  • chore(deps): update makefile modules to 6659cfe by @renovate[bot] in #660

  • fix(deps): update module github.com/spf13/pflag to v1.1.0 by @renovate[bot] in #658

  • chore(deps): update module go.opentelemetry.io/otel/trace to v1.47.0 [security] by @renovate[bot] in #661

  • chore(deps): update makefile modules to 5511e8d by @renovate[bot] in #662

  • fix(deps): update module sigs.k8s.io/controller-runtime to v0.25.3 by @renovate[bot] in #663

  • chore(deps): update actions/setup-go action to v7.1.0 by @renovate[bot] in #664

  • chore(deps): update registry.k8s.io/sig-storage/livenessprobe docker tag to v2.20.1 by @renovate[bot] in #667

  • chore(deps): update registry.k8s.io/sig-storage/csi-node-driver-registrar docker tag to v2.18.1 by @renovate[bot] in #666

  • chore(deps): update makefile modules to 37f3841, migrating pod security exceptions to kyverno v1.20 by @SgtCoDFish in #669

New Contributors

Full Changelog: v0.15.1...v0.16.0