How to Integrate Budibase and Trino Safely

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair budibase and trino to build internal apps on top of distributed data. Budibase provides the user interface while Trino runs fast SQL queries across data sources. This setup lets staff view and filter records from many systems in one screen. Still, direct links between app builders and query engines create security gaps. You must control who runs queries and what data comes back. How budibase and trino share data and permissions Budibase acts as the front end for your internal tools

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 trino to build internal apps on top of distributed data. Budibase provides the user interface while Trino runs fast SQL queries across data sources. This setup lets staff view and filter records from many systems in one screen. Still, direct links between app builders and query engines create security gaps. You must control who runs queries and what data comes back.

How budibase and trino share data and permissions

Budibase acts as the front end for your internal tools. It sends standard SQL requests over the network to the Trino coordinator node. The Trino coordinator parses each query and plans the work across worker nodes. Those workers pull rows from your underlying databases and object storage. Trino then merges the results and sends them back to the Budibase app.

To make this work, Budibase needs a way to log in to Trino. Admins set up a data source inside the Budibase workspace. They enter the Trino host address, port, catalog name, and user credentials. Every time a user loads a screen, Budibase runs the saved query. Trino checks the account rules before it reads any catalog or schema.

Data flows both ways when you allow write actions or custom inputs. A user types a search term into a Budibase form field. Budibase puts that value into a query and sends it to Trino. If the account has broad rights, a bad query can pull too much data. Clear rules between the two tools keep your catalogs safe.

Common risks with shared accounts and broad roles

Most teams use one shared service account to link Budibase to Trino. This means every app user runs queries under the exact same database identity. When ten people click buttons in Budibase, Trino sees only one user name. You lose track of who asked for specific customer rows in the logs. Audits fail when you cannot tie a query back to a real person.

Broad catalog permissions make this shared account problem much worse. Trino can reach many data stores at the exact same time. If the shared role can read all catalogs, any app builder can query them. A builder might pull production tables into a test app by mistake. You should create a tight role for each specific Budibase app instead.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Raw personal data in query results is another major risk for teams. Customer tables often hold emails, phone numbers, card numbers, and national IDs. When Budibase pulls a full table, those fields travel straight to the browser. Data masking fixes this by rewriting matched fields in results before they arrive. You also need strict network rules so only approved hosts reach the Trino coordinator.

Steps to scope network paths and query roles

Start by locking down the network path between the two systems. Place both tools inside a private network and block public traffic to Trino. Use firewall rules so only the Budibase host IP can reach the Trino port. Always turn on TLS encryption for all traffic between the app and coordinator. This stops attackers from reading credentials or data on the wire.

Next, replace broad admin keys with narrow, read-only database roles. Give the Budibase role permission to read only the exact schemas it needs. If an app only shows sales totals, block it from reading HR catalogs. Create separate Trino accounts for your staging and production Budibase spaces. Set query timeouts in Trino so a bad dashboard cannot lock up worker nodes.

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 is a shared Trino service account risky in Budibase?

A shared account hides which human user ran a specific query. All app actions show up under one generic name in your Trino logs. If someone exports sensitive rows, you cannot trace the action to an individual.

How can we limit what data Budibase pulls from Trino?

Assign a strict, read-only role to the account that Budibase uses. Limit that role to specific Trino catalogs, schemas, and views. You can also use data masking to rewrite emails or card numbers in results.

Should Budibase connect directly to Trino worker nodes?

No, Budibase should only send requests to the main Trino coordinator node. The coordinator handles logins, checks rules, and splits work across the worker nodes. Keep worker nodes on an internal network where external apps cannot reach them.

The query runs. The emails stay hidden.