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

Published
Length
3 min read

Luis Felipe Dias

All posts

Using teamcity and tekton together lets teams manage builds and run cloud tasks. TeamCity handles build triggers while Tekton runs tasks inside Kubernetes clusters. Many engineering teams already rely on TeamCity for daily code builds. They also adopt Kubernetes to scale their workloads across cloud clusters. Linking these two systems creates a unified workflow for software delivery. TeamCity tracks source changes, manages build queues, and shows test results. Tekton takes over when a task need

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 teamcity and tekton together lets teams manage builds and run cloud tasks. TeamCity handles build triggers while Tekton runs tasks inside Kubernetes clusters.

Many engineering teams already rely on TeamCity for daily code builds. They also adopt Kubernetes to scale their workloads across cloud clusters. Linking these two systems creates a unified workflow for software delivery. TeamCity tracks source changes, manages build queues, and shows test results. Tekton takes over when a task needs native Kubernetes pods to run.

How teamcity and tekton share roles and data

To link teamcity and tekton, you must set up clear trust rules. TeamCity needs a safe way to talk to the Kubernetes API. An agent sends a request to start a Tekton pipeline run. This request carries a token that proves who the caller is.

Kubernetes checks this token before it allows any action to start. Once approved, Tekton creates pods to run the build steps. The Tekton controller watches these pods until the work finishes. TeamCity then reads the status and logs back from the cluster.

Data flows between the two tools through build parameters and shared storage. TeamCity passes commit hashes and branch names into the Tekton run request. Tekton uses these values to pull the right code and build images. Both tools need clear permission rules to keep this data safe.

Common failure modes and how to scope permissions

Many teams make mistakes when they first join these two build tools. The most common error is using one shared admin account for everything. A team might give TeamCity a broad cluster token to save time. If that token leaks, an attacker can control the whole Kubernetes cluster.

Static tokens also cause big problems over time. Engineers put long-lived keys into TeamCity project settings and forget about them. Nobody rotates these keys because they fear breaking the main build pipeline. Soon, many projects share the same secret key with no clear owner.

End-to-End Encryption + Tekton Pipeline Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged actions create another big gap for security teams. When ten TeamCity projects use one service account, cluster logs look identical. You cannot tell which project or developer started a bad pod run. To fix this, give each TeamCity project its own scoped Kubernetes role.

Map each build agent to a specific namespace inside your cluster. Allow the role to create and read Tekton runs in that space only. Block the role from reading cluster secrets or changing network rules. Set network rules so only known build agents can reach the cluster API.

Keeping build pipelines fast and safe

Good pipeline design keeps developers moving fast while keeping systems safe. Start by splitting build compilation from cluster deployment tasks. Let TeamCity compile code, run unit tests, and check code quality first. Only call Tekton when you need to build containers or update pods.

Pass only the data that Tekton needs to finish its job. Do not send raw database keys or cloud passwords in plain text. If logs hold sensitive data like emails or card numbers, mask them. Masking rewrites matched fields in results so logs stay clean and safe.

Review your cluster roles every quarter to remove old permissions. Delete unused service accounts when a project ends or moves. Short token lifetimes also reduce the risk of a leaked build key. When every build step uses minimum permissions, your whole delivery pipeline stays strong.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Why use TeamCity and Tekton together instead of picking one?

TeamCity offers great test reporting, build history, and queue control for teams. Tekton runs tasks natively inside Kubernetes without needing extra virtual machines. Using both lets you keep your favorite dashboard while scaling cluster builds.

How should TeamCity agents log in to a Tekton cluster?

Each TeamCity project should use a dedicated Kubernetes service account with narrow rights. Avoid sharing one cluster admin token across multiple build projects or teams. Use short-lived tokens whenever your cloud platform supports them.

How do we stop build logs from leaking sensitive data?

Never pass plain text secrets as build parameters between the two tools. Set up data masking to rewrite emails, phone numbers, and card numbers. This keeps sensitive values out of shared build logs and test reports.

The query runs. The emails stay hidden.