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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair fortigate and redash to query private data behind a strict firewall. This setup lets staff build charts from internal stores without opening wide network paths. In a live setup, the firewall guards the private network perimeter. The chart app sits inside a safe zone or reaches across an encrypted tunnel. Analysts write queries in their browsers and view shared dashboards. The firewall checks every packet before it reaches the database host. How fortigate and redash move traffic and

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 fortigate and redash to query private data behind a strict firewall. This setup lets staff build charts from internal stores without opening wide network paths.

In a live setup, the firewall guards the private network perimeter. The chart app sits inside a safe zone or reaches across an encrypted tunnel. Analysts write queries in their browsers and view shared dashboards. The firewall checks every packet before it reaches the database host.

How fortigate and redash move traffic and check identity

Data flow between fortigate and redash starts when a user runs a report. The web app reads the request and opens a path to the data store. That traffic hits the firewall first. The firewall checks the source address, the target port, and the transport rule.

If the packet matches an allowed rule, the firewall passes it through. Then the database checks the login key sent by the chart app. Users log in to the chart app with their normal work accounts. Still, the app talks to the database using a stored service key.

Once the database accepts the key, it runs the query and sends rows back. The firewall tracks the open session and lets the return data flow back. The app then draws the chart for the user. This setup separates network checks from app logins.

Common failure modes and how to fix them

Many teams hit snags when they link these two tools. The first big risk is a shared database login. Most teams give the chart app one strong database account. Every analyst who uses that data source shares that same high power.

If one person writes a bad query, the database cannot tell who did it. The database log only shows the shared app user name. A second issue is broad firewall rules. Teams often open an entire subnet just to make the chart app work.

Wide network rules let any host in that zone reach the data store. A third issue is raw data exposure. Queries often pull sensitive columns like emails, phone numbers, or card numbers. Without field controls, every viewer sees those raw records on the screen.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these gaps with tight network and role scoping. First, lock down the firewall rule to the exact IP of the chart server. Only allow the exact database port needed for the link. Drop all other traffic between the app zone and the data zone.

Next, replace the single master database account with small, read-only roles. Create one database user for finance reports and another for product metrics. Grant each role read rights only to the tables it needs. Never give the chart app write or drop rights on live tables.

Auditing queries and protecting sensitive fields

Network logs and app logs live in different places. The firewall records packet counts, source IPs, and port numbers. It does not read the text of the SQL query inside encrypted traffic. Meanwhile, the database log only sees the shared service account name.

To trace actions, teams must link app user logs with database query logs. Have your central log tool collect events from both the firewall and the app. Match the time stamps so you can see who ran which query.

You should also protect private fields before results reach the browser. Masking rules can rewrite emails, card numbers, and national IDs in query results. This step keeps sensitive strings off shared dashboards while keeping charts useful.

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 queries time out through the firewall?

Long queries often hit the idle session limit on the firewall. When a database takes minutes to think, no packets cross the wire. The firewall drops the silent link, so you must raise the timeout rule for that port.

How should we scope database roles for the chart app?

Create a read-only database role for each team in your company. Point each data source in the chart app to one specific role. This step keeps marketing staff from querying finance tables.

Can the firewall log the exact SQL query a user runs?

No, the firewall mainly checks IP addresses, ports, and packet rules. When database traffic uses encryption, the firewall cannot read the SQL text inside. You must use database logs or a query layer to record the text.

The query runs. The emails stay hidden.