The Simplest Way to Make Google Compute Engine and Redash Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Running google compute engine and redash together lets teams host their own query app on virtual machines. Analysts then log in to run SQL queries and build charts from company data. This setup keeps the dashboard app inside your cloud network. Your team controls the virtual machine size, disk space, and firewall rules. You also control how the app reaches your private databases. How google compute engine and redash share roles and data A virtual machine runs the web app, background workers,

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 google compute engine and redash together lets teams host their own query app on virtual machines. Analysts then log in to run SQL queries and build charts from company data.

This setup keeps the dashboard app inside your cloud network. Your team controls the virtual machine size, disk space, and firewall rules. You also control how the app reaches your private databases.

How google compute engine and redash share roles and data

A virtual machine runs the web app, background workers, and a small metadata database. Users log in to the web interface through their browser. The app checks their identity using your single sign-on provider or local user list.

Next, a user picks a data source and writes a query. The worker on the virtual machine sends that query to the target database. You can attach a cloud service account to the virtual machine itself. That role lets the host talk to other cloud services in the same project. For standard SQL databases, the app stores a database user name and password.

The database runs the query and sends rows back to the virtual machine. The app saves the results and draws a chart for the user. Everything stays inside your private cloud network when you use internal IP addresses.

Common failure modes and how to scope network paths

Many teams use one shared admin database key for every data source in the app. This shortcut creates a big security risk. Anyone with query rights in the app gets full database permissions. If a user writes a bad query, the database log only shows the shared app user. You cannot tell which person ran the query.

Broad network rules cause another common problem. Teams often open the virtual machine to the public internet for easy login. They also give the machine access to every subnet in the cloud project. Attackers who break into the web app can then reach all your internal data stores.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these issues with strict role and network limits. Create a read-only database user for each data source in the app. Grant that user select rights only on the specific tables analysts need. If your data has sensitive fields, masking rewrites matched fields in results for emails or phone numbers.

Lock down your cloud firewall rules as well. Place the virtual machine in a private subnet without a public IP address. Let users reach the web interface only through a secure load balancer or VPN. Set egress rules so the virtual machine can only talk to approved database ports. Rotate your database keys on a set schedule and review query logs every week.

Keeping the virtual machine and query workers stable

Heavy queries can slow down the virtual machine and crash the web app. If ten users pull millions of rows at once, memory fills up fast. You should set row limits and query timeouts on the database side. You can also split the web server and background workers onto separate virtual machines. This split keeps the dashboard fast even when big background jobs run.

Keep your host disk clean by clearing old cached query results. Back up the local metadata database every day to a separate cloud storage bucket. If a virtual machine fails, you can spin up a fresh host and restore your saved queries.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Should we use a public IP for our Redash virtual machine?

No, you should keep the virtual machine on a private subnet. Route user traffic through a cloud load balancer that checks user identity first.

How do we stop analysts from modifying production tables in Redash?

Always set up the data source with a read-only database user. Never put a write-enabled or admin database key into the dashboard app.

Why can we not see which analyst ran a slow SQL query?

The dashboard app sends all queries through one shared database account. You must check the app logs and match timestamps to the database logs.

The query runs. The emails stay hidden.