The Simplest Way to Make Cohesity and Hashicorp Vault Work Like They Should
Teams pair cohesity and hashicorp vault in production to keep backup encryption keys safe. Cohesity stores and restores data, while HashiCorp Vault holds the master keys outside the backup cluster. This setup stops attackers from stealing both your data snapshots and the keys that open them. It also lets security teams rotate secrets on a strict schedule. How cohesity and hashicorp vault share keys and roles Cohesity needs a master key to lock and open data on its storage nodes. Instead of ke
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Teams pair cohesity and hashicorp vault in production to keep backup encryption keys safe. Cohesity stores and restores data, while HashiCorp Vault holds the master keys outside the backup cluster. This setup stops attackers from stealing both your data snapshots and the keys that open them. It also lets security teams rotate secrets on a strict schedule.
How cohesity and hashicorp vault share keys and roles
Cohesity needs a master key to lock and open data on its storage nodes. Instead of keeping that key on local disks, the backup cluster asks HashiCorp Vault for it. First, an admin sets up an identity role in the secret store for the backup cluster. The backup nodes then log in to HashiCorp Vault using TLS certificates or machine tokens.
Once the secret store checks the identity, it sends back the needed key over an encrypted channel. Cohesity holds that key in memory to read or write backup blocks during a job. The secret store logs every key request with a timestamp and the caller role. Security teams can read these logs to verify which node asked for a secret.
This workflow also helps when engineers run backup scripts against the Cohesity API. A script can log in to HashiCorp Vault first to fetch a short-lived API token. The script then uses that token to start a backup job or check snapshot status. When the script finishes, the token expires so nobody can reuse it later.
Common failure modes and how to scope permissions
Many teams make mistakes when they set up these two systems for the first time. The biggest failure mode is using one broad token for all backup nodes and scripts. If a bad actor steals that shared token, they can read every key in the store. Another common problem happens when teams turn off audit logs to save disk space. Without logs, you cannot tell if a script or a human asked for a backup key.
To fix this, give each Cohesity cluster its own narrow role in HashiCorp Vault. That role should only have permissions to read the specific key path for that single cluster. Never give a backup node permissions to list all paths or change security policies. You should also set a short time to live on every token the store issues.
HashiCorp Vault + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Network rules between the backup nodes and the secret store also need strict limits. Only allow traffic on the required API port from known backup cluster IP addresses. Block all other machines on your network from talking to the key management endpoints. Finally, test your key rotation steps in a lab before you run them in production. If a key rotates while a backup job runs, both tools must handle the switch cleanly.
Protecting sensitive data during backup restores
Even with solid key management, restoring production data into test setups brings big privacy risks. Backup snapshots often hold raw customer emails, phone numbers, card numbers, and national IDs. When developers mount a restored database from Cohesity, they might query those sensitive fields by mistake. Good secret storage protects data at rest, but teams also need controls when users query restored data.
Security teams should pair their backup key workflow with strict query controls on restored databases. Data masking rewrites matched fields like card numbers or emails in query results right away. This approach keeps test workflows fast while keeping real customer details safe during daily work.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
Why use an external store for Cohesity encryption keys?
Keeping keys outside the backup cluster separates your locked data from the keys that open it. If someone steals a storage disk, they cannot read the snapshots without the external key store.
What happens if HashiCorp Vault goes offline during a backup?
Cohesity caches active keys in memory for a short time so running jobs can finish. Still, new backup or restore jobs that need fresh keys will wait until the store returns.
How should we scope roles for backup automation scripts?
Create a separate role for each script with permissions to read only one secret path. Set the token timer to expire right after the backup script finishes its daily run.
Related guides
In this post