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

Published
Length
3 min read

Luis Felipe Dias

All posts

You link bigquery and fortigate to analyze firewall logs at scale and protect cloud data. This setup lets security teams query network traffic while keeping strict perimeter rules in place. Teams often struggle when they try to bridge network appliances and cloud analytics. Firewalls focus on packets and IP addresses, while cloud warehouses care about user roles. When you align both tools, you get fast threat detection and tight data control. How data and roles flow between bigquery and forti

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.

You link bigquery and fortigate to analyze firewall logs at scale and protect cloud data. This setup lets security teams query network traffic while keeping strict perimeter rules in place.

Teams often struggle when they try to bridge network appliances and cloud analytics. Firewalls focus on packets and IP addresses, while cloud warehouses care about user roles. When you align both tools, you get fast threat detection and tight data control.

How data and roles flow between bigquery and fortigate

Two main workflows link your firewall appliances with your cloud data warehouse. In the first workflow, the firewall exports traffic logs and threat alerts to cloud storage. A cloud ingestion pipeline then loads those raw logs into tables for analysis. Security analysts run SQL queries on this data to spot bad traffic patterns.

In the second workflow, the firewall sits in front of internal engineers and apps. Engineers pass through the firewall to reach cloud endpoints and run analytics jobs. Here, the firewall checks the network path while Google Cloud checks the user identity.

To make this work, both systems must agree on who is running the query. The firewall tracks the source device and user session on the corporate network. Google Cloud IAM then checks if that user role can read the target dataset. When you pair network rules with identity rules, you stop unauthorized data exports.

Common failure modes with shared keys and broad rules

Many teams take shortcuts when they set up their log pipelines and query paths. The most common mistake is using one shared service account key for all users. Teams put this static key into scripts and shared analytics tools to save time. If that key leaks, anyone can read your sensitive warehouse tables from anywhere.

Another big risk comes from broad firewall rules that allow open outbound traffic. Because cloud APIs use wide IP ranges, network teams often open large outbound ports. This lets any person on the network reach cloud storage if they have a key. At the same time, shared database accounts hide who ran a specific SQL query. When an incident happens, your audit logs only show the shared service account name.

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, you must scope both your network paths and your cloud roles. Start by replacing static service account keys with short-lived identity tokens tied to real users. Give the log ingestion pipeline a write-only role so it cannot read warehouse data. Give analysts read-only roles scoped to the exact tables they need for their jobs.

Scoping network paths and protecting sensitive fields

On the network side, use private cloud routing instead of open internet paths. Set up your firewall to allow traffic only to restricted Google API address ranges. Combine this with VPC Service Controls to build a tight perimeter around your datasets. This stops anyone from copying table data to an outside cloud project.

Even with tight network rules, firewall logs and business tables hold sensitive user data. Analysts querying these tables might see personal emails, phone numbers, or card numbers. You should apply column-level rules and data masking to protect these fields during queries. Data masking rewrites matched fields like emails or national IDs in the query results. This lets your team hunt for network threats while keeping private records safe.

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

How do we send FortiGate logs into BigQuery?

You stream firewall logs to a cloud log collector or a message queue first. From there, a cloud data pipeline writes the events straight into your warehouse tables.

Why should we avoid static service account keys for analytics?

Static keys do not expire by default and often get copied across many machines. Using individual user logins gives you clear audit logs and cuts down leak risks.

Can we restrict BigQuery queries by network location?

Yes, you can route traffic through your firewall over a private link or VPN. You then pair that route with cloud context rules that check the source IP.

The query runs. The emails stay hidden.