keeper-injector
Keeper Secrets Manager Kubernetes Injector - Inject secrets into pods at runtime
About this chart
Keeper Secrets Manager Kubernetes Injector
Automatically inject secrets from Keeper Secrets Manager into your Kubernetes pods at runtime using a mutating admission webhook.
Features
- No Kubernetes Secrets by default - Secrets are written directly to pod tmpfs (memory-only); an optional Kubernetes Secret mode can create a native
Secretwhen an app needs one (e.g., env vars) - Pod-scoped lifetime - Secrets are removed when pod terminates
- Automatic rotation - Sidecar refreshes secrets without pod restarts
- Simple configuration - Just two annotations to get started
- Title-based lookup - Reference secrets by name, not UIDs
- Keeper Notation - Use
keeper://UID/field/passwordfor precise extraction - File Attachments - Download files from Keeper records
- Folder Support - Fetch all secrets from a Keeper folder
- Production-ready - HA, metrics, leader election
Installation
Quick Install
helm upgrade --install keeper-injector oci://registry-1.docker.io/keeper/keeper-injector \
--namespace keeper-security \
--create-namespace
From Helm Repository
helm repo add keeper https://keeper-security.github.io/helm-charts
helm upgrade --install keeper-injector keeper/keeper-injector \
--namespace keeper-security \
--create-namespace
With Custom Values
helm upgrade --install keeper-injector oci://registry-1.docker.io/keeper/keeper-injector \
--namespace keeper-security \
--create-namespace \
--set replicaCount=3 \
--set metrics.enabled=true
Quick Start
1. Create KSM Auth Secret
kubectl create secret generic keeper-credentials \
--from-file=config=ksm-config.json \
--namespace default
2. Annotate Your Pod
apiVersion: v1
kind: Pod
metadata:
name: my-app
annotations:
keeper.security/inject: "true"
keeper.security/ksm-config: "keeper-credentials"
keeper.security/secret: "database-credentials"
spec:
containers:
- name: app
image: my-app:latest
Secrets will be available at /keeper/secrets/database-credentials.json.
Configuration
Key Values
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of webhook replicas | 2 |
image.repository | Webhook image | keeper/injector-webhook |
image.tag | Image tag | Chart appVersion |
sidecar.repository | Sidecar image | keeper/injector-sidecar |
sidecar.tag | Sidecar image tag | Chart appVersion |
metrics.enabled | Enable Prometheus metrics | true |
tls.autoGenerate | Auto-generate TLS certificates | true |
tls.certManager.enabled | Use cert-manager (optional) | false |
Full Configuration
See values.yaml for all options.
Common Annotations
| Annotation | Description | Example |
|---|---|---|
keeper.security/inject | Enable injection | "true" |
keeper.security/ksm-config | K8s secret with KSM config (key config) | "keeper-credentials" |
keeper.security/secret | Secret title in Keeper | "my-secret" |
keeper.security/secrets | Multiple secrets (comma-separated) | "db-creds, api-keys" |
keeper.security/refresh-interval | Rotation interval | "5m" |
keeper.security/signal | Signal on refresh | "SIGHUP" |
Examples
Try these working examples:
- Hello Secrets - Web page demo (5 min)
- PostgreSQL - Database credentials (10 min)
- Rotation Dashboard - Live rotation visualization (5 min)
Architecture
┌─────────────────────────────────────────────────────┐
│ Pod │
│ ┌──────────────┐ ┌──────────────────────┐ │
│ │ nginx │ │ keeper-sidecar │ │
│ │ (your app) │ │ (injected) │ │
│ │ │ │ │ │
│ │ Reads from │◄────────│ Writes secrets │ │
│ │ /keeper/ │ │ from Keeper │ │
│ │ secrets/ │ │ every 5m │ │
│ └──────────────┘ └──────────────────────┘ │
│ ▲ │ │
│ └──────────────────────────┘ │
│ tmpfs volume │
│ (memory-backed tmpfs) │
└─────────────────────────────────────────────────────┘
Comparison with External Secrets Operator
| Feature | Keeper Injector | ESO |
|---|---|---|
| Creates K8s Secrets | Optional (default: no) | Yes |
| Secret storage | Pod tmpfs (memory), or K8s Secret if opted in | etcd |
| Secrets in etcd backups | No (default) | Yes |
| Configuration | Annotations | CRDs |
| Runtime rotation | Yes (sidecar) | Sync interval |
| Pod isolation | Yes | Shared secrets |
Use Keeper Injector when: Security is paramount, you need secrets out of etcd, or require per-pod isolation.
Use ESO when: You need secrets as K8s Secret objects, or apps require environment variables only.
Requirements
- Kubernetes 1.25+
- Keeper Secrets Manager application
Links
Support
Maintainers
Updating the Changelog for ArtifactHub
When releasing a new chart version, update the artifacthub.io/changes annotation in Chart.yaml:
- Only include changes for the current version, not all previous versions
- Use structured format with
kindanddescription - Valid kinds:
added,changed,deprecated,removed,fixed,security - Optionally add links to GitHub issues or PRs for traceability
Example:
artifacthub.io/changes: |
- kind: fixed
description: Fixed connection refused error during initial installation
links:
- name: GitHub Issue
url: https://github.com/Keeper-Security/keeper-k8s-injector/issues/1
- kind: added
description: Added automatic namespace labeling to prevent webhook self-injection
See CHANGELOG-TEMPLATE.yaml in this directory for a complete template.
Important: ArtifactHub generates the full changelog by combining the changes from all chart versions. Each version should only describe its own changes.
License
MIT License - Keeper Security, Inc.
Deploy keeper-injector with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has keeper-injector on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkeeper-injector is pinned at v0.12.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply