百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vault-csi-provider

> 云原生
开源

HashiCorp 秘密存储 CSI 驱动程序

348 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

HashiCorp 秘密存储 CSI 驱动程序

HashiCorp Vault Provider for Secrets Store CSI Driver

:warning: Please note: We take Vault's security and our users' trust very seriously. If you believe you have found a security issue in Vault Secrets Store CSI Provider, please responsibly disclose by contacting us at [email protected].

HashiCorp Vault provider for the Secrets Store CSI driver allows you to get secrets stored in Vault and use the Secrets Store CSI driver interface to mount them into Kubernetes pods.

Installation

Prerequisites

  • Supported Kubernetes version, see the documentation (runs on Linux nodes only)
  • Secrets store CSI driver installed

Using helm

The recommended installation method is via helm 3:

bash
helm repo add hashicorp https://helm.releases.hashicorp.com
# Just installs Vault Secrets Store CSI provider. Adjust `server.enabled` and
# `injector.enabled` if you also want helm to install Vault and the Vault Agent
# injector.
helm install vault hashicorp/vault \
  --set "server.enabled=false" \
  --set "injector.enabled=false" \
  --set "csi.enabled=true"

Using yaml

You can also install using the deployment config in the deployment folder:

bash
kubectl apply -f deployment/vault-csi-provider.yaml

Usage

See the learn tutorial and documentation pages for full details of deploying, configuring and using Vault Secrets Store CSI provider. The integration tests in test/bats/provider.bats also provide a good set of fully worked and tested examples to build on.

Troubleshooting

To troubleshoot issues with Vault Secrets Store CSI provider, look at logs from the Vault CSI provider pod running on the same node as your application pod:

bash
kubectl get pods -o wide
# find the Vault Secrets Store CSI provider pod running on the same node as
# your application pod

kubectl logs vault-csi-provider-7x44t

Warning The -debug=true flag has been deprecated, please use -log-level=debug instead. Available log levels are info, debug, trace, warn, error, and off.

Developing

The Makefile has targets to automate building and testing:

bash
make build test

The project also uses some linting and formatting tools. To install the tools:

bash
make bootstrap

You can then run the additional checks:

bash
make fmt lint mod

Testing

To run a full set of integration tests on a local kind cluster, ensure you have the following additional dependencies installed:

  • docker
  • kind
  • kubectl
  • helm
  • bats

You can then run:

bash
make setup-kind e2e-image e2e-setup e2e-test

Finally tidy up the resources created in the kind cluster with:

bash
make e2e-teardown

OpenShift

To test on OpenShift, install the Secrets Store CSI Driver Operator, and follow the instructions to create a ClusterCSIDriver instance. You can then run:

bash
make ci-build e2e-image-ubi GOOS=linux GOARCH=arm64

# tag the e2e image and upload it somewhere accessible from OpenShift
docker tag e2e/vault-csi-provider:latest 
docker push 

make e2e-setup-openshift e2e-test EXTRA_VAULT_VALUES="--set csi.image.repository=,csi.image.tag=,csi.daemonSet.securityContext.container.privileged=true"

Finally tidy up the resources created in the OpenShift cluster with:

bash
make e2e-teardown-openshift

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gocsikubernetesprovidersecret

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类云原生
定价开源

> 相关工具

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,