The Simplest Way to Make Cloud Run and Looker Work Like They Should
Teams use cloud run and looker together to run data apps and actions in production. Looker runs analytics queries while Cloud Run hosts the web services that process those results. This pairing lets analysts trigger custom workflows right from a dashboard. A user clicks an action in Looker, and a container spins up on demand. The container processes the data payload and sends updates to other internal tools. When set up well, both tools scale down when idle and keep operational overhead low.
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 use cloud run and looker together to run data apps and actions in production. Looker runs analytics queries while Cloud Run hosts the web services that process those results.
This pairing lets analysts trigger custom workflows right from a dashboard. A user clicks an action in Looker, and a container spins up on demand. The container processes the data payload and sends updates to other internal tools. When set up well, both tools scale down when idle and keep operational overhead low.
How permissions and data flow between cloud run and looker
Data flows between the two tools through web requests and API calls. In one pattern, Looker sends query results to a Cloud Run service endpoint. In another pattern, an app on Cloud Run calls the Looker API to fetch data. That app then renders embedded charts or exports reports for end users.
Both directions need strict login checks and clear role rules. When a service on Cloud Run calls Looker, it logs in with API credentials. Looker checks those credentials and applies the permissions tied to that user role. This controls which models, views, and rows the container can read.
When Looker triggers a Cloud Run service, it sends a request over HTTPS. The Cloud Run service checks an authorization header or a signed token before running code. You should store any shared secrets or API keys inside a dedicated secret manager. The container reads those keys at startup rather than holding them in source code.
Common failure modes and how to scope roles
Many teams start by sharing one admin API key across all their Cloud Run services. This creates a major risk if a single service breaks or leaks its key. An admin key lets any container read all data models and change system settings. It also makes audit logs hard to read because every action looks the same.
Shared database accounts cause similar blind spots during daily work. If every report uses the same service account, you cannot trace who ran a slow query. You also risk exposing sensitive fields like emails, phone numbers, or card numbers. Masking rules that rewrite matched fields in results help reduce this exposure.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix this, give each Cloud Run service its own service account and Looker role. Scope that role so it only reads the specific data models it needs. Limit network paths by using private VPC routing when your setup supports it. Set up ingress rules so only known IP ranges or verified callers reach the container.
Keeping audit logs clear across both services
Good logging helps you track data from the chart down to the container. When an app calls the Looker API, log the user ID in your container logs. Pass request metadata so your team can match container runs with specific dashboard loads.
Review your role assignments and active API keys on a regular schedule. Delete old keys that no longer match an active Cloud Run service. Rotate your active secrets often so leaked credentials expire before anyone can use them. Tight permissions and clean logs make the whole data workflow safer to run.
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
How does a Cloud Run service log in to the Looker API?
The service reads client credentials from a secret store and requests a temporary access token. It includes that token in the header of each API call it sends to Looker.
How can I stop unauthorized calls to my Cloud Run action endpoint?
Require IAM login on the service or check a secret token on every incoming request. You can also restrict network ingress so only trusted networks can reach the URL.
Why should each Cloud Run app have its own Looker role?
Separate roles limit what each app can read if a key leaks. They also give you clear audit logs showing which app ran each query.
Related guides
In this post