The Simplest Way to Make Cloud Storage and Metabase Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You pair cloud storage and metabase through a SQL query engine that reads bucket files. This setup lets teams run business charts straight on raw object files. Metabase does not read raw object buckets on its own. It needs a middle query engine to turn flat files into SQL tables. Teams store parquet or CSV files in buckets to keep storage costs low. Then the query engine reads those files when a user loads a dashboard. How data and roles flow in cloud storage and metabase The data flow start

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 cloud storage and metabase through a SQL query engine that reads bucket files. This setup lets teams run business charts straight on raw object files.

Metabase does not read raw object buckets on its own. It needs a middle query engine to turn flat files into SQL tables. Teams store parquet or CSV files in buckets to keep storage costs low. Then the query engine reads those files when a user loads a dashboard.

How data and roles flow in cloud storage and metabase

The data flow starts when a user opens a chart in the analytics app. Metabase sends a SQL query to your analytics engine over a network port. That engine checks its cloud role to see if it can read the bucket. If the role allows it, the engine pulls the file blocks it needs.

The engine computes the answer and sends rows back to the chart tool. You must set up two sets of rules for this path to work. First, the query engine needs a read role on the storage bucket. Second, the chart tool needs a database user to log in to the engine.

Many teams put all their raw logs and app tables into one bucket. When you link that whole bucket to your chart tool, risks grow fast. Every chart viewer might now run queries across files they should not touch.

Common failure modes with shared keys and broad access

The biggest mistake is giving the chart tool one static admin key. Teams often do this so they do not have to fix broken charts. When every user shares one database key, your audit logs lose their value. You can see that a query ran, but not who ran it.

Broad bucket roles create a second major risk for data teams. If the query engine can read every folder, any SQL user can too. A user in the SQL editor can query sensitive folders by guessing paths. Those raw files often hold emails, phone numbers, card numbers, or national IDs.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Static keys stored in the chart app settings also create a leak risk. If someone exports the app database, they can steal those long-lived storage keys. You should scope the bucket role to only the folders meant for charts. Set the engine role to read-only so no query can delete bucket files.

How to scope network paths and protect sensitive fields

Start by splitting your storage buckets by data risk and team need. Put clean report tables in one bucket and raw files in another. Give the query engine permission to read only the clean report bucket. This stops SQL users from browsing raw system dumps or private files.

Lock down the network path between the chart app and the query engine. Put both tools in a private network and block public traffic to them. Use short-lived roles on the cloud host instead of pasted secret keys. Rotate the database password used by the chart tool on a set schedule.

You also need a plan for private fields inside your report tables. Data masking rewrites matched fields in results for emails and phone numbers. It can also rewrite card numbers and national IDs before charts render. This lets analysts build group totals without exposing raw private text on screens.

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

Can Metabase read CSV or Parquet files straight from an object bucket?

No, the app needs a SQL engine to sit in front of your buckets. The SQL engine reads the files and gives the app a normal database port.

How do we stop analysts from querying private folders in our bucket?

Give the query engine an IAM role that only lists approved report prefixes. Never attach a full bucket read policy to the role used for charts.

What happens if a shared database key in the chart app leaks?

Anyone with that key can run queries from outside your chart app if the port is open. Keep the engine on a private network and rotate keys often.

The query runs. The emails stay hidden.