How to compare secrets between two HashiCorp Vault clusters
Compare KV v2 secrets between two HashiCorp Vault clusters, mounts or environments: the vault CLI approach and its limits, then Lockstep.
Compare KV v2 secrets between two HashiCorp Vault clusters, mounts or environments: the vault CLI approach and its limits, then Lockstep.
Sync Vault KV v2 secrets between environments without overwriting newer changes: check-and-set writes, no deletes, reviews and sync plans.
Detect drift between two HashiCorp Vault environments in CI with the lockstep CLI: diff-style exit codes, a read-only token and no values in logs.
Export a HashiCorp Vault KV v2 mount to an encrypted file, compare a Vault against it, and import it into another environment with rules that rename paths and rewrite values.
Stop expected differences between HashiCorp Vault environments from drowning out real drift: build a Lockstep comparison profile by clicking Ignore, map paths, and reuse it in the UI and CI.
Log in to HashiCorp Vault from GitHub Actions or GitLab CI with the pipeline's OIDC identity token and Vault's JWT auth method, and run Lockstep comparisons and exports with no stored secrets.
How to use Lockstep: compare Vault KV v2 locations or an export, profiles, copying and overriding values, sync plans, value tools, certificate expiry, export and import.
The lockstep command line: compare two Vault KV v2 locations into a YAML report with Vault UI links and vault kv get commands, then apply it key by key.
Signing in to Vault with Lockstep: token, userpass, LDAP, OIDC redirect, JWT and Kubernetes service account, with the Vault-side setup for each.
Every LOCKSTEP_* environment variable: preset Vault connections, custom URLs, sessions, TLS, Kubernetes auth and shared comparison profiles.
Deploy Lockstep on Kubernetes with its Helm chart: a checklist, Ingress, OIDC callback, NetworkPolicy and Kubernetes service account auth.
Lockstep's security model: what it sees, stores, logs and writes, example read-only and copy Vault policies, and the signed, scanned supply chain.