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

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing teamcity and ubiquiti lets build pipelines update network rules during code deploys. Build agents send requests to the network controller to adjust routing and firewall states. Teams often run local build runners inside private office or lab networks. Those runners need local ports open or test VLANs created before tests start. Automating this link removes manual tickets and keeps network changes tied to code commits. You get repeatable test runs without waiting on manual router updates

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.

Pairing teamcity and ubiquiti lets build pipelines update network rules during code deploys. Build agents send requests to the network controller to adjust routing and firewall states.

Teams often run local build runners inside private office or lab networks. Those runners need local ports open or test VLANs created before tests start. Automating this link removes manual tickets and keeps network changes tied to code commits. You get repeatable test runs without waiting on manual router updates.

How teamcity and ubiquiti share keys and data

The build server starts a job when a developer pushes new code. A build agent picks up the task and reads its assigned secret variables. The agent then logs in to the network controller API over HTTPS. It sends a request to read device states or write new firewall rules.

The network controller checks the account role before it runs the command. Once the change finishes, the controller sends a status message back to the agent. The agent logs the response and moves to the next build step. When the test ends, a cleanup step puts the network back in place.

Common failure modes and how to scope roles

Many teams use one shared admin account for all build jobs. This choice gives every pipeline full control over the entire local network. A bad script in one test job can drop the main office link. Shared accounts also make it hard to see which build broke a rule.

Broad network paths create another big risk for your local hardware. If any build agent can reach the management plane, any job can make changes. Unlogged API calls leave the security team guessing during an outage. You cannot fix a problem fast if you lack a clear audit trail.

Fix this by creating a dedicated role with minimal write rights. Give the build runner permission to change only the isolated test VLANs. Block the runner from touching core routing tables or primary admin settings. Put your build agents on a restricted subnet with strict firewall rules.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Only specific agents should talk to the controller management port. Tag those agents so only approved deploy jobs can run on them. Rotate your API keys on a set schedule to limit exposure. Store all keys in masked project variables so they do not leak in logs.

Auditing network tasks in build pipelines

Good pipelines track both the code build and the network state change. Have your script check the current rule state before it writes anything new. Log the exact target device and rule ID inside the build output. This step gives the team a clear record of what changed and when.

Keep your network scripts small and easy for any engineer to read. Test every script against a staging controller before running it in production. If a script fails halfway through, run an automatic rollback step right away. Clear logs and tight roles keep both your builds and your network safe.

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

It lets pipelines spin up isolated test networks and open temporary ports during builds. When tests finish, the pipeline removes the temporary rules right away.

How should we store network keys in the build tool?

Save keys as masked parameters scoped to one specific project. Never put plain text passwords inside your source code or shared global settings.

How do we stop a bad build from breaking the network?

Use a dedicated role limited to non-production VLANs and test groups. Restrict management port traffic to one locked-down build agent on a separate subnet.

The query runs. The emails stay hidden.