The Simplest Way to Make Dataflow and Metabase Work Like They Should
Teams pair dataflow and metabase by using a shared database or warehouse as a bridge. Dataflow jobs process and write records, while Metabase reads those tables to build charts. The two tools never talk to each other directly over the network. Instead, your storage engine sits between the compute workers and the reporting app. This split keeps heavy data jobs separate from user chart requests. When you set up both tools well, analysts get fresh metrics fast. How dataflow and metabase move dat
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 dataflow and metabase by using a shared database or warehouse as a bridge. Dataflow jobs process and write records, while Metabase reads those tables to build charts.
The two tools never talk to each other directly over the network. Instead, your storage engine sits between the compute workers and the reporting app. This split keeps heavy data jobs separate from user chart requests. When you set up both tools well, analysts get fresh metrics fast.
How dataflow and metabase move data and check roles
Dataflow runs batch and stream jobs that clean raw events from your sources. Those worker nodes need write permissions on target tables in your database. You give the worker service account a role that only writes to specific schemas. Once the job finishes, the clean rows sit ready in the data store.
Metabase sits on the other side of that same storage engine. It logs in with its own database user or cloud service account. This reporting account needs read permissions on the final tables only. Analysts log in to the chart app using their single sign-on accounts. When an analyst opens a dashboard, the app sends a query to the database.
This setup creates two distinct identity steps in your data stack. First, the user proves who they are to the chart app. Second, the chart app uses its own stored key to query the database. Because the database only sees the shared app key, native audit logs lose user context.
Fixing broad keys and unlogged queries between both tools
A common mistake is sharing one admin account across both tools. Teams often reuse the Dataflow write key inside the Metabase database settings. That shortcut gives a reporting tool the power to drop tables or change rows. If an attacker steals that shared key, they can ruin production data.
You should split the write role and the read role right away. Give the Dataflow worker account write rights on staging and reporting tables only. Give the Metabase account read rights on clean reporting views only. Never let the reporting tool read raw staging tables that hold sensitive data.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Raw staging tables often hold personal emails, phone numbers, or card numbers. If Dataflow writes those fields to the reporting schema, analysts might pull them into charts. Data masking rewrites matched fields in results before they reach the screen. You should also lock down network paths for both systems. Put worker nodes and chart servers in private subnets with strict firewall rules.
Keeping audit logs clear during live pipeline runs
Heavy streaming jobs and complex dashboard queries can fight for database resources. When a chart query locks a table, the write job might stall or fail. When you log every query with user details, you can spot slow dashboards fast. Good logs show which team ran a heavy query during a pipeline window.
Without clear logs, engineers spend hours guessing why a database slowed down. You need to tie every SQL query back to the person who ran it. You also need to rotate database keys for both tools on a regular schedule. Short-lived keys reduce the risk of leaked credentials in old config files.
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
Can Metabase connect directly to a running Dataflow job?
No, Metabase cannot read data straight from active compute workers. You must write the output to a supported database or data warehouse first.
Should Dataflow and Metabase share the same database account?
No, sharing an account breaks the rule of least privilege. Use a write role for the pipeline and a read role for the chart tool.
How do we protect emails and card numbers in Metabase charts?
Keep raw personal data in private staging tables that the chart tool cannot read. You can also use data masking to rewrite emails and card numbers in query results.
Related guides
In this post