The Simplest Way to Make Databricks ML and LDAP Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair databricks ml and ldap to manage who can run models and read data. Directory groups map to workspace roles so data scientists use their standard company logins. This setup keeps group rules in one central place. When a person joins or leaves a team, their workspace rights update right away. Engineers do not need to create separate accounts by hand for each project. How databricks ml and ldap handle logins and data flow In a standard setup, the directory server holds every user pro

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 ldap to manage who can run models and read data. Directory groups map to workspace roles so data scientists use their standard company logins.

This setup keeps group rules in one central place. When a person joins or leaves a team, their workspace rights update right away. Engineers do not need to create separate accounts by hand for each project.

How databricks ml and ldap handle logins and data flow

In a standard setup, the directory server holds every user profile and group list. A sync process reads these directory groups and sends them to the cloud workspace. This process runs on a set schedule to keep both systems in sync.

When a user logs in, the identity provider checks their directory password. Once approved, the workspace checks which directory groups that user belongs to. Those groups control which compute clusters, notebooks, and model registries the user can use.

Data flow follows these same group rules during model training. A notebook job checks the user role before it reads tables from storage. If the role matches the table rule, the cluster loads the training data. The model registry also checks these group roles before someone pushes a model to production.

Common failure modes with shared accounts and broad roles

Many teams hit trouble when they sync every directory group into the workspace. Old directory trees often contain hundreds of nested groups built over many years. Syncing all of them makes role checks slow and hard to read during audits.

Another common mistake is using one shared directory account for automated training jobs. Teams often put a static key or password into a notebook to pull data. When everyone shares one service account, audit logs cannot show who ran which query. If that shared key leaks, an attacker can read every training table.

LDAP Directory Services + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Broad group roles also create risk inside the workspace. If a single directory group grants admin rights, too many users can change cluster rules. A user might run a heavy job or read raw tables with phone numbers.

How to scope roles and network paths between systems

Start by filtering which directory groups sync to the workspace. Create specific directory groups just for machine learning teams and their projects. Split these groups by job task, such as model builders, reviewers, and automated runners.

Assign the smallest set of permissions to each group. Model builders need rights to read clean training sets and run test clusters. Reviewers need rights to check model metrics and approve registry updates. Automated jobs should use separate service principals with narrow table rules instead of shared accounts.

Lock down the network path between your cloud workspace and the directory server. Use private network links so directory traffic never crosses the public internet. Turn on transport encryption for all directory queries to protect passwords and group lists. Check your workspace logs each week to spot failed logins or strange data queries. When training sets hold emails or card numbers, masking rewrites matched fields in results.

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

Can Databricks ML connect to an on-premises LDAP server directly?

Most teams link their on-premises directory to an identity provider first. That provider then syncs users and groups to the workspace over a standard protocol. You can also run a sync tool inside your private network to push group updates.

How should we handle permissions for automated model training jobs?

Do not use a personal directory account for scheduled training jobs. Create a dedicated service principal for each project pipeline and map it to a specific group. Give that group read rights only to the exact tables needed for that model.

What happens when a user is removed from an LDAP group?

On the next sync cycle, the workspace removes that user from the matching role. Active notebook sessions may keeps the session active until the current login token expires. For urgent removals, admins should revoke active tokens and stop running clusters right away.

The query runs. The emails stay hidden.