How to Integrate Budibase and Spanner Safely

Published
Length
3 min read

Luis Felipe Dias

All posts

Integrating budibase and spanner lets teams build internal apps on top of a global database. These tools work together by linking visual app builders to fast SQL data stores. Teams use this setup to run customer dashboards, order trackers, and support tools. You get fast app creation while your data stays safe and accurate. How budibase and spanner share data and permissions Your internal app builder needs a clear way to talk to your cloud database. You set up a data source in the app using 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.

Integrating budibase and spanner lets teams build internal apps on top of a global database. These tools work together by linking visual app builders to fast SQL data stores. Teams use this setup to run customer dashboards, order trackers, and support tools. You get fast app creation while your data stays safe and accurate.

How budibase and spanner share data and permissions

Your internal app builder needs a clear way to talk to your cloud database. You set up a data source in the app using standard database drivers. Spanner offers a PostgreSQL interface that works well with standard SQL app connectors. The app sends read and write queries over an encrypted network path. Your cloud project checks the service account key or identity token first. Then the database checks the assigned role before it runs any query.

Data flows back to the app as rows and columns for your screens. You can bind these results to tables, forms, and buttons for your staff. Good role design ensures the app only reads the tables it needs. You should create custom database roles for each internal app you build. This keeps one app from reading or changing data meant for another team. Fine-grained access controls let you restrict specific tables and columns by role.

Common risks with shared keys and broad roles

Many teams make mistakes when they first link their app to the database. The biggest risk is using a single admin account for every internal app. If someone leaks that key, an attacker can read or delete all data. Shared accounts also ruin your audit logs during a security review. Every query in the database log shows the same generic service account name. You cannot tell which user clicked the button that changed a critical row.

Broad network access is another common failure mode in cloud setups. Opening your database to public traffic exposes your data to outside threats. Instead, you should place the app and the database on a private network. Use private cloud network links so data never crosses the public internet. You also need to watch out for raw queries that return sensitive fields. Unfiltered queries might pull user emails, phone numbers, or card numbers onto staff screens.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Steps to lock down your internal app queries

Start by creating a dedicated cloud service account just for your new app. Give this account the smallest role needed to do its daily job. If the app only displays reports, give the account a read-only database role. Never give an internal app permission to drop tables or change database schemas. Rotate your service account keys often, or use workload identity where you can.

Next, review every query your app builders write before the app goes live. Lock down query variables so users cannot type raw SQL into search boxes. Set up database audit logs to track every read and write event. Check these logs each week to spot odd query patterns or slow reads. Finally, apply data masking to rewrite emails and phone numbers in query results. This step keeps sensitive user details safe during day-to-day support work.

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 Google Cloud Spanner database?

You can use the PostgreSQL interface in Spanner to link the two tools. The PGAdapter sidecar translates standard PostgreSQL wire traffic into the native Spanner format. Your app connects to this local adapter just like a normal Postgres database.

Should I use one service account for all my internal apps?

No, you should create a unique service account for each app you run. Separate accounts let you limit each app to its own specific tables. This setup also helps you see which app ran a query in your logs.

How can I protect sensitive data in internal support apps?

Use fine-grained access roles to block sensitive columns at the database level. You can also use dynamic masking to rewrite card numbers and national IDs. This allows staff to do their jobs while private fields stay masked.

The query runs. The emails stay hidden.