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

Published
Length
3 min read

Luis Felipe Dias

All posts

Using fortigate and teamcity together lets your build server deploy code across protected network zones. The firewall filters traffic while the build server runs tests and pushes new releases. Many teams struggle when firewall rules block build agents or drop active deploy jobs. A clear network and role setup fixes these drops and keeps your releases moving. How fortigate and teamcity share traffic and roles Teamcity uses a central server and multiple build agents to compile and ship code. T

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.

Using fortigate and teamcity together lets your build server deploy code across protected network zones. The firewall filters traffic while the build server runs tests and pushes new releases.

Many teams struggle when firewall rules block build agents or drop active deploy jobs. A clear network and role setup fixes these drops and keeps your releases moving.

How fortigate and teamcity share traffic and roles

Teamcity uses a central server and multiple build agents to compile and ship code. These agents need network paths to reach source repos, package stores, and target servers. Fortigate sits between these network zones and checks every packet against your security rules.

To make them work together, you define clear source and destination addresses for agents. You can group your build agents into a dedicated network zone on the firewall. Then you write rules that allow only required ports from that zone to targets.

Identity also plays a major part in how these two tools talk in production. Build jobs often log in to target hosts or call firewall interfaces during deploys. Each system checks the key or token sent by the job before allowing changes. When you link firewall rules with build identities, you control what each job touches.

Common failure modes and how to scope network paths

The biggest risk in this setup is using one shared account for all builds. Teams often create one broad firewall rule and one admin key for every project. If a bad script runs in a test job, it can reach production servers.

Broad tokens also make it hard to read logs when a deploy goes wrong. If ten agents share one key, your logs will not show which job failed. Unlogged commands and wide network rules turn small bugs into major outages for teams.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix this by splitting your build agents into separate groups by purpose. Put test agents in one network subnet and production deploy agents in another subnet. On the firewall, allow test agents to reach only staging hosts and test databases.

Give each project its own scoped service role with the smallest set of permissions. Rotate keys often and store them in secret stores instead of plain build scripts. Set the firewall to log every connection from the build zone to production hosts. Also check timeout values on the firewall so long builds do not drop early.

Keeping build logs and data clean

Build jobs often read database rows or user records during integration tests and deploys. If a script prints output to the build log, sensitive data can leak out. Data masking rewrites matched fields in results, such as emails, phone numbers, and card numbers. Using masking for national IDs and card numbers keeps your build logs much safer.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Why do my build agents lose talk with the main server through the firewall?

Long builds can sit quiet while waiting for a slow test to finish running. If the firewall idle timer is too short, it drops the open network session. You can fix this by raising the session timer for your build agent ports.

Should build agents use one shared key to update firewall rules?

No, shared keys create a large security risk and make audit logs very messy. Give each deploy pipeline its own scoped role that only changes its own rules. Revoke the key as soon as the project ends or changes its deploy path.

How do I let cloud build agents reach private servers behind the firewall?

Avoid opening wide public ports on your firewall for cloud agents to reach in. Instead, place a local build agent inside your private network zone behind the firewall. Let that local agent pull jobs from the main server over a safe outbound path.

The query runs. The emails stay hidden.