How to Integrate Appsmith and BigQuery Safely

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair appsmith and bigquery to build custom dashboards over cloud data tables. This setup lets internal staff read metrics and run reports from one web app. Data teams store huge event logs and sales numbers in cloud tables. Support and ops teams need a simple screen to search those records fast. Building a custom web front end from scratch takes too much engineering time. Low-code tools let developers wire up tables, charts, and forms in hours. Yet direct database links from internal apps

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 appsmith and bigquery to build custom dashboards over cloud data tables. This setup lets internal staff read metrics and run reports from one web app.

Data teams store huge event logs and sales numbers in cloud tables. Support and ops teams need a simple screen to search those records fast. Building a custom web front end from scratch takes too much engineering time. Low-code tools let developers wire up tables, charts, and forms in hours. Yet direct database links from internal apps create real security risks for your team.

How appsmith and bigquery work together

The web app builder links to the cloud data warehouse through an API key. An admin creates a cloud service account and downloads a private key file. You paste that key into the app builder to set up the data source. When a user opens a dashboard, the app sends a query to the warehouse. The warehouse runs the job and sends the rows back to the user screen.

Permissions live on the cloud service account rather than the end user account. Every query from that data source runs with the exact same cloud role. If ten staff members use the app, the warehouse sees just one service account. The data flows from the cloud table to the app server and the browser. Admins must plan how to separate read jobs from write jobs across different apps.

Common risks with shared keys and broad roles

Many teams assign a wide admin or editor role to the shared service account. They do this to make the first setup fast and avoid permission errors. That broad role lets the app read every table across the whole cloud project. If a builder makes a mistake in a query, the app might expose sensitive data. A leaked service account key also gives attackers full access to your cloud tables.

Shared accounts also ruin your audit logs during a security review. The cloud log shows that the app service account ran a huge export query. It does not show which human user clicked the button inside the internal app. You cannot trace a bad query back to a specific staff member or team.

BigQuery IAM + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, create a dedicated service account for each internal app you build. Grant that account read rights only on the specific datasets the app needs. Never use a project-wide role for a simple dashboard or support tool. Set up cloud billing limits and query quotas to stop runaway costs from bad queries. Rotate your service account keys on a fixed schedule and delete old keys right away.

Protecting sensitive columns and user actions

Cloud tables often hold private customer details right next to basic order numbers. Support staff may need to check order status without seeing full payment details. Data masking rewrites matched fields like emails, phone numbers, card numbers, or national IDs in results. You can also build authorized views in the warehouse that leave out private columns. Point the low-code app to those safe views instead of the raw base tables.

Network rules add another layer of safety between your app server and cloud data. Run your self-hosted app builder inside a private network with strict outbound firewall rules. Use cloud private service paths so traffic stays off the public internet. Review your app queries before you push changes to your production workspace. Strong role scope and clean views keep your data safe while teams work fast.

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 do we restrict which tables an internal app can read?

Create a dedicated service account and grant it access to one specific dataset or view. Do not grant project-wide read roles to the account used by your app builder.

Why do all queries show the same user in our cloud logs?

The app connects with a single shared service account key for all app users. The cloud warehouse logs the service account identity rather than the browser user identity.

How can we reduce the risk of leaked service account keys?

Rotate your keys often, restrict network paths, and scope each key to minimal dataset roles. Delete unused keys right away and monitor cloud logs for odd query spikes.

The query runs. The emails stay hidden.