How to Integrate Budibase and Vitess Safely

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair budibase and vitess to build internal web apps on top of sharded MySQL clusters. Budibase provides the front-end interface, while Vitess routes queries across backend database shards. This setup lets staff view and edit live customer data through custom forms. Yet linking an app builder straight to a sharded database creates real security risks. A single shared login can expose every shard to bad queries or data leaks. How budibase and vitess exchange data and permissions Vitess s

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 budibase and vitess to build internal web apps on top of sharded MySQL clusters. Budibase provides the front-end interface, while Vitess routes queries across backend database shards.

This setup lets staff view and edit live customer data through custom forms. Yet linking an app builder straight to a sharded database creates real security risks. A single shared login can expose every shard to bad queries or data leaks.

How budibase and vitess exchange data and permissions

Vitess speaks the standard MySQL network protocol through its query routing component. Budibase uses its built-in MySQL connector to talk to that Vitess endpoint. To the app builder, the sharded cluster looks like one standard relational database.

When a user clicks a button in a Budibase app, the server runs a query. It sends that SQL statement over the network to the Vitess router. Vitess parses the SQL, finds the right shard, and fetches the rows.

Permissions depend on the database user credentials stored inside the Budibase data source settings. Most teams enter a single static username and password during the initial setup. Every app user then shares that same database identity when running queries.

Shared service accounts cause the biggest problems in this setup. If ten support tools use one admin login, database logs show one user. You cannot tell which staff member changed a row or ran a heavy read.

Overbroad roles create a second major risk for engineering teams. App builders often ask for full read and write permissions across the whole keyspace. A bug in a form query could wipe out records across multiple shards.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unbounded queries also hurt cluster health in production. Budibase lets makers build custom tables and filters with ease. A query that lacks a shard key filter forces Vitess to scan every shard. That scatter query can slow down the database for core customer traffic.

Scoping roles and network paths between both systems

Start by creating a dedicated database role for each Budibase app you run. Grant each role read or write permissions on only the specific tables it needs. Never attach root or cluster-wide admin accounts to an internal tool builder.

Separate your read and write workloads at the database user level. If a dashboard only displays metrics, give its data source a read-only database user. Reserve write permissions for specific apps that handle approved support actions.

Lock down the network path between the app server and the Vitess router. Place both systems inside a private network and block all public traffic. Use strict firewall rules so only the Budibase host IP can reach the database port.

Require encrypted transport for all traffic moving between the app server and the cluster. You should also protect sensitive columns before they reach the browser screen. For example, masking rewrites matched fields like emails, phone numbers, card numbers, or national IDs in results.

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

How does Budibase talk to a Vitess cluster?

Budibase connects to Vitess by using its standard MySQL data source connector. You point the connector at the Vitess query router host and port.

How can we prevent internal apps from overloading Vitess shards?

Make sure every query in your app includes the right shard key in its filter. You can also set query timeouts and row limits inside your Vitess cluster rules.

Should different Budibase apps share one Vitess database user?

No, each app should use its own scoped database user with minimal table permissions. Separate users help you track query source and limit damage if a key leaks.

The query runs. The emails stay hidden.