The Simplest Way to Make Databricks and Teamcity Work Like They Should
Using databricks and teamcity together lets your team test and ship data code fast. TeamCity builds your code and sends jobs to your data workspace to run. Data teams need a reliable way to move code from a repo to production. Manual steps cause bad bugs and waste hours of work every week. A build tool runs tests on every code change before it goes live. Then it pushes the clean notebooks and libraries straight to your compute clusters. This setup keeps your data pipelines clean, tested, and re
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.
Using databricks and teamcity together lets your team test and ship data code fast. TeamCity builds your code and sends jobs to your data workspace to run.
Data teams need a reliable way to move code from a repo to production. Manual steps cause bad bugs and waste hours of work every week. A build tool runs tests on every code change before it goes live. Then it pushes the clean notebooks and libraries straight to your compute clusters. This setup keeps your data pipelines clean, tested, and ready for scale.
How databricks and teamcity handle logins and data flow
First, an engineer pushes new data code to a central source control repo. TeamCity spots this change and starts a new build job on an agent. The build agent compiles the code, runs unit tests, and packs the files. Next, the agent must log in to the data workspace to send files.
Most teams use a service identity or a token for this login step. You store the secret key inside the TeamCity project store so builds read it. The build agent sends API calls over the network to the workspace endpoints. It uploads the new code package and starts an automated test job run. The workspace runs the data job on a cluster and returns a status. TeamCity reads that status and marks the build as a pass or fail.
Permissions control what the build agent can do inside the data workspace. The identity linked to the build agent needs rights to manage jobs. It also needs permission to start clusters and read test data tables. It should not have full admin rights across the whole account.
Common failure modes and how to scope roles
Many teams make the mistake of using one personal token for all builds. If that engineer leaves the company, every single build pipeline breaks at once. Shared tokens also make it hard to see who ran what job. Anyone with project admin rights in the build tool can misuse a wide token.
Another big risk comes from giving the build agent full workspace admin roles. A bad script in a feature branch could drop production tables by mistake. Unlogged queries from build agents also leave gaps in your security audit trails. Security teams need to know which exact build changed a table or job.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix this, create a separate service identity for each project and stage. Give the dev build agent access only to the dev workspace and data. Give the prod build agent access only to the prod jobs it runs. Use workspace role rules to block the build agent from reading raw tables. If the job reads real data, mask emails, phone numbers, and card numbers. Masking rewrites matched fields in results so test logs stay safe and clean.
Setting up safe network paths for build agents
Network paths between your build agents and your data workspace matter a lot. Public endpoints expose your workspace to login tries from anywhere on the web. You should lock down the network so only known build agents can talk.
Put your self-hosted build agents inside your private cloud network when you can. Set up IP allow lists on the workspace to block unknown traffic sources. Rotate your service keys on a set schedule so old keys expire fast. Check your workspace audit logs each week to spot odd build agent runs. Clear role rules and tight network paths keep your data pipelines safe every day.
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
Should we use personal tokens for TeamCity build agents?
No, you should use dedicated service identities instead of personal user tokens. Service identities stay active when staff change roles and allow tighter permission rules.
How do we keep test builds from changing production data?
Use separate workspaces or catalog schemas for dev, test, and production stages. Give each TeamCity project a unique role that only touches its own stage.
What permissions does a TeamCity agent need in the workspace?
The agent only needs rights to upload files, edit specific jobs, and run clusters. Do not grant account admin rights or broad read rights on sensitive tables.
Related guides
In this post