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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair json rpc and opslevel to automate service checks and update catalog records. This setup lets internal apps send structured remote procedure calls that sync service state. Platform engineers use this workflow to keep service ownership and maturity scores current. When a deployment finishes, the build system sends a small payload to update the catalog. This keeps every team on the same page without manual data entry. How json rpc and opslevel share data and permissions JSON-RPC is a

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 pair json rpc and opslevel to automate service checks and update catalog records. This setup lets internal apps send structured remote procedure calls that sync service state.

Platform engineers use this workflow to keep service ownership and maturity scores current. When a deployment finishes, the build system sends a small payload to update the catalog. This keeps every team on the same page without manual data entry.

How json rpc and opslevel share data and permissions

JSON-RPC is a stateless protocol that sends method names and parameters in JSON format. OpsLevel is a developer portal that tracks service health, ownership, and operational readiness. Because the protocol is simple, scripts can call specific methods with very little overhead.

To make these two tools work together, an integration script translates procedure calls into catalog updates. The calling app sends a method name, a request ID, and a parameter object. The integration point reads this payload and forwards the data to the portal API.

Log in credentials drive this entire flow. The portal checks a bearer token or API key before it accepts any write request. You must map each calling app to a specific role with limited permissions.

Good permission design splits read calls from write calls. A status board only needs read rights to check service tiers and owner emails. A deployment runner needs write rights to record new releases and update check results. When you separate these roles, a bug in a dashboard script will not corrupt your catalog.

Common failure modes and how to scope roles

Many teams start by sharing one broad admin token across all their automation scripts. This creates a major security risk in production. If one test runner leaks that shared key, an attacker can change every service record.

Shared service accounts also ruin your audit trail. When five apps use the same token, you cannot tell which app broke a catalog entry. You see the timestamp of the change, but you lose the true caller identity.

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 calls cause another common headache for platform teams. Standard remote procedure calls run over HTTP or raw sockets with minimal metadata. If a payload fails validation, the caller gets a basic error code and nothing else. Without central request logs, engineers waste hours guessing which parameter broke the parser.

You can fix these issues by scoping both roles and network paths. First, give every calling service its own token tied to a narrow role. Restrict that role so the caller can only update its own service entries.

Second, lock down the network path between your internal callers and the catalog handler. Only allow traffic from known build runners and verified internal networks. Reject any request that lacks a valid request ID or a clean parameter structure.

How to keep catalog data clean and safe

Payloads often carry sensitive details like owner emails or on-call phone numbers. If you log full request bodies for debugging, those plain text logs become a risk. Data masking rewrites matched fields like emails and phone numbers in results and logs.

You should also set strict rate limits on your RPC handlers. A broken loop in a build script can flood the portal with thousands of calls. Rate limits drop extra requests before they slow down your catalog or hit quota limits.

Finally, review your active API tokens every month. Delete unused keys and rotate the active ones on a set schedule. Clear role scoping and strict key hygiene keep your service catalog accurate and safe.

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

How do we map JSON-RPC methods to OpsLevel updates?

Create a small handler service that maps each method name to a specific catalog action. The handler checks the incoming parameters and sends the matching query to the portal API.

How should we handle failed procedure calls during a deployment?

Check the error object in the response and retry only on network timeouts. If the error shows bad parameters, log the request ID and alert the owning team.

What is the safest way to store API keys for catalog scripts?

Store all tokens in a dedicated secrets manager instead of plain text files. Pass the key into the script memory at runtime and rotate the secret often.

The query runs. The emails stay hidden.