The Simplest Way to Make Azure Data Factory and Gerrit Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use azure data factory and gerrit to review pipeline code before deployment. Gerrit checks each change, and Azure Data Factory runs the approved data jobs. This pairing brings strict code review to data workflows. Engineers propose pipeline updates as JSON files and send them to Gerrit. Peers check the logic, leave notes, and vote on the change. Once approved, a build tool pushes the files to the cloud workspace. This setup stops bad data jobs from hitting production. How azure data fac

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 azure data factory and gerrit to review pipeline code before deployment. Gerrit checks each change, and Azure Data Factory runs the approved data jobs.

This pairing brings strict code review to data workflows. Engineers propose pipeline updates as JSON files and send them to Gerrit. Peers check the logic, leave notes, and vote on the change. Once approved, a build tool pushes the files to the cloud workspace. This setup stops bad data jobs from hitting production.

How azure data factory and gerrit share data and roles

Azure Data Factory stores pipeline definitions as plain text files. Still, its native workspace only talks to a few hosted Git services. It does not link straight to a Gerrit server out of the box. You must use an external build runner to bridge the two tools.

An engineer first edits a pipeline in a local branch or test workspace. They push that commit to Gerrit for peer review. Gerrit holds the change in a staging area until reviewers approve it. After approval, Gerrit merges the commit into the main branch.

Next, the build runner wakes up and reads the merged files from Gerrit. The runner logs in to Azure using a cloud service identity. It then pushes the updated pipeline files into the live data factory. Data flows one way from the review server to the cloud runner.

Permissions stay separate in each system. Gerrit rules control who can read, push, or approve code in a branch. Cloud roles control who can start pipelines or change live data links. Keeping these two permission sets apart prevents single points of failure.

Common failure modes and how to scope access

Many teams take shortcuts when they wire up their build runners. A common mistake is using one shared user account for all Gerrit tasks. When a shared account pushes or merges code, audit logs lose track of who did what. Another trap is giving the build runner a broad token that never expires.

Azure RBAC + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Broad cloud roles also create high risk. If the build runner has full admin rights in Azure, a bad script can delete whole workspaces. Unlogged queries and manual hotfixes in the live cloud portal cause drift too. Someone edits a live pipeline, and the next Gerrit merge wipes out their fix.

To fix this, give the build runner a Dedicated bot account in Gerrit. Grant that bot read access to the main branch and nothing else. Do not let the bot vote on code or bypass review rules. In the cloud, assign the runner a custom role that only updates pipeline objects.

Lock down the live data factory so humans cannot edit jobs by hand. Force every change to go through the Gerrit review queue first. Restrict network paths so only your build runner can reach the Gerrit server and the cloud API. Rotate the runner keys on a strict schedule to limit risk from leaked secrets.

How to handle secrets and data safety in pipeline runs

Pipeline files should never hold raw database passwords or API keys. Reviewers in Gerrit can read every line of text in a commit. If an engineer puts a secret in a JSON file, that secret stays in the Git history forever. Store all secrets in a secure vault instead, and reference them by name in the pipeline file.

Watch out for test data during code reviews as well. Engineers often paste sample outputs into commit messages or review comments to prove a job works. Masking rewrites matched fields like emails, phone numbers, card numbers, or national IDs in results before anyone copies them. This simple habit keeps private user details out of your Gerrit logs.

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

No, the cloud studio only links straight to a small list of hosted Git providers. You need a build runner to sync approved Gerrit code with the cloud service.

How do we stop engineers from editing live pipelines by hand?

Remove write roles for human users in the production cloud workspace. Give write access only to the build runner that deploys approved Gerrit changes.

What is the safest way to test a pipeline before Gerrit approval?

Have your build runner deploy open Gerrit changes to a separate test workspace first. Run the job on fake data there, and post the test score back to Gerrit.

The query runs. The emails stay hidden.