The Simplest Way to Make IntelliJ IDEA and Metabase Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair intellij idea and metabase to write code and build reports on the same databases. Developers test queries in the code editor while analysts share charts in the reporting app. Both tools talk to your data stores over the network. Without clear rules, shared keys and broad roles create big security risks. A good setup keeps developer queries and dashboard reads separate and safe. How intellij idea and metabase share data and roles Developers use the database panel inside their code

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 intellij idea and metabase to write code and build reports on the same databases. Developers test queries in the code editor while analysts share charts in the reporting app.

Both tools talk to your data stores over the network. Without clear rules, shared keys and broad roles create big security risks. A good setup keeps developer queries and dashboard reads separate and safe.

How intellij idea and metabase share data and roles

Developers use the database panel inside their code editor to inspect schemas and test queries. They log in with a database user and run read or write commands during code changes. At the same time, the reporting app connects to that same database to build charts.

In a standard setup, each tool needs its own database role and login key. The reporting app should use a read-only role scoped to clean analytics tables. Developers in the code editor need separate roles based on their current task.

Data flows from the database to both tools at the same time. When an engineer changes a table schema in the editor, dashboards can break. Teams keep these tools in sync by testing reporting queries before they push schema updates.

Common failure modes with shared database keys

Many teams take a shortcut and share one admin database login across both tools. An engineer copies the login details from the reporting app into their local code editor. Now every query from both tools looks identical in the database log.

When a bad query locks a table, you cannot tell who ran it. It might be a heavy dashboard refresh or an engineer running a manual script. Shared accounts destroy audit trails and make incident checks slow and painful.

Broad permissions make this problem much worse. If the reporting tool has write permissions, a SQL question can delete production rows. If every developer has full admin rights in their editor, one mistake drops a table.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Static passwords stored on laptops also create a high risk of leaks. Laptops store database passwords in local files that attackers can read. When someone leaves the team, rotating that shared password breaks the reporting app too.

Scoping roles and network paths for both tools

Start by creating two distinct database roles with strict limits. Give the reporting app a read-only role that only sees reporting views. Block it from reading raw tables that hold secret keys or internal system state.

Next, stop giving developers shared database passwords for their local code editors. Require each person to log in with their own identity and role. Map their group in your identity provider to a specific database permission set.

Lock down the network paths to the database as well. The reporting app runs on a known server, so restrict its login to that network path. Developer laptops move around, so require them to pass strict identity checks before querying.

You also need a plan for sensitive fields in query results. Both tools can pull emails, phone numbers, card numbers, and national IDs onto screens. Data masking rewrites matched fields in results so raw values do not land on laptops.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Should IntelliJ IDEA and Metabase share the same database user?

No, never share a single database user between these two tools. Give the reporting app a dedicated read-only user and give each developer an individual login.

How do we stop local editor queries from slowing down dashboards?

Point the reporting app at a read replica database instead of the primary node. You can also set query timeout limits on the roles used by both tools.

How do we protect sensitive columns in both tools?

Scope the reporting role to views that leave out sensitive columns. Apply dynamic data masking to rewrite emails, phone numbers, and card numbers in query results.

The query runs. The emails stay hidden.