The Simplest Way to Make Compass and Databricks ML Work Like They Should
Teams use compass and databricks ml to track software services and machine learning models in one place. Compass maps your internal services, while Databricks ML trains and runs your data models. Linking them helps engineers see which teams own specific model pipelines and data jobs. This guide covers how to link both tools with safe roles and clear logs. How compass and databricks ml share data and permissions Compass acts as a central catalog for all your software components and data pipeli
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 compass and databricks ml to track software services and machine learning models in one place. Compass maps your internal services, while Databricks ML trains and runs your data models. Linking them helps engineers see which teams own specific model pipelines and data jobs. This guide covers how to link both tools with safe roles and clear logs.
How compass and databricks ml share data and permissions
Compass acts as a central catalog for all your software components and data pipelines. Databricks ML runs the notebooks, training jobs, and model endpoints that power your apps. When you link them, Compass reads job states and model metrics from your workspace. This setup lets developers check model health right next to their service health cards.
To make this work, both tools need a clear way to log in and talk. In most setups, an automation job or webhook sends updates between the two platforms. You set up a dedicated service identity in your workspace for this specific task. That identity gets a token or key that lets it read model status updates. Then, your pipeline sends those status details back to the catalog API on a schedule.
Permissions should follow the rule of least privilege at every step of the flow. The catalog only needs to read metadata about job runs and model versions. It does not need permission to read raw training tables or change cluster settings. Keeping these roles small stops a leaked catalog key from putting your data at risk.
Common failure modes and how to scope roles
Many teams take shortcuts when they first link their catalog and machine learning workspace. The most common mistake is using a single personal token from a lead engineer. When that engineer leaves the team, the token dies and the catalog stops updating. Even worse, personal tokens often have broad rights to edit or delete production models.
Another big issue is sharing one broad service account across many different data teams. If five teams use the same key, your audit logs become hard to read. You cannot tell which team or script ran a slow query or changed a model. Shared keys also make key rotation painful because every team must update their scripts together.
Unlogged queries and hidden data pulls also create blind spots for your security team. When notebooks or scripts query production databases during training, those queries need clear audit trails. If a training job pulls customer tables, masking should rewrite emails and card numbers in results.
End-to-End Encryption + ML Engineer Infrastructure Access: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix these problems, create separate service principals for each team and workflow. Scope each role so it only reads the exact workspace objects that Compass tracks. Lock down network paths so only approved IP ranges can call your workspace APIs. Set an expiration date on every token and rotate keys on a set schedule.
Keeping model operations safe as teams grow
As more teams add models to the catalog, manual role checks start to fail. Platform teams should use templates to set up new workspace roles and catalog links. Templates make sure every new model pipeline starts with the same safe permission rules. They also ensure that every component in the catalog points to a real owner.
Good logging across both tools helps you spot broken jobs and weird login attempts fast. Check your workspace audit logs each week to see what your catalog keys are doing. Remove old tokens and unused service roles as soon as a project wraps up. Clear ownership in the catalog makes it easy to find the right person during an alert.
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
What data should Compass pull from a Databricks ML workspace?
Compass should only pull high-level metadata like job run statuses, model version numbers, and owner tags. It should never pull raw training data or sensitive customer records from your tables.
Why should we avoid personal tokens for linking these tools?
Personal tokens are tied to one user and often carry too many workspace rights. If that user changes roles or leaves, the link breaks and updates stop flowing.
How can we protect PII during model training and data checks?
Use strict role scoping and data masking on your data sources. Masking rewrites matched fields like phone numbers and national IDs in results before jobs use them.
Related guides
In this post