The Simplest Way to Make Cloud Storage and Teamcity Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You link cloud storage and teamcity to save build outputs in remote buckets. This setup frees local disk space and helps build agents share files fast. Build pipelines make many large files every single day. Saving all those files on your main build server fills up disks fast. Moving build outputs to object buckets keeps the main server light and fast. Agents can push and pull files straight from the cloud provider. How data and permissions flow between cloud storage and teamcity The build s

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 cloud storage and teamcity to save build outputs in remote buckets. This setup frees local disk space and helps build agents share files fast.

Build pipelines make many large files every single day. Saving all those files on your main build server fills up disks fast. Moving build outputs to object buckets keeps the main server light and fast. Agents can push and pull files straight from the cloud provider.

How data and permissions flow between cloud storage and teamcity

The build server coordinates the job, while build agents handle the heavy file transfers. First, the server checks its cloud profile and grants permission for the run. In many setups, the server signs a short-lived web link for the bucket. The build agent then uses that link to upload or download the files.

Files do not need to pass through the main server at all. They travel straight between the worker node and the remote storage bucket. This direct path saves network bandwidth on your central control node. It also lets many agents push big test logs at the same time.

You have two main ways to handle cloud login keys in this flow. You can give static keys to the project, or use machine roles. Machine roles work best when your build servers run inside the same cloud. The cloud provider checks the server role and grants bucket write rights.

Common failure modes and how to scope roles

Many teams make the mistake of sharing one wide service account across projects. If one test pipeline leaks that key, every project bucket is at risk. Broad tokens also let low-trust test jobs overwrite release files from other teams. Unlogged file reads make it hard to see who pulled sensitive build outputs.

You can fix this by giving each project group its own bucket path. Set up separate roles for reading old builds and writing new ones. Most build steps only need to read a few files and write outputs. They should never have the right to delete whole buckets or change permissions.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Network paths between your build agents and buckets also need tight rules. If agents run in your cloud network, use private endpoints for storage traffic. This keeps all your build files off the public internet during transfer. Put a bucket rule in place that blocks requests from unknown networks.

Keeping storage costs and audit logs clean

Build systems create terabytes of data if you leave old runs alone. Set up cleanup rules in both your build tool and your cloud bucket. Tell the build server to clear out old test runs after thirty days. Add a bucket lifecycle rule to delete leftover fragments from failed uploads.

Turn on bucket access logs so you have a trail of every transfer. When a build fails to download a package, those logs show why. You will see right away if a role lacked read rights on a path. Clear logs also help your security team track every file read and write.

Test your backup and restore flow before a real outage hits your team. Make sure you save both the server database and the remote bucket pointer list. When those two pieces match, you can recover your whole build system fast.

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

Do build artifacts pass through the main TeamCity server during upload?

No, build agents send files straight to the cloud bucket using signed links. This direct path keeps heavy file traffic off your central build server.

Should I use static access keys or IAM roles for bucket permissions?

Use cloud machine roles whenever your build nodes run inside that cloud provider. Roles remove the need to store, rotate, or share long-lived secret keys.

What happens if a build agent loses network access to the bucket?

The build step fails to publish its outputs and logs a transfer error. You can check the agent log and bucket audit log to find the block.

The query runs. The emails stay hidden.