How to Integrate Sigma and BigQuery Safely

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair sigma and bigquery to run live cloud spreadsheets on warehouse tables. This setup lets analysts explore petabytes of data without moving files to laptops. Sigma translates spreadsheet clicks into standard SQL queries in real time. BigQuery runs those queries and sends back only the summary rows. This workflow keeps raw tables inside Google Cloud at all times. Still, bad key setups and wide roles can expose private records fast. How sigma and bigquery share identities and data To

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 sigma and bigquery to run live cloud spreadsheets on warehouse tables. This setup lets analysts explore petabytes of data without moving files to laptops.

Sigma translates spreadsheet clicks into standard SQL queries in real time. BigQuery runs those queries and sends back only the summary rows.

This workflow keeps raw tables inside Google Cloud at all times. Still, bad key setups and wide roles can expose private records fast.

How sigma and bigquery share identities and data

To link sigma and bigquery, you must set up a trust path. Teams use either a Google Cloud service account or user login tokens.

With a service account, every chart uses one shared cloud identity. With user login tokens, each analyst runs queries under their own identity.

When a user opens a workbook, the app builds a query. It sends that query over encrypted web traffic to the Google Cloud API.

The warehouse checks if the active role can read the target dataset. It also checks if the role has permission to run compute jobs.

If the checks pass, the engine scans the needed columns right away. Then it returns the result set back to the browser grid.

Some teams also turn on write access for user input tables. That mode needs a separate scratch dataset so users cannot alter production tables.

Common failure modes and how to scope roles

The biggest risk in this setup is an overprivileged service account key. Many teams give one shared key full admin rights across the project.

If that static JSON key leaks, attackers can read every single dataset. They can also spin up huge query jobs that drive up cloud bills.

Shared accounts also ruin your audit logs inside Google Cloud. Every query looks like it came from the same generic bot user.

BigQuery IAM + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

When a slow query spikes costs, you cannot tell who ran it. When someone exports emails or phone numbers, you cannot trace the viewer.

To fix this, scope your roles down to the dataset level. Grant read rights only on the specific views that business users need.

Keep raw landing tables in a separate project with strict rules. Put clean, joined tables in a reporting project for the analytics tool.

Use individual OAuth logins whenever your license and setup allow it. Personal logins tie every single query job to a real person.

Set query cost limits in Google Cloud to stop runaway spreadsheet joins. A daily byte cap prevents one bad filter from burning your budget.

Protecting sensitive columns and network paths

Even scoped datasets often hold sensitive columns like card numbers or national IDs. Analysts need to count rows without seeing those raw strings on screen.

You can apply policy tags to specific columns inside the cloud warehouse. Policy tags let you set up dynamic masking rules for different groups.

When a general analyst runs a report, masking rewrites matched fields in results. The grid shows redacted text for emails while sums and counts still work.

You should also lock down the network path between the two tools. Use cloud firewall rules and VPC service controls to restrict traffic sources.

Allow incoming traffic only from the known IP ranges of the analytics service. Block direct public exports so data stays inside your approved cloud perimeter.

Rotate any stored service keys on a tight schedule if you use them. Better yet, move to short-lived tokens so static files never sit on disk.

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 we use a service account or OAuth for Sigma and BigQuery?

Use OAuth when you want per-user audit logs and row-level security rules. Use a scoped service account only for scheduled background exports or public dashboards.

Does Sigma store a copy of our BigQuery tables?

No, the tool sends live SQL queries directly to your cloud warehouse. It caches small result sets for speed, while raw tables stay in Google Cloud.

How do we stop users from running expensive queries from spreadsheets?

Set custom per-user and per-project byte limits inside your Google Cloud settings. You can also query partitioned views so filters scan less data per click.

The query runs. The emails stay hidden.