The Simplest Way to Make Compass and Json Rpc Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You link compass and json rpc by sending lightweight remote calls into your service catalog. This setup lets teams track service health, ownership, and scorecards from custom backend tools. Compass acts as your central hub for software components and team ownership. JSON RPC provides a clean, stateless way to send method calls over a network. When you join them, your internal scripts can push build facts or pull service data. You do not need heavy frameworks to make these two systems talk. You

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.

You link compass and json rpc by sending lightweight remote calls into your service catalog. This setup lets teams track service health, ownership, and scorecards from custom backend tools.

Compass acts as your central hub for software components and team ownership. JSON RPC provides a clean, stateless way to send method calls over a network. When you join them, your internal scripts can push build facts or pull service data. You do not need heavy frameworks to make these two systems talk. You only need a small bridge that maps method names to catalog actions.

How compass and json rpc pass data and check keys

Data flows between compass and json rpc through a small adapter service that you run. A client sends a text payload with a method name and input values. Your adapter reads this call, checks the caller key, and updates the catalog. The catalog then sends back a result, which the adapter formats as a reply.

To keep this flow safe, each system needs its own login check. The client must log in to your adapter using a scoped token or key. Next, the adapter uses a separate key to write data to your catalog. You should never pass the catalog admin key directly to the calling client. Keep keys separate so you can rotate them on a tight schedule.

Permissions must match the exact job that each remote method does. Read methods should use a key that can only fetch catalog facts. Write methods should only update specific fields like build status or metric values. This separation stops a bad script from wiping out your whole service map.

Common failure modes and how to scope roles

Many teams fail because they share one broad service key across all scripts. When five tools use the same key, you cannot tell who made a bad change. If that single key leaks, an attacker can change every record in your catalog. Another common mistake is running remote calls without logging the input values.

Unlogged calls create blind spots during an outage or security review. If a script sends bad data, your team needs a clear trail to fix it. You should log the caller identity, the method name, and the timestamp for every request. Sensitive fields like emails or phone numbers should get masked in your logs. Masking rewrites matched fields in results so private data does not sit in plain text.

JSON Web Tokens (JWT) + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix key sprawl by creating one role per calling app. Give each app a narrow role that only allows the methods it needs. Lock down the network path so only known hosts can reach your adapter. Set strict rate limits on your adapter to stop runaway loops from breaking the catalog.

Building a clean workflow for daily updates

A good setup keeps your catalog fresh without manual work from your devs. Start by listing the exact facts your team wants to track in the catalog. Map each fact to one simple remote method in your adapter app. Keep the payload small so calls finish fast and do not block deploy jobs.

Test your error paths before you roll this workflow out to the whole team. Your adapter should return clear error codes when a catalog update fails. Good error replies help devs fix broken scripts without digging through server logs. Review your active keys every month and remove any tokens that teams no longer use.

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 JSON RPC call the Compass API directly without an adapter?

No, you need a small adapter service to translate the calls. The adapter takes the remote method call and formats it for the catalog API.

How should we store keys for the adapter service?

Store your catalog keys in a dedicated secret manager instead of plain files. Load the keys into memory only when the adapter app starts up.

What is the safest way to handle failed remote calls?

Return a standard error object with a clear code and short message. Do not include raw stack traces or secret keys in the error reply.

The query runs. The emails stay hidden.