The Simplest Way to Make CircleCI and Domino Data Lab Work Like They Should
Teams use CircleCI and Domino Data Lab together to test code and run models. CircleCI checks every code push and tells Domino Data Lab to start a job. This workflow turns manual data science tasks into automated pipeline steps. Developers push code to a git repo, and CircleCI runs unit tests right away. When those tests pass, the pipeline sends a web request to the data science platform. The platform then trains a model, runs a batch script, or updates a live app. How CircleCI and Domino Data
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 CircleCI and Domino Data Lab together to test code and run models. CircleCI checks every code push and tells Domino Data Lab to start a job.
This workflow turns manual data science tasks into automated pipeline steps. Developers push code to a git repo, and CircleCI runs unit tests right away. When those tests pass, the pipeline sends a web request to the data science platform. The platform then trains a model, runs a batch script, or updates a live app.
How CircleCI and Domino Data Lab share keys and data
CircleCI needs a valid key to start jobs inside your data science workspace. Teams store this secret key inside their CircleCI project settings or shared contexts. When a build starts, the runner reads the secret and puts it in memory. The build job then sends that key over HTTPS to the platform API.
Data flows between both tools through git repos and cloud storage buckets. CircleCI does not send huge data files over the API call. Instead, it sends the git commit hash and a few run inputs. Domino Data Lab pulls the exact code commit and reads data from shared storage. After the model run finishes, the platform sends a status code back to the pipeline.
Common failures and how to scope roles
Many teams make the mistake of using one personal key for all builds. If that person leaves the company, every automated model build breaks at once. Shared keys also make audit logs hard to read during a security check. You cannot tell which pipeline or user started a specific model training run. Broad keys often have admin rights that a simple build job never needs.
Fix this by creating a dedicated service account for your build pipelines. Give this account a narrow role that only starts jobs in one project. Store the key in a restricted CircleCI context so only approved branches use it. Rotate the key on a set schedule to keep your workspace safe. Lock down network paths so the API only accepts calls from known runner IPs.
End-to-End Encryption + CircleCI Security: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Keeping model pipelines fast and safe
Long model runs can cause build steps to time out and fail. CircleCI jobs work best when they finish in a few minutes. Do not make your build runner wait hours for a deep learning job. Have the runner start the remote job, verify it began, and exit right away. Let the data platform handle alerts when the heavy training run ends.
Teams also need to watch out for sensitive data in build logs. When a script prints model results, it might leak private fields into plain text. Masking rewrites matched fields like emails, phone numbers, card numbers, or national IDs in results. Keep your build output limited to job IDs, run status, and basic metrics. This habit keeps your pipeline logs clean and safe for the whole engineering team.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
How does CircleCI trigger a run in Domino Data Lab?
A build step sends an HTTPS request to the platform API endpoint. This request includes your project ID, the file name, and a secret key.
Where should we store our API keys in CircleCI?
Store your keys in a restricted CircleCI context rather than in plain project files. Limit that context to specific git branches like your main release branch.
Should CircleCI wait for long model training runs to finish?
No, long training runs will eat up build minutes and hit timeout limits. Start the job via the API, check that it is running, and close the step.
Related guides
In this post