Lets Pods consume Vault secrets natively from Kubernetes Secrets
source availableBUSL-1.1self-hostablefree
Vault Secrets Operator (VSO) is HashiCorp's Kubernetes operator that syncs secrets from HashiCorp Vault into Kubernetes Secrets and keeps them current, so an application only needs access to the destination Secret. Custom resources describe the connection (VaultConnection), authentication (VaultAuth, with Kubernetes, JWT, AppRole, AWS and GCP methods) and what to sync: VaultStaticSecret for KV, VaultPKISecret for certificates and VaultDynamicSecret for database and cloud credentials. It detects and repairs drift, handles secret rotation for the Deployments, ReplicaSets and StatefulSets that use a secret, transforms secret data with templates and exports Prometheus metrics. It's under the Business Source License 1.1 with IBM, which owns HashiCorp, as licensor, and installs with a Helm chart or Kustomize.
Ways to install
On Kubernetes
Problems it solves
- get secrets from our Vault server into Kubernetes Secrets without changing the application code
- apps should read a normal Kubernetes Secret while the real values live in Vault
- short-lived database credentials from Vault keep expiring inside my pods
- my deployments keep using an old credential after it was rotated in the secret store
- issue TLS certificates for my ingress from Vault's PKI engine into a cluster Secret
- someone edited a synced Secret by hand and I want it put back to the value in the source automatically
- authenticate pods to Vault with their Kubernetes service account instead of a static token
- reshape secret data with templates before it lands in the cluster Secret
- need an operator for syncing Vault secrets that's certified on OpenShift and tested on EKS, GKE and AKS
Features
- VaultConnection, VaultAuth and VaultAuthGlobal resources for connecting and authenticating to Vault
- VaultStaticSecret (KV v1 and v2), VaultPKISecret and VaultDynamicSecret (databases, AWS, Azure, GCP)
- Kubernetes, JWT, AppRole, AWS and GCP auth methods
- all Vault secret engines supported
- TLS and mTLS to Vault
- drift detection and remediation
- secret rotation for Deployment, ReplicaSet and StatefulSet resources
- secret data transformation with templates
- instant updates from Vault event notifications (needs Vault Enterprise)
- Prometheus metrics
View 2 more
- CSI driver mode and cert-manager issuance (Enterprise)
- Helm chart and Kustomize installs
Limitations
Alternatives
The same job
These do what Vault Secrets Operator does.
- External Secrets Operator Sync secrets from external secret managers into Kubernetes Secrets
- Sealed Secrets A Kubernetes controller and tool for one-way encrypted Secrets
- Kubernetes Secrets Store CSI Driver Integrates secrets stores with Kubernetes via a CSI volume.
- 1Password Connect Kubernetes Operator Integrate Kubernetes Secrets with 1Password, and auto-restart deployments when 1Password items are updated