The Simplest Way to Make Cohesity and Dagster Work Like They Should
Pairing cohesity and dagster in production lets data teams coordinate backup jobs with data pipelines. Dagster runs data tasks and triggers Cohesity snapshots before or after big pipeline runs. Many teams keep data pipelines and backup tools in separate silos. When a pipeline fails mid-run, teams struggle to restore clean data states fast. Linking the two tools lets your pipelines check backup health before transforming data. It also lets pipelines trigger fresh snapshots right after key tables
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.
Pairing cohesity and dagster in production lets data teams coordinate backup jobs with data pipelines. Dagster runs data tasks and triggers Cohesity snapshots before or after big pipeline runs.
Many teams keep data pipelines and backup tools in separate silos. When a pipeline fails mid-run, teams struggle to restore clean data states fast. Linking the two tools lets your pipelines check backup health before transforming data. It also lets pipelines trigger fresh snapshots right after key tables update.
How cohesity and dagster share roles and data
Dagster acts as the control plane for your data assets and scheduled jobs. Cohesity manages data backups, snapshots, and file recovery across your storage clusters. To work together, Dagster needs a safe way to talk to Cohesity APIs.
First, you create a dedicated service account inside your Cohesity cluster. You assign this account a narrow role that only touches specific backup groups. Next, you store the API key or token inside a secret manager. Dagster reads this secret at runtime when a pipeline step starts.
During a pipeline run, a Dagster resource sends requests to the Cohesity cluster. For example, a pipeline step can ask Cohesity to take a snapshot first. Dagster then polls Cohesity until the backup job finishes with a clean status. Once the backup succeeds, Dagster moves on to run the heavy data transforms.
Data does not need to pass through the Dagster worker nodes at all. Instead, Dagster sends small API calls while Cohesity moves data in the background. This keeps your Dagster workers fast, light, and easy to scale.
Common failure modes and how to scope permissions
The biggest mistake teams make is using a full admin key for Dagster. If that broad token leaks, an attacker can delete backups across the whole cluster. A bug in a Dagster job could also wipe out critical recovery points.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Shared service accounts create another big problem for data and security teams. When five pipelines share one account, audit logs cannot show which job failed. You only see the shared account name in the Cohesity event log. Giving each pipeline domain its own service account fixes this blind spot fast.
Long-lived static tokens also put your backup cluster at high risk. Teams often paste API keys into Dagster settings and forget to rotate them. Instead, you should rotate keys on a set schedule through your secret store. You should also scope each role to read status or run specific protection groups.
Network paths between Dagster workers and Cohesity need strict rules as well. Do not open the Cohesity management interface to every node in your network. Allow traffic only from the specific subnets where your Dagster workers run. Log every API call so your team can trace pipeline actions during incidents.
Testing recovery workflows inside your pipelines
Taking backups is only half the job for a modern data team. You also need to prove that those backups restore clean, usable data. Dagster schedules can automate these recovery checks without manual work from engineers.
You can build a weekly Dagster job that asks Cohesity to clone a backup. Cohesity mounts the snapshot to an isolated test volume in seconds. Next, Dagster runs data quality checks against that cloned test volume. If the data involves customer emails or phone numbers, masking rewrites matched fields in results. Once the check passes, Dagster tells Cohesity to tear down the test clone.
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
Should Dagster move raw backup data through its own workers?
No, Dagster should only send control requests to the Cohesity API. Let Cohesity handle the heavy data transfer directly between your storage systems.
What permissions does a Dagster service account need in Cohesity?
Give the account permission to view status and trigger runs for specific backup groups. Never grant cluster admin rights or permission to delete existing snapshots.
How can teams handle failed backup steps in a Dagster run?
Set up your Dagster asset checks to halt downstream tasks if a backup fails. Use Dagster sensors to alert your team and retry the step once fixed.
Related guides
In this post