The Simplest Way to Make BigQuery and Domino Data Lab Work Like They Should
Teams pair bigquery and domino data lab to train machine learning models on warehouse data. Data scientists run code in Domino workspaces while BigQuery processes large analytical queries. This workflow keeps heavy data compute inside Google Cloud. Your team pulls only the filtered tables needed for model training into Domino. Getting the link right requires clean identity rules and tight role boundaries. How bigquery and domino data lab share data and roles Domino runs user workspaces insid
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 bigquery and domino data lab to train machine learning models on warehouse data. Data scientists run code in Domino workspaces while BigQuery processes large analytical queries.
This workflow keeps heavy data compute inside Google Cloud. Your team pulls only the filtered tables needed for model training into Domino. Getting the link right requires clean identity rules and tight role boundaries.
How bigquery and domino data lab share data and roles
Domino runs user workspaces inside containers on a compute cluster. BigQuery sits inside Google Cloud and checks every incoming request against cloud identity roles. To make them talk, Domino workspaces need valid Google Cloud credentials.
Many teams start by placing a static JSON service account key into Domino. The user code reads this key file and sends a query to BigQuery. BigQuery checks the role attached to that service account and returns the rows.
For larger reads, the client library uses the BigQuery storage read API. This path streams table blocks in parallel into the Domino workspace memory. When a model run finishes, the script writes predictions back to a staging table.
A safer pattern maps the Domino cluster identity to Google Cloud workload identity. That setup ties the workspace container to a specific cloud role without static files. Each project in Domino can then use its own scoped cloud role.
Common failure modes and how to scope roles
Shared service account keys create the biggest risk in data science setups. One broad key often gets copied across multiple Domino projects and user scripts. When ten people use one key, BigQuery logs show the same account for every query.
Security teams cannot tell which user ran an expensive or sensitive query. If an engineer leaves the company, rotating that shared key breaks active scheduled jobs. Broad roles also let model scripts drop tables or read restricted datasets by mistake.
BigQuery IAM + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix this, split roles by project and workflow stage. Give interactive notebooks read-only roles on specific datasets rather than the whole project. Create a separate role for scheduled pipelines that need to write model output tables.
Next, lock down the network path between the Domino cluster and Google Cloud. Route traffic through private cloud links instead of the public internet. Set up VPC service controls in Google Cloud to block data copies to outside projects.
Handling sensitive fields during model training
Training tables often hold private customer details mixed with useful model features. Data scientists rarely need raw emails, phone numbers, or card numbers to build a model. Pulling those raw fields into Domino workspace disks increases your risk surface.
Set up column-level access rules and policy tags inside BigQuery first. You can also apply data masking rules that rewrite matched fields in query results. For example, masking can replace national IDs or phone numbers with redacted text strings.
Also watch local disk storage inside your Domino workspaces. Encourage users to aggregate rows inside BigQuery before pulling data into memory. This keeps sensitive records inside the cloud warehouse and speeds up notebook runs.
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 do we stop sharing JSON keys across Domino workspaces?
Replace static JSON files with workload identity federation or short-lived user tokens. This lets each workspace obtain temporary access without saving long-lived secrets on disk.
How can we track which Domino user ran a BigQuery job?
Map individual user identities to their queries or attach custom job labels per run. Avoid single shared service accounts so cloud audit logs show the actual person.
What is the fastest way to load large BigQuery tables into Domino?
Filter and aggregate your data inside BigQuery first, then use the storage read API. This streams compressed data blocks in parallel and avoids slow text exports.
Related guides
In this post