The Simplest Way to Make Looker and gRPC Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use looker and grpc together to trigger fast backend actions from analytics dashboards. Looker reads your warehouse data and sends alerts or row actions to gRPC microservices. This workflow lets analysts push clean data straight into internal apps. Still, linking a web analytics tool to a binary remote call service takes careful work. Looker speaks HTTP and JSON through its action hub and webhook features. Microservices using gRPC expect binary protocol buffers over HTTP/2. You must bridg

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 looker and grpc together to trigger fast backend actions from analytics dashboards. Looker reads your warehouse data and sends alerts or row actions to gRPC microservices.

This workflow lets analysts push clean data straight into internal apps. Still, linking a web analytics tool to a binary remote call service takes careful work. Looker speaks HTTP and JSON through its action hub and webhook features. Microservices using gRPC expect binary protocol buffers over HTTP/2. You must bridge these two formats while keeping user roles and network paths safe.

How looker and grpc share identity and data

Looker does not send raw binary protocol buffer messages out of the box. Instead, a Looker action or webhook sends an HTTP payload to a middle service. That service translates the JSON payload into a structured gRPC request for your backend.

Identity must flow through this chain without losing context. A user logs into Looker and runs a report based on their assigned role. When the user triggers an action, Looker sends a shared secret or token along. The middle service checks this token before calling the gRPC server.

Data flows back and forth along this same path. Some teams also pull live gRPC service metrics into a SQL warehouse for Looker. In both directions, you need strict rules for who can read or write data. Passing user attributes from the dashboard to the backend helps keep permissions tight.

Common failure modes and how to scope roles

Many teams use one static service key for all calls between Looker and backend apps. This shared key creates a huge blind spot in your audit logs. When fifty analysts share one backend identity, you cannot tell who triggered a write action. If that single key leaks, an attacker can call every method on your gRPC server.

Broad network access is another common problem in these setups. Teams often open wide firewall rules so cloud dashboards can reach internal services. This exposes internal gRPC methods that were never meant for external traffic. Unlogged calls also make it hard to track what data left the warehouse.

End-to-End Encryption + gRPC Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, scope your service roles down to the exact methods Looker needs. Give each Looker action its own separate identity and narrow permissions. Pass the active Looker user email in the call metadata so backend logs show the real person. Set up data masking to rewrite emails, phone numbers, and card numbers in query results. This step prevents sensitive values from leaking into downstream services or logs.

Managing network paths and service health

Keeping the link between dashboards and backend services healthy requires clear network rules. Use mutual TLS between your translation service and the gRPC backend to verify both sides. Check that every call carries a short timeout so slow backend tasks do not hang Looker.

Log the full context of every request and response across both tools. Record which user ran the dashboard, which query fired, and which backend method ran. When an analyst reports a failed action, these logs help your team find the root cause fast. Clear logs and scoped roles turn a fragile link into a safe production workflow.

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

Can Looker query a gRPC service directly as a database?

No, Looker requires a SQL database connection to build models and run queries. To report on gRPC service data, write your service events to a SQL warehouse first.

How does Looker send data to a gRPC endpoint?

Looker sends JSON payloads using webhooks or a custom action hub server. Your action server receives the JSON and makes the binary gRPC call to your backend.

How do we track which Looker user called a gRPC method?

Configure Looker user attributes to pass the viewer email or ID in the action payload. Attach that user identity to the gRPC metadata so your backend logs record the caller.

The query runs. The emails stay hidden.