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

Published
Length
3 min read

Luis Felipe Dias

All posts

Running metabase and openebs together gives teams fast charts over local Kubernetes storage. OpenEBS manages persistent volumes for databases, while Metabase runs queries to build dashboards. This setup keeps analytics data close to your compute nodes. Teams can query databases backed by container storage without moving data to outside clouds. Still, local storage and reporting tools need strict security rules. You must lock down both the volume claims and the database user roles. How data an

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 metabase and openebs together gives teams fast charts over local Kubernetes storage. OpenEBS manages persistent volumes for databases, while Metabase runs queries to build dashboards.

This setup keeps analytics data close to your compute nodes. Teams can query databases backed by container storage without moving data to outside clouds. Still, local storage and reporting tools need strict security rules. You must lock down both the volume claims and the database user roles.

How data and roles flow between metabase and openebs

OpenEBS turns local disks on Kubernetes nodes into persistent volumes for your cluster. Your database claims these volumes to store tables, indexes, and transaction logs on disk. Metabase sits in another pod and sends SQL queries to that database over the network.

Notice that Metabase does not talk to the OpenEBS storage engine directly. Instead, Kubernetes mounts the OpenEBS volume into the database pod at startup. The database reads blocks from the volume and sends query results back to Metabase. Metabase also needs its own database to save user charts, dashboards, and app settings. Many teams store that Metabase app database on a separate OpenEBS volume as well.

Identity and permissions work at two different levels in this stack. At the cluster level, Kubernetes role rules control which pods can mount OpenEBS volumes. At the database level, SQL roles control which tables the Metabase app can read. Both layers must match your security goals to keep private data safe.

Common failure modes and how to scope access

A common mistake is giving Metabase a shared admin key for the database. If the reporting pod uses a root user, any chart builder can change data. Worse, a bad query can drop tables stored on the OpenEBS volume. Shared service accounts also ruin your audit logs. When ten analysts use Metabase, the database log only shows one generic app user.

Broad network paths create another big risk inside the Kubernetes cluster. By default, any pod in a namespace can talk to the database port. Also, any pod with wide cluster rights might mount the underlying OpenEBS storage volume. If an attacker compromises a nearby pod, they can read raw disk files.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, start by scoping the database role down to read-only permissions. Create a dedicated SQL user for Metabase that can only select from reporting views. Never let the reporting user read system tables or write to production schemas. When queries pull sensitive fields, use data masking to rewrite emails and phone numbers. You should also mask card numbers and national IDs in the query results.

Next, lock down the Kubernetes storage and network rules between the two tools. Use Kubernetes network policies so only the Metabase pod can reach the database port. Block all other pods from talking to the database or the OpenEBS control plane. Set strict storage class rules so only the database service account can claim volumes. Finally, keep regular snapshots of your OpenEBS volumes in an outside bucket. If a bad deployment breaks a node, you can restore both your data and dashboards.

Managing stateful workloads for analytics

Analytics workloads put heavy read pressure on your cluster disks. When many users open dashboards at once, the database reads large tables from OpenEBS. If the Metabase app database shares the same disk, the whole UI can freeze.

Separate your storage classes by workload type to keep the app fast. Put the Metabase app database on a small, replicated volume for high uptime. Put your large analytics database on local volumes tuned for fast disk reads. Always set query timeouts in the database so one big chart cannot lock the disk. Track slow queries in your logs to spot missing indexes before users complain.

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

Should I store the Metabase internal database on an OpenEBS volume?

Yes, but use a replicated storage engine instead of a single local disk. Wait to use single-node volumes until you have automated daily backups in place. Never run Metabase in production with its built-in file database on temporary pod storage.

How do I stop Metabase users from reading raw PII on OpenEBS volumes?

Give Metabase a read-only database role limited to safe views or apply runtime masking. Masking rewrites matched fields like emails and card numbers in query results before rendering. Also restrict Kubernetes volume permissions so users cannot mount the raw disk directly.

What happens to Metabase queries when a Kubernetes node with OpenEBS restarts?

If your OpenEBS volume replicates across nodes, the database pod moves and queries resume. If you use local host volumes without replicas, queries fail until the node returns. Set short connection timeouts in Metabase so it reconnects once the database is ready.

The query runs. The emails stay hidden.