The Simplest Way to Make BigQuery and Cohesity Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair bigquery and cohesity to protect cloud data tables and run analytics on backup metadata. This setup copies tables to safe storage or sends backup logs into cloud tables for fast queries. Data teams need clear rules for how these two tools talk to each other. Without clear rules, backup jobs fail or leave wide open keys in your cloud project. A good setup keeps keys safe, limits role scope, and tracks every read or write job. How bigquery and cohesity share data and roles To link b

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 bigquery and cohesity to protect cloud data tables and run analytics on backup metadata. This setup copies tables to safe storage or sends backup logs into cloud tables for fast queries.

Data teams need clear rules for how these two tools talk to each other. Without clear rules, backup jobs fail or leave wide open keys in your cloud project. A good setup keeps keys safe, limits role scope, and tracks every read or write job.

How bigquery and cohesity share data and roles

To link bigquery and cohesity, you first set up a cloud service account. This account acts as the bridge between your data warehouse and your backup platform. You grant this account a narrow role so it only touches the right datasets.

Data moves in two main ways between these two tools. In the first flow, the backup tool reads tables and exports snapshots to cloud storage buckets. This protects your analytics tables from human error or bad scripts that drop data. If a table breaks, your team can restore the exact rows from a clean backup point.

In the second flow, the backup platform sends its own job logs into cloud tables. Your ops team can then run queries to check backup health across all systems. They can spot slow jobs, check storage growth, and prove that daily backups ran on time.

Both flows rely on cloud identity rules and dataset permissions to work well. Instead of static keys that live forever, modern teams use workload identity federation where possible. This lets the backup cluster request short tokens when a scheduled job starts to run.

Common failure modes and how to fix role scope

The biggest mistake teams make is using one shared admin account for all backup jobs. When a service account has project owner rights, a single leaked key exposes every table. Attackers or bad scripts can read sensitive rows or delete whole datasets in seconds.

Another common issue is unlogged queries from human users who fix broken backup pipelines. When an engineer logs in with a shared service key, the audit log hides their real name. You see the service account name in the log, not the person who ran the query.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, split machine roles from human roles right away. Give the backup tool a dedicated role that only reads target datasets and writes to staging buckets. Never let engineers use that same machine key to test queries from their laptops.

Network paths also need tight rules so data stays on private cloud routes. Set up private service paths so table exports do not cross the public internet. Check your cloud vpc controls to make sure data cannot move to outside projects.

Protecting sensitive columns during backup and test workflows

Analytics tables often hold private data like emails, phone numbers, card numbers, and national IDs. When teams restore a backup to a test project, developers run queries on that restored table. If you do not guard those columns, test runs will return real customer details.

Set up column policies and data masking rules on your cloud datasets before running test queries. Data masking rewrites matched fields in results when a user lacks full read rights. This lets engineers test their dashboards and pipelines while keeping sensitive strings safe from view.

Review your audit logs each week to see which roles read your protected tables. Look for huge table scans or exports that happen outside normal backup windows. Fast alerts on weird read patterns help you stop data leaks before they grow.

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

How do we avoid static JSON keys between these two platforms?

Use workload identity federation in your cloud project to trade identity tokens for short access tokens. If your setup requires a key file, rotate that key on a strict monthly schedule.

What roles does the backup service account actually need?

Give the account a custom role that only reads target datasets and writes to staging buckets. Avoid giving project editor or bigquery admin roles to a backup job.

How can engineers check restored tables without exposing private fields?

Apply data masking rules that rewrite emails, phone numbers, and card numbers in query results. Also require each engineer to log in with their own identity instead of a shared key.

The query runs. The emails stay hidden.