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

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing looker and teamcity lets teams test data models during every build run. This workflow checks code changes before bad queries reach live charts. Data teams write code for metrics and reports in source control. Build servers then run checks on that code before merging it. When both apps work together, teams catch broken reports early. Analysts and builders can trust the numbers on every screen. How looker and teamcity share keys and data The build tool needs a way to talk to the chart

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.

Pairing looker and teamcity lets teams test data models during every build run. This workflow checks code changes before bad queries reach live charts.

Data teams write code for metrics and reports in source control. Build servers then run checks on that code before merging it. When both apps work together, teams catch broken reports early. Analysts and builders can trust the numbers on every screen.

How looker and teamcity share keys and data

The build tool needs a way to talk to the chart app. You set up a dedicated machine user inside the data platform. That machine user gets an API key with narrow read rights. You store this secret key inside the build server store.

When a builder pushes code, the build server starts a test job. The job pulls the latest branch from your version control system. Next, the build runner uses the stored key to log in. It calls the chart app API to run model checks.

The data tool tests every view and join for syntax mistakes. It also runs test queries against the underlying data store. Then the data tool sends a pass or fail message back. If a check fails, the build server blocks the code merge.

Common failure modes and how to scope roles

Many teams make the mistake of sharing one admin key across jobs. An admin key can delete projects or change user roles by accident. If that key leaks in a build log, attackers gain full control. Shared keys also make it hard to trace who ran a query.

Another big issue is unlogged queries running from build agents. Build jobs often test views that touch tables with private user records. Without field masking, test runs can pull emails or phone numbers. Masking rules rewrite matched fields like card numbers or national IDs in results.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix these risks, give each project its own service role. Scope that role so it only reads the folders it needs. Never grant admin rights to a build runner account. Set network rules so only known build agents reach the API.

Keeping build logs and data tests clean

Build servers record console output for every step in a pipeline. Sometimes a failed API call prints headers or payloads to the log. You must set the build tool to scrub secrets from all logs. This stops team members from reading raw keys in the build view.

You should also rotate the API keys on a set schedule. Short key lifetimes limit the damage if a secret ever leaks. Keep test databases separate from live user tables whenever you can. When tests use safe sample data, builds run fast and stay secure.

Good alert rules help teams fix broken builds right away. Set the build server to ping the chat room when checks fail. Include the exact model name and line number in the alert. Builders can then fix the bad join and push a clean commit.

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

Linking them lets you test data code before it goes live. The build server catches broken SQL and bad joins during code review.

What permissions should the build agent role have?

Give the build role only the rights needed to run model checks. Do not give it admin rights or broad user management permissions.

How do we protect private data during automated report tests?

Run tests against masked tables that rewrite emails and phone numbers in results. You should also block build logs from printing raw query outputs.

The query runs. The emails stay hidden.