The Simplest Way to Make Cohesity and Travis CI Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair cohesity and travis ci to run data backups and clone test volumes during builds. This setup lets build jobs snapshot data before updates or pull fresh clones for tests. When these two tools talk to each other, builds become much safer. A build runner can trigger a snapshot right before a deploy step starts. If a deploy fails, the team has a clean restore point ready. Build jobs can also spin up fresh test databases from existing backup data. This gives developers realistic test data

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 travis ci to run data backups and clone test volumes during builds. This setup lets build jobs snapshot data before updates or pull fresh clones for tests.

When these two tools talk to each other, builds become much safer. A build runner can trigger a snapshot right before a deploy step starts. If a deploy fails, the team has a clean restore point ready. Build jobs can also spin up fresh test databases from existing backup data. This gives developers realistic test data without touching live customer systems.

How cohesity and travis ci share keys and data

The workflow between cohesity and travis ci starts in the build runner. When a developer pushes code, the build service spins up a clean worker. That worker needs to talk to the backup cluster over the network. The worker sends web requests to the backup cluster API to start tasks.

To make those calls, the worker must log in with a secret key. Teams store this secret key inside the build tool settings for that repo. When the build runs, the worker reads the secret key from memory. It sends the key to the backup cluster to get a session token. Once logged in, the worker asks the cluster to take a snapshot. In test workflows, the worker asks the cluster to mount a clone volume. The cluster finishes the storage job and sends a status message back. The build job reads that status and moves to the next build step.

Common failure modes and how to scope roles

Many teams take shortcuts when they first link their build jobs to storage. The most common mistake is using one shared admin account for all builds. If a build log leaks that admin key, an attacker can delete backups. Another big mistake is using long-lived keys that never expire or rotate. Teams also fail to log which specific build job triggered a storage change.

Travis CI Security + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these risks by scoping roles and network paths tightly. First, create a custom role on the storage cluster just for build jobs. Give that role permission to snapshot or clone only specific test volumes. Never let a build role delete backup policies or change cluster admin settings. Second, give each code repo its own separate service account and key. That way, a key leak in one project does not risk others. Third, lock down the network path between the build workers and storage. Use private build workers inside your own network instead of public cloud runners. Restrict firewall rules so only those private workers can reach the storage API. Finally, rotate the secret keys on a strict schedule to limit exposure.

Protecting sensitive fields in cloned test data

Cloning backup volumes for build tests brings another big security question. Real backups hold customer data like emails, phone numbers, and card numbers. When a build worker runs tests against a clone, logs might capture data. You should clean or mask sensitive fields before test jobs read the clone. Data masking rewrites matched fields in query results, such as national IDs. This keeps test builds realistic while keeping real customer details out of logs. Combine scoped storage roles with data masking to keep your build pipelines safe.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Why connect a build runner to a backup cluster?

Connecting them lets your pipeline take safety snapshots right before a code deploy. It also lets build jobs spin up fresh data clones for automated testing.

How should we store backup cluster keys in the build tool?

Store keys as encrypted variables inside the build settings for each single repo. Never put keys in plain text files inside your source code repo.

Should we use public build runners to talk to our backup cluster?

No, you should not expose your backup cluster API to the public internet. Run private build workers inside your network to keep storage traffic internal.

The query runs. The emails stay hidden.