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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair argo workflows and redash to run data jobs and refresh dashboards on schedule. Argo runs the pipeline steps in Kubernetes, and Redash shows the updated query results. This setup keeps business charts fresh right after raw data lands in your tables. Instead of guessing when a batch job finishes, you trigger chart updates right on time. Engineers build the pipeline once, and analysts read clean numbers every morning. How argo workflows and redash pass data and keys Argo Workflows ru

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 redash to run data jobs and refresh dashboards on schedule. Argo runs the pipeline steps in Kubernetes, and Redash shows the updated query results.

This setup keeps business charts fresh right after raw data lands in your tables. Instead of guessing when a batch job finishes, you trigger chart updates right on time. Engineers build the pipeline once, and analysts read clean numbers every morning.

How argo workflows and redash pass data and keys

Argo Workflows runs each task inside its own container on a Kubernetes cluster. A normal pipeline pulls raw files, cleans the rows, and writes tables to a database. Once the database step finishes, the last container sends a web request to Redash.

That web request uses an API key to log in and start a query refresh. You can pass the user key for one query or a broader account key. Kubernetes stores this secret key and mounts it into the final step container at run time.

Redash receives the call, runs the SQL against the data source, and caches the result. The workflow container can check the job status until Redash finishes the query. If the query fails, Argo marks the step as failed and alerts the team.

Common failure modes with shared keys and broad roles

The biggest risk in this setup is using one admin key for every workflow. If a pipeline log prints that key by mistake, anyone can read all company queries. A better plan is to use query-level keys that only trigger one saved query.

Another common issue happens on the database side behind Redash. Many teams give Redash a single database login with write rights across all tables. When a workflow triggers a refresh, that broad role runs without clear user tracking.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Database logs then show every query coming from one generic Redash account. Security teams cannot tell which pipeline or analyst ran a heavy or risky query. You should set up read-only database roles for Redash and limit them to safe schemas.

Sensitive data in query results creates a third problem for data teams. Raw tables often hold private fields like emails, phone numbers, card numbers, or national IDs. If a workflow refreshes a broad query, Redash caches those raw fields for every viewer.

Scoping network paths and permissions for automated runs

Start by locking down the network path between your Kubernetes pods and the Redash server. Only the namespace that runs reporting workflows should have network rules to reach Redash. Block other pods from calling the Redash web interface or API endpoints.

Next, split your Redash data sources by team or data sensitivity level. Give the finance group one read-only database role and the product group another role. Assign each workflow to trigger only the queries that match its own team role.

You also need a plan for private fields during automated query runs. Data masking rewrites matched fields in results so cached charts do not show raw card numbers. Finally, rotate the API keys stored in Kubernetes secrets on a regular schedule.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

How does Argo Workflows know when a Redash query finishes?

Redash returns a job ID when the workflow calls the refresh endpoint. The container checks that job ID in a short loop until the status shows success.

Should we use a user API key or a query API key?

Use a query API key whenever your pipeline only needs to refresh one specific query. User keys carry all permissions of that person and create a much larger security risk.

How can we stop Redash from slowing down production databases during workflow runs?

Point your Redash data source at a read replica instead of the main writer database. You can also limit how many refresh steps Argo runs at the same time.

The query runs. The emails stay hidden.