The Simplest Way to Make Json Rpc and Looker Work Like They Should
Teams use json rpc and looker together to trigger remote methods from analytics dashboards. A user clicks an action in a report. An intermediate service sends a remote procedure call to an external app. This workflow turns static charts into active control panels. Analysts can update records, trigger jobs, or refresh caches right from their daily reports. Still, wiring these two systems together takes careful setup to keep data safe. How json rpc and looker handle identity and data flow Look
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 json rpc and looker together to trigger remote methods from analytics dashboards. A user clicks an action in a report. An intermediate service sends a remote procedure call to an external app.
This workflow turns static charts into active control panels. Analysts can update records, trigger jobs, or refresh caches right from their daily reports. Still, wiring these two systems together takes careful setup to keep data safe.
How json rpc and looker handle identity and data flow
Looker does not speak the JSON-RPC protocol out of the box. Instead, it sends standard HTTP webhooks from its action hub or custom action endpoints. A small translation service must sit between the two tools to change that payload into a valid remote call.
First, the analyst picks a row or metric in a dashboard and triggers an action. Looker packages the selected values and sends a web request to the translation service. That service checks the request key to make sure it came from a trusted source.
Next, the translation service formats a message with a method name, parameters, and a unique request ID. It sends this structured payload over HTTP or sockets to the target JSON-RPC server. The target server runs the requested method and sends back a result object or an error object.
Data flows both ways when teams want to pull remote state back into their reports. An external pipeline can call remote methods, save the response rows into a SQL table, and let the business intelligence tool read that table. This pattern keeps heavy remote calls from slowing down live dashboard loads.
Common failure modes and how to scope roles
The biggest risk in this setup is a shared service account with broad permissions. Teams often give the translation service one master API key for the target RPC server. If any dashboard user triggers the action, the call runs with full admin rights on the backend.
Broad tokens also create blind spots in your audit logs. When the backend server logs a call, it only sees the shared service account name. Security teams cannot tell which analyst clicked the button in the report.
JSON Web Tokens (JWT) + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged queries and actions make this problem worse. If an action sends raw cell values as parameters, sensitive data like emails or phone numbers can end up in plain text logs. Meanwhile, if the translation service does not log the method name and user ID, you lose track of state changes.
To fix this, scope your roles down to the exact methods each team needs. Create separate action endpoints for finance, support, and engineering teams. Map each endpoint to a backend role that can only run a short list of safe methods.
Pass the dashboard user identity in the request metadata whenever an action runs. The translation service should check the user role before it sends the remote call. You should also apply data masking rules so that masking rewrites matched fields like card numbers or national IDs in results before they reach logs or screens.
Network paths and error handling between systems
Network timeouts often break the link between analytics actions and remote servers. Dashboard actions expect a fast HTTP reply, while some remote procedures take minutes to finish. If the target server takes too long, the dashboard shows a timeout error even when the job still runs.
Design your translation service to handle slow methods with background queues. When the dashboard sends an action, check the payload, start a background job, and reply to the dashboard right away. You can then write the final RPC response to a database table that the user checks later.
Lock down the network path so only your translation service can reach the RPC server port. Use mutual TLS or strict firewall rules between the two hosts. Never expose an internal JSON-RPC endpoint directly to the public internet just to take dashboard webhooks.
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
Can Looker send JSON-RPC requests without a middle service?
No, the platform sends its own action webhook format over HTTP. You need a small web service or serverless function to map that payload into the standard method, params, and id fields.
How do we stop analysts from triggering dangerous remote methods?
Do not pass the method name dynamically from a dashboard input field. Hardcode the allowed method names inside your translation service and tie each one to a specific user group.
What is the best way to read JSON-RPC data into a dashboard?
Run a scheduled worker that calls the remote methods and writes the results into your SQL warehouse. Point your data models at those warehouse tables so dashboard queries stay fast and reliable.
Related guides
In this post