The Simplest Way to Make Metabase and S3 Work Like They Should
You pair Metabase and S3 in production by putting a SQL query engine between them. Metabase cannot read raw object files on its own, so an engine like Athena or Trino bridges the gap. This setup lets teams build charts on top of cheap cloud storage. Analysts run SQL queries in their browser without moving files into a traditional database first. Your data stays in one place while business users get fast answers. How data flows between Metabase and S3 The workflow relies on three parts workin
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.
You pair Metabase and S3 in production by putting a SQL query engine between them. Metabase cannot read raw object files on its own, so an engine like Athena or Trino bridges the gap.
This setup lets teams build charts on top of cheap cloud storage. Analysts run SQL queries in their browser without moving files into a traditional database first. Your data stays in one place while business users get fast answers.
How data flows between Metabase and S3
The workflow relies on three parts working in order. First, your data pipeline writes structured files like Parquet or CSV into cloud buckets. Next, a catalog service maps those files into virtual tables with clear columns and types.
Metabase then talks to the SQL query engine using a standard driver. When a user opens a dashboard, the app sends a SQL query to that engine. The engine reads the needed files from the bucket and sends back the final numbers.
To make this work, each service needs the right permissions. The query engine uses an IAM role that allows it to list and read specific bucket paths. Metabase uses its own database login or role to send queries to the engine.
Network rules also play a big part in this data flow. Good setups keep traffic inside a private virtual network using internal endpoints. This stops raw files from moving across the public internet during a query run.
Common failure modes and how to fix them
Many teams start by using one shared admin key for the whole analytics app. This single login often has read access to every bucket in the cloud account. If one dashboard query goes wrong, it can read private files by mistake.
Shared accounts also ruin your audit logs. When fifty analysts use the same database user, every query looks the same in your cloud logs. Security teams cannot tell who ran an expensive scan or who pulled sensitive customer tables.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Broad bucket permissions create another huge risk for engineering teams. Raw storage often holds customer emails, phone numbers, card numbers, or national IDs. Giving the chart app full read rights exposes all of those fields to every analyst.
You can fix these issues by splitting roles and tightening your network paths. Create separate IAM roles for different teams, such as finance and marketing. Point each role only to the exact bucket folders that team needs to read.
You should also limit how much data a single query can scan at one time. Put partition rules on your virtual tables so users must filter by date. This stops a simple chart load from scanning years of historical files and driving up costs.
Why data masking and query logs matter
Scoping cloud roles is a good first step, but table columns still hold sensitive text. If a table has user emails or phone numbers, a basic role still returns them. You need a way to rewrite matched fields in results before they reach the screen.
Audit trails are just as important for keeping your setup safe. You need to tie every SQL query back to a real person on your team. Clear logs help you spot slow queries, fix broken charts, and pass security reviews fast.
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
Can Metabase read S3 files without another tool?
No, the app needs a SQL engine to read object storage files. You must use a service like Athena, Trino, or DuckDB to translate SQL into file reads.
What file formats work best for this setup?
Columnar formats like Parquet and ORC work best for analytics queries. They compress data well and let the query engine read only the columns a chart needs.
How do we stop users from scanning too much data?
Partition your bucket folders by date or region and require filters in your queries. You can also set scan limits in your query engine to cancel huge jobs.
Related guides
In this post