All posts

How to configure BigQuery TeamCity for secure, repeatable access

The bottleneck is never the code. It is the waiting. Waiting for test jobs, for credentials, for the one person with BigQuery access to approve a query. That lag burns days. A clean BigQuery TeamCity setup kills that delay by wiring your CI pipeline straight into your data platform, without turning your credentials into a shared secret mess. BigQuery is Google Cloud’s serverless data warehouse that thrives on SQL at scale. TeamCity is JetBrains’ automation brain, orchestrating builds, tests, an

Free White Paper

VNC Secure Access + Customer Support Access to Production: The Complete Guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free. No spam. Unsubscribe anytime.

The bottleneck is never the code. It is the waiting. Waiting for test jobs, for credentials, for the one person with BigQuery access to approve a query. That lag burns days. A clean BigQuery TeamCity setup kills that delay by wiring your CI pipeline straight into your data platform, without turning your credentials into a shared secret mess.

BigQuery is Google Cloud’s serverless data warehouse that thrives on SQL at scale. TeamCity is JetBrains’ automation brain, orchestrating builds, tests, and deployments. Combine them right, and you get pipelines that can validate data models, run ETL tests, or publish analytics artifacts automatically. Combine them poorly, and you end up debugging permission scopes at midnight.

A proper integration uses identity, not tokens. TeamCity agents authenticate through a service account that has fine-grained roles in BigQuery. No human passwords, no long-lived keys. The goal is that every job can query, verify, and publish data traces through least privilege. Store the service account JSON in a secret manager. Inject it at build time via environment variables or Kubernetes secrets. Map it to BigQuery roles like roles/bigquery.dataViewer or roles/bigquery.jobUser depending on the job’s scope.

Each TeamCity build configuration can then run SQL validation tests, trigger Airflow DAGs, or push data lineage metadata back into BigQuery. If something fails, your CI logs show dataset-level audit trails, making it clear whether the problem was data freshness or permission drift.

Quick answer: To connect BigQuery and TeamCity, create a service account with BigQuery roles, store its key securely, configure TeamCity’s build agent to use that key for gcloud or bq commands, and rotate keys automatically through your secrets manager.

Continue reading? Get the full guide.

VNC Secure Access + Customer Support Access to Production: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

Best practices

  • Use short-lived credentials instead of static JSON files
  • Apply role-based access control for each pipeline stage
  • Log all queries through Cloud Audit Logs for traceability
  • Rotate secrets on deploy or by schedule, not by panic
  • Validate schema changes with test queries before merging

When things scale, these controls keep your data jobs reproducible. You stop hearing “works on my machine” because every build runs against the same identity, policy, and dataset state.

Platforms like hoop.dev turn those access rules into guardrails that enforce policy automatically. Instead of passing keys around, TeamCity connects through hoop.dev’s identity-aware proxy, which enforces the same access models you use for production. It is how teams achieve fast approval loops without giving away the keys to BigQuery.

Add a dose of AI and the workflow sharpens even more. When copilots or automated agents propose schema changes, their queries still flow through the same controlled policy context. That prevents runaway prompts from leaking PII or hammering datasets. Compliance meets automation without slowing the human in the loop.

For developers, the effect is obvious. CI runs faster. Fewer manual steps. New engineers onboard in hours instead of chasing credentials for days. You keep shipping data-aware apps that can stand an audit with zero extra effort.

BigQuery TeamCity integration is not hard, but doing it right separates the scripts from the infrastructure. The secret is identity, not tokens.

See an Environment Agnostic Identity-Aware Proxy in action with hoop.dev. Deploy it, connect your identity provider, and watch it protect your endpoints everywhere—live in minutes.

Get started

See hoop.dev in action

One gateway for every database, container, and AI agent. Deploy in minutes.

Get a demoMore posts