The Simplest Way to Make Argo Workflows and Cohesity Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use argo workflows and cohesity to automate data backups and test clones in Kubernetes. Argo runs the job steps while Cohesity stores, snapshots, and restores the data volumes. This pair helps teams protect state before big app updates. It also spins up fresh test data for build pipelines. When both tools work together, engineers save hours of manual backup work every week. How argo workflows and cohesity handle keys and data Argo runs each workflow step inside its own Kubernetes pod.

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 use argo workflows and cohesity to automate data backups and test clones in Kubernetes. Argo runs the job steps while Cohesity stores, snapshots, and restores the data volumes.

This pair helps teams protect state before big app updates. It also spins up fresh test data for build pipelines. When both tools work together, engineers save hours of manual backup work every week.

How argo workflows and cohesity handle keys and data

Argo runs each workflow step inside its own Kubernetes pod. To talk to the storage cluster, that pod needs a valid login key. Most teams store a Cohesity API key inside a native Kubernetes secret. The pod reads the secret at start time and sends requests to the Cohesity API.

Data moves through two clear paths in this setup. First, the control path sends API calls from the Argo pod to the Cohesity cluster. These calls start a snapshot, check job status, or mount a clone volume. Second, the storage path mounts the volume into the Kubernetes cluster for the app pods.

Permissions play a huge role in keeping this flow safe. The Kubernetes service account needs rights to read the secret in its namespace. On the storage side, the Cohesity user role must match the exact task. A job that only checks backup status should never hold rights to delete snapshots.

Common failure modes and how to fix them

Many teams start by sharing one admin API key across all workflow templates. This shortcut creates a big security risk for the whole company. If one test pod leaks that key, an attacker can wipe out production backups. Static keys also sit in secrets for months without rotation.

Broad network paths cause another common problem in large clusters. By default, any pod in Kubernetes can reach external IP addresses on your network. If you do not lock this down, rogue pods can hit the Cohesity API directly. Teams also lose track of who ran which storage task when every pod uses one shared login.

Access Request Workflows + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these issues by scoping roles and network rules tightly. Create a dedicated Cohesity role for each workflow type, such as backup runner or clone reader. Map each role to a separate Kubernetes service account in its own namespace. Then add Kubernetes network rules so only approved workflow pods can talk to the storage cluster.

Best practices for safe backup automation

Good backup jobs always verify the state of the data before moving on. Do not let Argo mark a step complete just because the API call returned success. Add a poll step in your workflow that waits until Cohesity finishes the snapshot. This simple check prevents data loss during heavy database upgrades.

Keep your audit logs clean and easy to read across both tools. Pass the Argo workflow name and run ID into the Cohesity job description field. When a storage admin checks the backup logs, they can trace every snapshot to the exact pipeline run. If a test clone contains emails, phone numbers, or card numbers, run a cleanup step first. Masking rewrites matched fields in results before developers use the cloned database.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

How does Argo trigger a Cohesity backup job?

An Argo pod sends an HTTPS request to the Cohesity REST API. The pod uses a mounted API key to log in and start the protection group run.

Should all workflows share one Cohesity service account?

No, sharing one account makes audits hard and expands your risk. Give each team or workflow type its own Cohesity role with minimal permissions.

How do we stop workflow pods from keeping old data clones?

Use an Argo exit handler at the end of your workflow template. This final step calls the Cohesity API to unmount and delete the test clone even if tests fail.

The query runs. The emails stay hidden.