The Simplest Way to Make Databricks ML and Google Compute Engine Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair databricks ml and google compute engine to train models and run custom jobs. This setup lets data scientists train models in one place and run apps on virtual machines. Data teams build features and track model runs in the workspace. Then, apps on virtual machines call those models or pull fresh data. Both systems must share data and identities without exposing raw keys. How databricks ml and google compute engine share identity and data To link databricks ml and google compute en

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 databricks ml and google compute engine to train models and run custom jobs. This setup lets data scientists train models in one place and run apps on virtual machines.

Data teams build features and track model runs in the workspace. Then, apps on virtual machines call those models or pull fresh data. Both systems must share data and identities without exposing raw keys.

How databricks ml and google compute engine share identity and data

To link databricks ml and google compute engine, you must set up cloud roles first. Each system needs a clear way to prove who is making a request. You assign a service account to your virtual machines in Google Cloud. That account holds permissions to read storage buckets or call workspace APIs.

On the workspace side, cluster nodes also run on virtual machines in your cloud account. These nodes use their own cloud roles to read training files and write model outputs. Data flows through cloud storage buckets or over private network links between the two tools.

When an app on a virtual machine needs predictions, it sends a request. The workspace checks the token on that request before returning any model output. When a training job needs raw data from a machine, it checks network rules first. Good setups keep all this traffic inside private cloud networks instead of the public web.

Common security gaps and how to fix them

Many teams start by putting static API tokens into scripts on virtual machines. Engineers often share one broad service account across every machine and notebook cluster. This habit makes it impossible to see which person ran a specific query. If a token leaks in a log file, an attacker gains broad permissions.

Unlogged queries create another big blind spot for security teams. When five engineers share one machine role, cloud logs only show the machine name. You cannot tell who read a table or changed a model weight. Training data often holds emails, phone numbers, card numbers, or national IDs. Without field checks, notebooks can pull those sensitive values into plain text files.

ML Engineer Infrastructure Access + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, give each workload its own narrow service account. Limit each role to the exact storage buckets and tables it needs to read. Turn on VPC peering or private service links so traffic stays off public routes. Use firewall rules to block notebook nodes from reaching unrelated virtual machines. Map every human action back to an individual user identity before any job runs. Set up data masking so queries rewrite emails and card numbers in query results.

Keeping model pipelines fast and safe

Security rules fail when they force data scientists to wait days for permissions. Teams move faster when role checks and log collection happen in the background. Start by removing long-lived keys from virtual machine disks and notebook secrets. Replace them with short-lived tokens tied to a real user or single job.

Next, review network paths between your training clusters and custom compute instances. Block open ports and require identity checks on every database or storage call. Log every query and API call with the human user attached to the record. This approach keeps audit teams happy while engineers build and ship models on time.

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

How should virtual machines log in to the ML workspace?

Attach a dedicated cloud service account to each virtual machine group. Grant that account narrow permissions in the workspace instead of using personal API tokens.

How do we keep traffic between these two tools off the public internet?

Run your workspace clusters in the same cloud network or link networks with peering. Then set firewall rules so only approved machine groups can talk to each other.

How can we protect sensitive fields during model training?

Apply data masking rules that rewrite emails, phone numbers, and card numbers in results. This keeps raw personal data out of notebook outputs and model training logs.

The query runs. The emails stay hidden.