The Simplest Way to Make Bitbucket and Domino Data Lab Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use bitbucket and domino data lab together to link code repos with model workspaces. This setup lets data scientists pull versioned code into training runs and push changes back. Data teams need clear version control for every model they train and deploy. Linking a git host with a data science platform keeps code and notebooks in one place. When these tools sync well, every model run ties back to an exact commit hash. How bitbucket and domino data lab share code and keys To link the tw

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 bitbucket and domino data lab together to link code repos with model workspaces. This setup lets data scientists pull versioned code into training runs and push changes back.

Data teams need clear version control for every model they train and deploy. Linking a git host with a data science platform keeps code and notebooks in one place. When these tools sync well, every model run ties back to an exact commit hash.

How bitbucket and domino data lab share code and keys

To link the two systems, a user adds a git key or token to their profile. The data science platform uses that credential to clone repos when a workspace starts up. During a run, the workspace pulls the chosen branch and loads the files onto local storage.

When a user edits a notebook or script, they commit changes inside the workspace. The platform then pushes those commits back to the remote git repo over HTTPS or SSH. Each user needs a personal token or SSH key that matches their git role.

Data flows in both directions during active work, so permissions matter on both sides. If a user has read-only rights in git, the workspace cannot push new commits back. Matching roles across both tools prevents broken pushes and lost notebook edits.

Common failure modes and how to scope roles

Many teams make the mistake of sharing one service account token across every workspace. A shared token hides who pushed a change and gives every user broad repo rights. If that single token leaks, an attacker can read or alter all linked code.

Broad personal tokens cause similar risks when users grant full account scope by default. A workspace that only needs one project repo should not hold keys to the whole workspace. Teams should scope each token to specific repos and set short expiration dates.

End-to-End Encryption + Bitbucket Pipelines Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Network paths between the compute nodes and the git server also need tight rules. If workspaces sit in a private subnet, outbound traffic should only reach approved git hosts. Admins should log every clone and push event to track who moved code and when.

Keeping secrets out of synced notebooks and repos

Data scientists often query databases or call external APIs from inside their workspace notebooks. A common risk happens when users paste database passwords or API keys straight into code cells. When the workspace pushes commits to git, those plain text secrets land in the repo history.

Even if a user deletes the secret in a later commit, git history keeps the value. Anyone who clones the repo later can read the old commit and take the key. Teams must keep database credentials and sensitive customer fields out of notebook files and git commits.

Data results saved inside notebook outputs can also leak private fields into version control. If a query returns emails, phone numbers, card numbers, or national IDs, notebooks save that output. Masking tools that rewrite matched fields in results help stop private data from entering git repos.

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

How do workspaces log in to private git repos?

Users add a personal token or SSH key to their account settings in the platform. The workspace uses that stored key to clone and push code during active runs.

Why do git pushes fail from inside a running workspace?

Pushes usually fail when a token expires or lacks write permissions on the target branch. Checking the token scope and branch protection rules in the git host fixes most errors.

How can teams stop secrets from leaking into git commits?

Teams should never store database keys in code and should clear notebook outputs before committing. Rotating keys often and scoping roles per user also limits damage if a file leaks.

The query runs. The emails stay hidden.