Harp is a toolkit for operating secret management by contract. It turns secret data into reproducible bundles in immutable container files and runs auditable CLI pipelines over them.
Overview
Harp is built around contract-based secret management rather than ad hoc storage edits. Secrets get predictable identifiers from a naming convention, can carry metadata such as ownership and rotation hints, and are stored as key-value bundles inside immutable container files that act as a pivot format between commands.
Pipelines are expressed as atomic CLI operations on shared containers, similar in spirit to data pipelines but for secrets. Each transformation produces a new container copy, which limits cumulative side effects and supports reproducibility. Containers can be sealed and unsealed with at-rest encryption options.
The tool ships with a template engine for generating passwords, passphrases, keys, and rendered configuration, plus bundle operations to create, read, patch, and import or export to Vault. A SDK and plugin model extend inputs, intermediates, and outputs; Vault is the built-in backend but other stores can plug in.
Elastic uses Harp internally to generate bootstrap secrets for new region infrastructure. Compared with HashiCorp Vault, Vault operates as an encrypted K/V store with authorization, while Harp focuses on secret provisioning workflows Vault does not define for you.
Key features
- Immutable secret container format
- Deterministic secret pipelines via CLI
- Secret naming convention (CSO)
- Template engine for generated values
- Bundle import and export to Vault
- Seal and unseal with at-rest encryption
- YAML-driven bundle descriptors
- SDK and plugins for custom backends
Use cases
- Reproducible secret provisioning across clouds
- Migrating secrets between storage backends
- Ephemeral bootstrap bundles for deployment
- Offline secret rotation specifications
- Generating strong passwords from templates