keeper-injector

by Keeper Security

Helm chartv0.12.2App 0.12.2MITVerified publisher

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 Secret when 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/password for 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

ParameterDescriptionDefault
replicaCountNumber of webhook replicas2
image.repositoryWebhook imagekeeper/injector-webhook
image.tagImage tagChart appVersion
sidecar.repositorySidecar imagekeeper/injector-sidecar
sidecar.tagSidecar image tagChart appVersion
metrics.enabledEnable Prometheus metricstrue
tls.autoGenerateAuto-generate TLS certificatestrue
tls.certManager.enabledUse cert-manager (optional)false

Full Configuration

See values.yaml for all options.

Common Annotations

AnnotationDescriptionExample
keeper.security/injectEnable injection"true"
keeper.security/ksm-configK8s secret with KSM config (key config)"keeper-credentials"
keeper.security/secretSecret title in Keeper"my-secret"
keeper.security/secretsMultiple secrets (comma-separated)"db-creds, api-keys"
keeper.security/refresh-intervalRotation interval"5m"
keeper.security/signalSignal on refresh"SIGHUP"

Full annotation reference

Examples

Try these working examples:

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

FeatureKeeper InjectorESO
Creates K8s SecretsOptional (default: no)Yes
Secret storagePod tmpfs (memory), or K8s Secret if opted inetcd
Secrets in etcd backupsNo (default)Yes
ConfigurationAnnotationsCRDs
Runtime rotationYes (sidecar)Sync interval
Pod isolationYesShared 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:

  1. Only include changes for the current version, not all previous versions
  2. Use structured format with kind and description
  3. Valid kinds: added, changed, deprecated, removed, fixed, security
  4. 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkeeper-injector is pinned at v0.12.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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