The Simplest Way to Make Fortigate and Spanner Work Like They Should
Running fortigate and spanner together connects your network firewall rules with cloud database queries. This setup lets teams route traffic over private links before reading or writing data. Many teams struggle when network appliances and cloud databases use different trust models. A firewall checks IP addresses and ports, while the database checks cloud identity tokens. Bridging these two layers requires clear rules for both network routing and user roles. When done well, engineers reach the
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.
Running fortigate and spanner together connects your network firewall rules with cloud database queries. This setup lets teams route traffic over private links before reading or writing data.
Many teams struggle when network appliances and cloud databases use different trust models. A firewall checks IP addresses and ports, while the database checks cloud identity tokens. Bridging these two layers requires clear rules for both network routing and user roles. When done well, engineers reach the database fast and security teams keep full visibility.
How fortigate and spanner handle network flow and identity
Your firewall sits at the edge of your private network or cloud virtual network. It inspects packets and controls which internal subnets can reach external cloud service endpoints. When an app or engineer sends a query, traffic passes through the firewall first. The firewall checks the source address, destination address, and port against its rule table.
Once traffic clears the firewall, it reaches the cloud database API endpoint. The database does not care which firewall inspected the packet on the way there. Instead, the database checks the cloud identity token attached to the incoming request. That token maps to a specific cloud role that grants read or write rights.
To make both tools work well, teams link private network routing with identity checks. You can set up private cloud access so database traffic stays off public networks. The firewall routes traffic to a set of private IP ranges owned by Google. At the same time, cloud network boundaries restrict database requests to that exact network path.
Common failure modes and how to scope roles
A common mistake happens when teams rely on firewall rules alone for database safety. Once an engineer connects to the corporate VPN, the firewall allows the database port. To save time, teams often hand out a single shared service account key. Everyone on the network uses that same static key to run queries and updates.
Shared service accounts create huge blind spots in your security and audit logs. The firewall log shows a packet left an office IP address at noon. The database log shows the shared service account dropped a table at noon. Neither log tells you which human engineer ran that destructive command during the incident.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Broad permissions make this problem much worse during daily database work and incident response. A single shared role often holds full admin rights across every database instance. One bad query can wipe out production rows or expose sensitive customer records. Static keys also sit on laptops where malware can steal them and use them.
To fix this, stop using static service account keys for human database work. Assign each user or app a distinct cloud identity with narrow database roles. Break permissions down so read queries use a separate role from schema changes. On the firewall side, limit outbound database traffic to known subnets and private endpoints. Keep firewall rules tight so random hosts cannot reach the cloud API ranges.
Auditing queries and protecting sensitive data in transit
Even with scoped network routes and individual cloud roles, database logs miss key details. Cloud audit logs can grow massive and expensive when you turn on data read tracking. Many teams leave read logging off to control cloud bills and log storage costs. When a breach happens, you cannot prove which records a user read that week.
Sensitive fields inside tables also create risk during everyday debugging and support work. Engineers running a quick check might pull tables containing emails, phone numbers, or card numbers. The firewall encrypts the tunnel, and the cloud role allows the table read. Yet raw personal data still lands on the user screen without field controls.
Teams need a simple way to link identity, query logs, and field masking together. When you inspect traffic at the session level, you see every query in detail. Data masking rewrites matched fields like national IDs in results before they return.
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
Does a firewall replace cloud identity roles for database security?
No, a firewall only controls which network paths and IP addresses can send packets. You still need cloud identity roles to control who can read or write tables.
How should we route database traffic through our firewall?
Use private cloud access paths instead of routing traffic over the public internet. Set your firewall to allow outbound traffic only to those specific private IP ranges.
Why are shared service account keys risky behind a strict firewall?
Shared keys hide individual user identity in your database audit logs during incidents. If a key leaks, anyone on the allowed network path can run broad queries.
Related guides
In this post