You’ve secured your Google Cloud Spanner database, but no one can see anything without constant permission tickets. Your analysts want dashboards. Your engineers want query access. And you just want it to be fast, safe, and automated. That’s where Metabase with Spanner comes into play.
Metabase is the open-source BI platform that makes data accessible without writing endless SQL. Google Cloud Spanner is the horizontally scalable relational database built for near-infinite consistency. Put them together and you get interactive dashboards powered by a database that never flinches under scale. You just need to connect them right.
At its core, the Metabase Spanner integration bridges a gap between simplicity and scale. Spanner handles your transactional load with tight latency controls. Metabase takes the raw data and makes it understandable for everyone from product managers to data scientists. The magic happens when you design your connection logic for both performance and least privilege.
The workflow is straightforward. Spanner sits quietly with IAM-based access. Metabase connects through a service account that uses this IAM identity. Through Metabase’s configuration, you define the Spanner instance and database, generating secure, scoped credentials. Once set, Metabase queries Spanner directly through the JDBC driver, translating user actions into read-only SQL statements. Security stays intact because authentication never relies on static passwords, only managed identities.
When you map permissions, use the same rule you would for any production system: give only what’s necessary. Keep write access separate from analytic access. Rotate service account keys regularly or, better yet, eliminate them entirely with OIDC token-based authentication through providers like Okta or AWS IAM federation. This ensures compliance with frameworks like SOC 2 without slowing anyone down.