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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use fortigate and metabase together to run safe business reports over private networks. Fortigate guards the network edge while Metabase turns raw database rows into clear charts. This setup lets analysts explore production data without opening databases to the public web. Security teams control traffic paths, and business users get fast answers to daily questions. How fortigate and metabase pass traffic and checks Fortigate acts as the network gatekeeper between users, apps, and priva

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 use fortigate and metabase together to run safe business reports over private networks. Fortigate guards the network edge while Metabase turns raw database rows into clear charts.

This setup lets analysts explore production data without opening databases to the public web. Security teams control traffic paths, and business users get fast answers to daily questions.

How fortigate and metabase pass traffic and checks

Fortigate acts as the network gatekeeper between users, apps, and private data stores. It checks IP addresses, ports, and firewall rules before any packet moves forward.

Metabase sits inside your private network or within a isolated cloud subnet. Analysts log in to the Metabase app to build dashboards and run queries.

When a user loads a chart, Metabase sends a query to the database. Fortigate inspects the network path between the analytics app and the data store.

If the firewall rule allows the port and source IP, traffic flows through. The database runs the query and sends the rows back to the app.

User login checks happen in two separate places in this standard setup. Users first pass network rules or VPN checks on the Fortigate appliance.

Next, users log in to Metabase using their single sign-on account. Still, the database itself only sees the single login key used by Metabase.

Common failure modes with shared accounts and wide rules

Many teams use one shared service account to link Metabase to their database. This means every analyst query runs under the exact same database user role.

When ten analysts run heavy queries, database logs show only one shared name. You cannot tell which specific person ran an expensive or risky query.

Firewall logs on Fortigate also miss the human identity behind the SQL command. The appliance sees network packets from the Metabase server IP, not the user.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Broad firewall rules create another big risk for your private data stores. Admins sometimes open full subnets so the reporting app can reach many databases.

If an attacker compromises the reporting app, they can reach every allowed database. Shared accounts with write rights make this breach much worse for your team.

A compromised app with write rights can alter or delete production tables fast. Static database passwords stored in the app settings also create long-term rotation headaches.

How to scope roles and network paths

Start by locking down the network path on your Fortigate firewall appliance. Create strict rules that only allow the exact Metabase host IP address.

Restrict the destination to the specific database IP and the exact database port. Drop all other traffic between the analytics subnet and your core production network.

Next, fix the database role used by the reporting app. Never give the reporting app admin rights or table write permissions.

Create a read-only database role that can only select from approved reporting views. Block access to raw tables that hold secret keys or internal system state.

When sensitive fields like emails or phone numbers exist, apply data masking rules. Masking rewrites matched fields in results such as card numbers or national IDs.

Set query timeouts on the database role so bad reports do not lock tables. Finally, review both network logs and query logs every week for odd patterns.

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

Why do database logs hide the individual Metabase user?

Metabase uses a pooled database login with one shared service account. The database records that shared account name instead of the logged-in analyst.

Should Fortigate allow Metabase to reach the public internet?

No, the reporting server only needs access to internal databases and login services. Block outbound internet traffic on the firewall unless you need specific external alerts.

How can we protect emails and card numbers in Metabase charts?

Use read-only database views or masking rules that rewrite emails and card numbers. This keeps sensitive strings out of query results while keeping chart counts accurate.

The query runs. The emails stay hidden.