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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair argo workflows and rubrik to automate data backups from Kubernetes jobs. Argo runs the steps in your cluster, and Rubrik saves the snapshots. This setup lets your team run safe database migrations and test restores on schedule. Before changing data, a workflow step tells the backup platform to take a snapshot. Once the backup finishes, the workflow moves to the next task in the pipeline. If the job fails, another step triggers a restore to fix the bad state. How argo workflows and

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 argo workflows and rubrik to automate data backups from Kubernetes jobs. Argo runs the steps in your cluster, and Rubrik saves the snapshots.

This setup lets your team run safe database migrations and test restores on schedule. Before changing data, a workflow step tells the backup platform to take a snapshot. Once the backup finishes, the workflow moves to the next task in the pipeline. If the job fails, another step triggers a restore to fix the bad state.

How argo workflows and rubrik share permissions and data

Each workflow step runs inside its own container on your Kubernetes cluster. To talk to the backup API, that container needs a valid secret key. Most teams store this secret inside the cluster and mount it at runtime. The container reads the key, logs in, and sends an API request.

Data flow between the two systems stays light during normal job runs. The workflow pod only sends control requests and reads job status codes back. It asks the backup system to start a snapshot for a specific volume. Then the pod polls the API until the backup state shows as done.

The heavy data transfer happens directly between your storage layer and the backup appliance. Your workflow containers never hold the actual backup files in their local memory. They only pass the target ID, the snapshot ID, and the task status. This keeps your cluster pods fast and stops disk space issues during runs.

Common failure modes and how to scope roles

Many teams make the mistake of sharing one admin key across all workflows. If a test job leaks that key, an attacker can wipe all backups. Broad tokens also make it hard to see which team ran a restore. Every API call looks like it came from the same shared service account.

Unlogged calls create another big gap during security audits and incident reviews. When a workflow fails at night, engineers often run manual commands to fix it. If those calls bypass your central logs, you lose track of who changed data. You also risk leaking sensitive fields like emails or phone numbers in debug outputs.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, give each workflow template its own narrow Kubernetes service account. Map each service account to a specific role inside your backup system. A job that backs up one app should only see that single app. Never give a routine job the power to delete old snapshots or change rules.

Lock down your network paths so only approved namespaces can reach the backup API. Use cluster network rules to block random pods from sending requests to that endpoint. Rotate your API keys on a regular schedule and remove unused accounts right away. Keep a clear audit trail that links every backup request to a specific job.

Testing your backup and restore steps

A backup plan only works if your team tests the restore path often. You can build a workflow that spins up a fresh test database each week. The first step asks the backup tool to mount a recent snapshot there. The next step runs a quick check to make sure the tables work.

During these tests, watch out for personal data inside the restored database tables. Real snapshots often hold live user emails, phone numbers, and card numbers. You should add a step that scrubs or masks those fields before tests run. Once the check passes, the final step tears down the temporary database pod.

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 an Argo pod log in to Rubrik?

The pod reads a secret token or service account key mounted from Kubernetes. It sends this key in the header of its API request to start jobs.

Should workflow pods transfer the actual backup files?

No, the workflow pod should only send start requests and check status codes. The backup platform moves the heavy data directly from your storage volumes.

How do we stop a workflow from deleting snapshots?

Create a limited role in the backup system that only allows snapshot creation. Assign that restricted role to the service account used by your workflow pod.

The query runs. The emails stay hidden.