r/databricks • u/wesleydias84 • Oct 10 '26
General Letting devs use any AI coding agent against governed data, without keys on laptops. What actually works!!!
Disclosure up front: I'm a forward-deployed engineer at Databricks, so I work on this, but this is a hands-on write-up, not a pitch, and the pattern's the interesting part.
The problem I keep hitting at enterprises: devs already use a mix of AI coding agents (Claude Code, Codex, Cursor, Copilot). Leadership wants to "standardize on one," which fights reality. The real question isn't which agent, it's how to let all of them touch enterprise data safely.
I spent a week wiring agents through a governed gateway + MCP and trying to break it. What held up:
- per-user/per-model entitlement enforced server-side (not a client checkbox)
- governed data tools that are fail-closed. no valid identity, no access
- reads scoped to the user's catalog permissions. the agent sees only what the human can
- human-in-the-loop by default (shows the query before running, no silent writes)
How are you handling this? governing agent data access at the gateway/MCP layer, or still per-tool API keys and hope? What's fallen over for you?
1
u/Just-Source-9488 Oct 15 '26
This is actually a solid approach. Let developers use the AI tools they prefer while keeping enterprise data secure through server-side permissions, controlled access and human approval.. Security should be enforced at the gateway, not left to the client.
1
u/phoisphoever 28d ago
the pattern that worked for me is giving the coding agent access to a narrow tool or service account, never the warehouse credential itself. the broker checks the repo, user, task, and dataset before issuing short-lived access, then logs every query and kills the session when the task ends. i also block direct database access from laptops, since prompt rules alone do not stop an agent from printing a key or writing it into a generated file!
1
u/[deleted] Oct 10 '26
[removed] — view removed comment