The Simplest Way to Make CentOS and Teamcity Work Like They Should
Running CentOS and TeamCity together lets teams build and test software on stable Linux hosts. TeamCity coordinates the build steps, while CentOS servers act as the worker nodes. This setup gives engineers a predictable Linux base for every automated pipeline job. Teams can compile code, run unit tests, and package artifacts on dedicated machines. When both tools share clear rules, builds run fast and stay easy to manage. How CentOS and TeamCity handle logins and data flow TeamCity uses a ce
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.
Running CentOS and TeamCity together lets teams build and test software on stable Linux hosts. TeamCity coordinates the build steps, while CentOS servers act as the worker nodes.
This setup gives engineers a predictable Linux base for every automated pipeline job. Teams can compile code, run unit tests, and package artifacts on dedicated machines. When both tools share clear rules, builds run fast and stay easy to manage.
How CentOS and TeamCity handle logins and data flow
TeamCity uses a central server to manage build queues and store project settings. CentOS machines run the build agent process and execute the actual job commands. The server and the agents talk to each other over a network link.
First, the CentOS agent registers itself with the central build server using a token. After the server approves the agent, the server sends build steps and code down. The agent runs those steps under a dedicated local Linux user account.
Permissions on the CentOS host control what the build agent can read or write. The local Linux user needs rights to read source files and run build tools. As the job runs, the agent sends console logs back to the main server. When the job finishes, the agent uploads the final build files to the server.
Common failure modes in Linux build pipelines
Many teams run the build agent as the root user to avoid permission errors. This choice creates a huge risk because any build script can change system files. A bad script can wipe the host or read private keys from other projects.
Shared service accounts also cause trouble across multiple build agents and project teams. When every pipeline uses the same SSH key, teams cannot track who changed what. Broad network tokens let a single compromised build job reach other internal servers. Unlogged shell commands make it hard to debug broken builds or audit past runs.
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 separate Linux user with low rights for the agent. Give that user write permissions only inside its own working folder on the disk. Lock down network paths with host firewall rules so agents only reach needed servers. Rotate agent tokens often and remove old build files after each job ends.
Keeping build agents clean and predictable
Long-lived CentOS agents often collect leftover files and old packages over many months. One team might install a tool that breaks another team's build the next day. This state drift makes builds fail for reasons that have nothing to do with code.
Teams can solve this by keeping the base CentOS image very small and clean. Install only the core runtime and let each build job pull its own dependencies. Use automated scripts to set up new agent hosts from a single base template. When an agent starts acting strange, wipe the host and start fresh right away.
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 should the TeamCity agent run as a non-root user on CentOS?
Running as root lets any build script alter core Linux files or read secrets. A standard user account keeps each build job inside its own safe folder.
How do I stop build jobs from filling up the CentOS disk?
Set up clean-up rules on the server to delete old work files after builds. You can also place the agent work folder on a separate disk partition.
What network ports need to keeps the session active between the server and agents?
The CentOS agent needs an outbound link to the main server web port. Modern setups use one-way polling so the server never opens inbound agent ports.
Related guides
In this post