The Simplest Way to Make Teamcity and Zerto Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You link teamcity and zerto by calling disaster recovery APIs from your build steps. This setup lets teams trigger recovery checkpoints and test failovers before deploying new code. Build pipelines push changes fast, and bad releases can break live systems. When your build server talks to your recovery manager, every deploy gets a safety net. You can verify that replication is healthy before a single binary reaches production. How teamcity and zerto share roles and data The build agent start

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.

You link teamcity and zerto by calling disaster recovery APIs from your build steps. This setup lets teams trigger recovery checkpoints and test failovers before deploying new code.

Build pipelines push changes fast, and bad releases can break live systems. When your build server talks to your recovery manager, every deploy gets a safety net. You can verify that replication is healthy before a single binary reaches production.

How teamcity and zerto share roles and data

The build agent starts the flow when a deployment job runs. It logs in to the recovery manager over HTTPS using a dedicated service account. Once verified, the build step requests a fresh session token from the recovery API.

With that token, the agent checks the health of virtual protection groups. If replication lags behind, the build step stops the release right away. If replication is clean, the agent sends a command to insert a tagged checkpoint.

Data flows both ways during this process. The recovery tool sends back task status IDs and recovery point metrics. The build server reads those updates and writes them into the build log. Teams can also trigger isolated test failovers in a bubble network to test updates.

Common failure modes and how to scope permissions

Many teams make the mistake of using a full admin account for build agents. If a build script leaks that key, an attacker can wipe out recovery sites. Shared accounts also make it impossible to see which pipeline triggered a failover.

Another common issue is storing static passwords in plain project variables. Junior developers with edit rights on a build step can read those secrets. Unlogged API calls also hide failed recovery tests until a real outage hits.

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 narrow role for your build agents. Grant permission only to read group status, add checkpoints, and run test failovers. Block the build role from deleting protection groups or running live failovers without approval.

Next, lock down the network path between the two tools. Place your deployment agents on a separate subnet from general compile agents. Allow traffic to the recovery API port only from those specific deployment agent IPs.

Testing recovery workflows inside your build pipeline

A good pipeline does more than just insert a marker before a release. It also proves that the backup image can boot and run the new app. You can add a nightly build job that starts a non-disruptive failover test.

The build agent tells the recovery manager to spin up the test group. Once the virtual machines boot in the isolated network, the agent runs smoke tests. It checks database integrity, verifies app ports, and confirms that services respond on time.

If any check fails, the build server marks the run red and alerts on-call staff. After the test finishes, the agent sends a stop command to clean up resources. This daily habit catches broken boot scripts long before a real disaster strikes.

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

Should every code build trigger a recovery checkpoint?

No, running checkpoints on every compile step adds noise to your recovery journal. Trigger checkpoints only on release builds that change live production servers or databases.

How do we stop a deploy if replication is unhealthy?

Add a pre-deploy step that queries the protection group status through the REST API. If the status shows a warning or error state, make the build script exit with a failure code.

Can build agents run failover tests without hurting live traffic?

Yes, the recovery API supports isolated test failovers inside a fenced network bubble. Your live servers keep running normal traffic while the build agent tests the copy.

The query runs. The emails stay hidden.