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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair argo workflows and rook to run container jobs with persistent Kubernetes storage. This setup lets pipeline steps read, write, and pass large files across cluster nodes. Argo Workflows runs job steps as Kubernetes pods. Rook manages Ceph storage inside the same cluster. Together, they give batch jobs fast block, file, and object storage. How argo workflows and rook share data and roles Every workflow step runs inside its own pod. When a step needs disk space, it asks Kubernetes for

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 rook to run container jobs with persistent Kubernetes storage. This setup lets pipeline steps read, write, and pass large files across cluster nodes.

Argo Workflows runs job steps as Kubernetes pods. Rook manages Ceph storage inside the same cluster. Together, they give batch jobs fast block, file, and object storage.

How argo workflows and rook share data and roles

Every workflow step runs inside its own pod. When a step needs disk space, it asks Kubernetes for a volume. Rook watches for these requests and builds the storage in Ceph. The pod mounts the disk, runs the task, and saves the output.

Argo Workflows also uses object storage to save artifacts between steps. Rook provides an S3-compatible audit storage inside the cluster. The workflow controller talks to this audit storage using keys stored in Kubernetes secrets. Each pod uses a Kubernetes service account to read those secrets.

Permissions flow through two distinct layers. First, Kubernetes role rules control which pods can read storage secrets. Second, Ceph user policies control which buckets or volumes a key can touch. When both layers match, data moves between steps without manual file copies.

Common failure modes and how to scope access

Many teams start by sharing one default service account across all workflows. This gives every job the same storage keys and broad bucket permissions. A bug in one test job can overwrite data from a production pipeline.

Shared audit storage keys also make audit logs hard to read. When ten workflows use the same user key, Ceph logs show one caller. You cannot tell which workflow step deleted a file or read sensitive records. If that file holds card numbers or national IDs, audits fail fast.

Volume lockups are another common pain point. Block storage volumes often mount to only one node at a time. If two parallel workflow steps ask for the same block volume, one pod hangs. Teams should use shared file storage when many pods need the same folder.

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 permission sprawl, create a separate service account for each workflow template. Give each team its own bucket or storage pool in Rook. Map each Kubernetes service account to a single storage user with narrow read or write rules.

Managing network paths and lifecycle rules

Network policies help keep storage traffic safe inside the cluster. By default, any pod in any namespace can reach the Rook audit storage port. You should add Kubernetes network rules that block pods outside your workflow namespaces.

Data cleanup is just as important as access control. Workflow runs create thousands of temporary volumes and artifact files every week. If you never delete old job pods, Rook storage pools fill up fast. Set workflow retention rules to remove finished pods and release their claims.

You should also set bucket lifecycle rules inside Rook. These rules clear out old build artifacts after a set number of days. Clean storage pools run faster and keep cluster disk costs low.

Finally, check your storage logs and workflow events every week. Look for failed mount attempts, slow disk writes, or denied bucket calls. Catching a bad role rule early stops small storage bugs from breaking nightly runs.

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

Should workflow steps use block, file, or object storage in Rook?

Use object storage for passing artifacts between steps. Use shared file storage when parallel pods read the same dataset. Use block storage for single pods that need fast disk writes.

Why do my workflow pods get stuck waiting for Rook volumes?

This usually happens when two pods on different nodes ask for one block volume. Switch the claim to shared file storage or run the pods on one node.

How do we stop one workflow from reading another team's artifacts?

Give each team a separate namespace, service account, and Rook bucket. Bind each service account to a secret that holds keys for only one bucket.

The query runs. The emails stay hidden.