The Simplest Way to Make Domino Data Lab and Metabase Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use domino data lab and metabase to train models and share results on dashboards. Data scientists write model scores to a database, and business users read those charts. This workflow bridges heavy code runs and simple business reports. Model outputs leave the workspace and land in tables for daily review. Clear rules must govern how both apps read and write that shared data. How domino data lab and metabase move data and check roles The two tools do not talk to each other directly in

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 domino data lab and metabase to train models and share results on dashboards. Data scientists write model scores to a database, and business users read those charts.

This workflow bridges heavy code runs and simple business reports. Model outputs leave the workspace and land in tables for daily review. Clear rules must govern how both apps read and write that shared data.

How domino data lab and metabase move data and check roles

The two tools do not talk to each other directly in most setups. Instead, they meet at a shared database or data warehouse. Data science jobs run in the first tool and write fresh rows to tables. The reporting app then queries those same tables to build charts for the team.

Each tool needs its own way to log in to the database. The workspace needs a role that can read raw tables and write new scores. The chart app only needs a role that can read the final output tables. Separating these two roles is the first step toward a safe setup.

User login should link to your main identity provider on both sides. Data scientists log in with their work emails to run code and test models. Analysts log in with their own accounts to view dashboards and filter rows. When both tools check user identity, teams know who ran code or viewed charts.

Common risks with shared keys and wide database roles

Many teams take shortcuts when they set up these two tools at first. They often put one shared database password into both apps to save time. That single account usually has full rights to read, change, or drop any table. If a key leaks from a notebook, an attacker can reach all company data.

Shared accounts also ruin your database audit logs right away. Every query from a notebook or a dashboard shows the exact same user name. When a bad query slows the database down, nobody knows who ran it. Compliance teams cannot prove which person looked at sensitive customer rows on Tuesday.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Broad network paths create another major risk for your data store. Teams often open the database port to the whole internal network for easy setup. Any person or rogue script on that network can try to log in directly. You should lock network paths down so only approved hosts can reach the database.

Scoping database roles and protecting sensitive fields

Start by creating two strict database roles with the least privilege needed. Give the data science platform a role that only writes to one output schema. Give the reporting tool a read-only role scoped only to that clean schema. Neither tool should hold admin rights or read raw tables it does not need.

Next, stop putting long-lived passwords inside user notebooks or shared project variables. Rotate database keys often so old credentials cannot work if someone copies them out. Tie database sessions back to the real person who started the job or query. This step restores clear audit trails across both your code runs and your charts.

You must also protect private customer fields in your shared tables. Production tables often hold emails, phone numbers, card numbers, or national IDs. Masking rules rewrite matched fields in results before they reach a notebook or chart. Analysts still see totals and trends, while sensitive strings stay masked in query outputs.

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 do Domino Data Lab and Metabase share data in production?

Data science jobs write model results to a shared database or data warehouse. The reporting tool then reads those output tables to render charts and dashboards.

Why should we avoid using one database account for both tools?

A single shared account hides who ran each query in your database logs. It also gives the chart tool write permissions that it does not need.

How can we protect private data in shared reporting tables?

Scope the reporting role to clean views and apply data masking to queries. Masking rewrites emails, phone numbers, and card numbers in the query results.

The query runs. The emails stay hidden.