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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use metabase and zscaler together to run safe business reports over private networks. Zscaler routes user traffic to the reporting app, while Metabase runs queries on databases. This setup lets analysts build charts from home without opening public database ports. Your security team keeps private servers hidden from the open internet at all times. At the same time, business users get fast answers from live company data. How metabase and zscaler handle logins and data flow The workflow

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 metabase and zscaler together to run safe business reports over private networks. Zscaler routes user traffic to the reporting app, while Metabase runs queries on databases.

This setup lets analysts build charts from home without opening public database ports. Your security team keeps private servers hidden from the open internet at all times. At the same time, business users get fast answers from live company data.

How metabase and zscaler handle logins and data flow

The workflow starts when an analyst opens a web browser to view a chart. Zscaler checks the user identity and device posture through your single sign-on tool. If the check passes, Zscaler opens a private tunnel to the internal Metabase server.

Next, the user logs into the reporting app using their work email and password. Group rules from your identity provider map the user to a specific reporting group. This step controls which folders, dashboards, and tables the analyst can see inside the app.

When the user clicks a dashboard, Metabase builds a SQL query for the database. The reporting server sends this query over the internal network to your data store. The database runs the query and sends the rows back to the reporting app. Finally, the app draws the chart and sends it through the Zscaler tunnel.

Common failure modes with shared accounts and broad network paths

Many teams hit a huge blind spot between the network tool and the database. Zscaler knows who opened the web app, and it logs that network session. Still, Metabase often talks to the database using one shared service account for everyone.

Because of this shared key, the database log only shows one generic user name. When a bad query slows down the server, engineers cannot see who ran it. Audits fail because you cannot tie a specific SQL read to a real person.

Broad permissions make this problem much worse for security and data teams. If the shared database role has write permissions, any chart builder might change data. Also, raw tables often hold private data like emails, phone numbers, and card numbers. Without field controls, a basic chart query returns those raw values to the screen.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Another risk comes from wide network rules inside the private tunnel setup. Some teams put the reporting server and the database in the same open subnet. If an attacker compromises the web app, they can reach the database port directly.

How to scope roles and network paths between both systems

To fix network exposure, split your reporting app and databases into separate network zones. Set up Zscaler rules so end users only reach the Metabase web port. Block user laptops from talking to the database ports on the private network.

Next, replace the single shared database login with smaller, scoped database roles. Create one read-only database role for finance and another role for support teams. Give each role permission to read only the tables that specific team needs.

You should also protect private fields before analysts run ad-hoc queries in the app. Data masking rewrites matched fields in results, such as national IDs or card numbers. This keeps sensitive records safe while letting analysts count rows and group trends.

Finally, make sure your team logs every query alongside the real user identity. Review your identity group mappings every month to remove old accounts and unused permissions. Short session timeouts in both tools also reduce the risk of stolen browser cookies.

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 Zscaler see the SQL queries that Metabase sends to the database?

No, Zscaler only sees the web traffic between the user browser and the app. The SQL traffic goes from the reporting server to the database on your internal network.

How can we stop Metabase from changing data in our production database?

Create a strict read-only role inside your database for all reporting app traffic. Revoke all write, update, and delete permissions from that role before running any charts.

What happens to sensitive fields like emails or phone numbers in reports?

If the database role can read raw tables, those fields appear in the charts. You must restrict column permissions or apply masking that rewrites matched fields in results.

The query runs. The emails stay hidden.