The Simplest Way to Make Redash and Teamcity Work Like They Should
Teams pair redash and teamcity to track build speeds and test results on live dashboards. TeamCity runs your code builds, while Redash queries that build data to spot slow steps. This setup helps engineering teams see why builds fail over time. You can turn raw build logs into clear charts for the whole team. When you link these two tools well, everyone sees the same build health numbers. How redash and teamcity share data and keys TeamCity stores build history, test counts, and agent load i
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.
Teams pair redash and teamcity to track build speeds and test results on live dashboards. TeamCity runs your code builds, while Redash queries that build data to spot slow steps.
This setup helps engineering teams see why builds fail over time. You can turn raw build logs into clear charts for the whole team. When you link these two tools well, everyone sees the same build health numbers.
How redash and teamcity share data and keys
TeamCity stores build history, test counts, and agent load inside a backend database or API. Redash needs a read role or an API key to pull these numbers on a schedule. You set up a data source in Redash that points to the TeamCity data store.
First, you create a dedicated user role in your TeamCity database or server. This role should only have rights to read build tables and test logs. Never give a reporting tool the power to change build settings or delete history.
Next, you add those login keys into Redash as a new data source. Redash uses this link to run SQL queries or API calls at set times. The results come back to Redash, where you build charts for deploy frequency and failure rates.
Network rules also matter when these two apps talk to each other. Both tools should sit inside your private network or talk over encrypted links. You should restrict traffic so only the Redash server IP can reach the TeamCity data port.
Common risks with shared keys and broad roles
Many teams take shortcuts when they first hook up their build charts. They often reuse an admin database account so the queries work right away. This single mistake puts your whole build pipeline at risk if a key leaks.
Shared service accounts also make it hard to track who ran a heavy query. Five engineers might share one login inside Redash to write new build reports. When a huge query slows down the TeamCity database, logs only show the shared account name.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Broad tokens create another big problem for security teams. An API key with full rights lets anyone read secret build variables or trigger bad deploys. You must scope every token down to the exact projects and tables needed for charts.
Unlogged queries can also expose sensitive data stored inside build logs. Build outputs sometimes hold customer emails, phone numbers, or card numbers from test runs. Without field masking to rewrite matched fields in results, raw data shows up on shared dashboards.
Best ways to scope roles and network paths
Start by splitting your reporting load from your active build database. Point Redash at a read replica of the TeamCity database whenever you can. This stops heavy dashboard queries from slowing down active code builds during busy hours.
Give each team its own data source group inside Redash with strict read limits. Map these groups to your main identity provider so staff log in with their own work emails. When someone leaves the team, turning off their main account cuts off their dashboard access too.
Rotate the keys that link Redash to your build data on a regular calendar. Set alerts on your database logs to flag slow queries or odd login times. Keep a clear audit trail that ties every query back to a real person on your team.
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
Should Redash query the main TeamCity database directly?
No, it is safer to query a read replica of your build database. A replica keeps heavy reporting queries from slowing down live builds and test runs.
What permissions does Redash need for TeamCity data?
Grant only read access to the specific tables or API endpoints that hold build metrics. Never use an admin role or a key that can edit build jobs or read secret keys.
How do we stop sensitive data in build logs from leaking into charts?
Keep test data clean and use data masking to rewrite emails, phone numbers, or card numbers in query results. You should also review who can run raw SQL queries inside your reporting tool.
Related guides
In this post