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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair metabase and redshift to turn warehouse data into clear charts and dashboards. The business app sends queries to the cluster and shows results in seconds. This setup lets people explore big tables without writing raw SQL by hand. You get self-serve analytics while the warehouse does the heavy math. How metabase and redshift share data and roles The chart app talks to the warehouse over a standard Postgres driver link. You give the app a host name, port, database name, and user log

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 metabase and redshift to turn warehouse data into clear charts and dashboards. The business app sends queries to the cluster and shows results in seconds.

This setup lets people explore big tables without writing raw SQL by hand. You get self-serve analytics while the warehouse does the heavy math.

How metabase and redshift share data and roles

The chart app talks to the warehouse over a standard Postgres driver link. You give the app a host name, port, database name, and user login.

Once linked, the app reads table names and column types on a set schedule. It builds a map of your schemas so users can pick fields in menus.

When a user opens a dashboard, the app turns those visual picks into SQL. It sends that SQL to the cluster and waits for the rows to return.

The warehouse runs the job across its compute nodes and sends back the answer. The app then draws the chart or table inside the user browser.

Good setups use a dedicated read-only user role inside the warehouse for this link. That role should only read the clean reporting schemas that analysts need.

Common risks with shared logins and broad network rules

Many teams start by giving the dashboard app an admin login to save time. That choice creates a big risk because any dashboard user inherits those broad rights.

If someone has access to the SQL editor, they can read every single table. They might query raw staging tables that hold emails, phone numbers, or card numbers.

Shared service logins also make audit logs much harder to read during a check. Every query in the warehouse log shows the exact same app user name.

Redshift Security + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You cannot tell which person on the team ran a slow or sensitive query. Security teams lose track of who looked at regulated records during an audit.

Network rules can also cause trouble when the app lives in a cloud service. Teams often open the warehouse firewall to wide IP ranges so links work.

To fix this, place both systems inside the same private network when you can. Use tight security group rules that only allow traffic from the exact app host.

Split your warehouse permissions into small groups based on what each team needs. Create separate database connections in the app for finance, marketing, and product teams.

Keeping queries fast and protecting sensitive columns

Dashboards can slow down your cluster if dozens of users refresh heavy charts together. Set query timeouts and workload queues in the warehouse for the reporting user role.

This rule keeps a huge ad-hoc chart from blocking your core data load jobs. You can also schedule schema syncs to run during quiet hours at night.

Data teams should also keep raw personal fields out of the main reporting schemas. If a table holds national IDs or card numbers, mask those fields in results.

Dynamic masking rewrites matched fields in results before they reach the chart screen. Analysts can still count rows and spot trends without exposing private customer details.

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

Why do my dashboard queries run slow on the cluster?

The chart app often joins large tables without using your sort or distribution keys. Build summary tables in the warehouse so dashboards read fewer rows on each load.

How do we stop users from reading raw staging tables?

Revoke read rights on staging schemas from the database role that the app uses. Only grant read access to clean presentation schemas meant for business reporting.

Can we track which person ran a specific chart query?

The warehouse sees one shared login, so check the app activity logs for user details. You can also match query comments in the database log back to app users.

The query runs. The emails stay hidden.