The Simplest Way to Make Kong and Metabase Work Like They Should
Running kong and metabase together routes user traffic to your analytics dashboards safely. This setup manages user sign-ins at the edge while analysts run database queries. Teams use this pair to share business charts without exposing internal network ports. You can check every web request before it reaches your reporting app. That keeps your private data dashboards safe from outside threats. How kong and metabase handle sign-ins and data flow The edge router sits in front of the reporting
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 kong and metabase together routes user traffic to your analytics dashboards safely. This setup manages user sign-ins at the edge while analysts run database queries.
Teams use this pair to share business charts without exposing internal network ports. You can check every web request before it reaches your reporting app. That keeps your private data dashboards safe from outside threats.
How kong and metabase handle sign-ins and data flow
The edge router sits in front of the reporting server on your network. When an analyst opens a dashboard, the router checks their identity first. It works with your main identity provider to verify the user sign-in.
Once the user logs in, the router forwards the web request upstream. The analytics app reads the user headers and loads their specific group permissions. Then the reporting tool sends a query to your data warehouse.
Notice that the two tools handle two very different types of traffic. The first tool manages web requests from browsers and checks user tokens. The second tool opens direct database sessions to read tables and build charts.
When you link both layers, you create a clear path for user requests. Web logs show who opened the app and when they visited a page. Database logs show the SQL queries that ran to build the charts.
Common failure modes and how to scope roles
Many teams stop after they put the reporting app behind the web router. They assume edge login checks solve all their data security needs. Still, the reporting app still talks to the database with one shared account.
This shared database account often has broad read rights across every table. If an analyst gets SQL editor access, they can query sensitive tables. The database log only shows the shared app user, not the real person.
End-to-End Encryption + Kong Security Plugins: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Another common issue involves static passwords stored inside the analytics admin settings. Engineers type in a master database password once and leave it for months. If that password leaks, anyone on the network can read raw tables.
Broad network paths also create risk between your servers and data stores. Teams often open the whole private subnet so the reporting server works fast. That lets other apps on the same network reach the database port too.
To fix this, create dedicated database roles with strict read limits. Give the reporting tool access only to the specific views it needs. Never connect your reporting app with an admin or write-capable database user.
You should also mask sensitive columns before they reach the reporting layer. Dynamic masking rewrites matched fields like emails, phone numbers, and card numbers in results. Analysts still see row counts and trends, while private fields stay protected.
Finally, keep network rules tight between the web router, the app, and databases. Allow web traffic only from the router to the analytics server port. Allow database traffic only from the analytics server to the read replica.
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
Does Kong control which database tables a Metabase user can query?
No, the router only controls web requests to the reporting app interface. You must set table permissions inside the analytics app or the database layer.
How should we manage database accounts for Metabase dashboards?
Create a read-only database role scoped only to clean reporting views. Rotate the credentials often and block write commands on that account.
Can we track which analyst ran a slow query in Metabase?
Shared database accounts hide the individual user in standard database logs. You need query logging that ties each SQL statement back to user identity.
Related guides
In this post