The Simplest Way to Make Caddy and Opslevel Work Like They Should
Teams use caddy and opslevel together to route web traffic and track service ownership. Caddy serves web requests with TLS while OpsLevel tracks service health and team rules. This setup connects live routing data with your internal service catalog. Platform teams can see which group owns each active web endpoint. When a route fails, the on-call engineer gets the right alert right away. You also gain a clear view of every public endpoint across your whole fleet. How data and permissions flow
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 caddy and opslevel together to route web traffic and track service ownership. Caddy serves web requests with TLS while OpsLevel tracks service health and team rules.
This setup connects live routing data with your internal service catalog. Platform teams can see which group owns each active web endpoint. When a route fails, the on-call engineer gets the right alert right away. You also gain a clear view of every public endpoint across your whole fleet.
How data and permissions flow between caddy and opslevel
Caddy runs at the edge of your network and handles incoming web traffic. It manages TLS certificates on its own and forwards requests to backend apps. OpsLevel sits in your control plane as a central catalog for all services. It grades service maturity and tracks who owns each microservice in your fleet.
To link them, an external sync job reads live route rules from Caddy. The sync job then sends service metadata to the OpsLevel API. This flow uses a dedicated API token to log in and write records. OpsLevel takes this data and matches each web route to a service owner.
You can also push webhook events from your deployment pipelines into OpsLevel. Whenever an engineer changes a Caddy route, the pipeline sends a quick update. OpsLevel checks the new route against your security rules and updates its scorecards. Teams see right away if a web app lacks TLS or proper logs.
Common failure modes and how to scope roles
Many teams make the mistake of using one broad API token for syncs. If an attacker steals that shared key, they can rewrite your whole catalog. Shared service accounts also hide who made a specific change during an incident. Unlogged API calls make it hard to trace bad updates or broken scripts.
A second common issue is leaving Caddy admin endpoints open on the network. If the local admin port binds to all interfaces, anyone can change routes. Bad actors could redirect traffic or read internal app metadata without a trace. You must lock down the admin port to local loopback addresses only.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Fix these gaps by giving each sync worker a narrow role in OpsLevel. Create a dedicated token that can only update specific service fields or checks. Rotate these keys on a strict schedule and store them in secret managers. Never hardcode tokens inside plain text files or build scripts.
On the network side, block public traffic from reaching your internal sync workers. Use strict firewall rules so only trusted pipeline runners can reach the catalog. Log every API write and route change to a central log store. Check these logs each week to spot strange traffic patterns or failed logins.
Keeping service checks accurate over time
Static service catalogs go stale fast when teams deploy code many times daily. An app might move to a new host while the catalog shows old data. Automated checks fix this drift by reading live states from your web servers.
Set up a recurring job that compares active Caddy routes against catalog entries. If a route exists in production without an owner, flag it right away. If a catalog entry points to a dead route, alert the owning team. This loop keeps your operational records clean and ready for any audit.
You should also test your webhook payloads in a staging setup first. Bad payload formats can cause silent failures and leave your scorecards out of date. Monitor the HTTP status codes returned by the catalog API during each run. Alert your platform group if an integration job fails three times in a row.
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 does Caddy send route data to OpsLevel?
Caddy does not send data to OpsLevel on its own. A separate script or pipeline reads the Caddy API and sends updates to OpsLevel.
What permissions should the OpsLevel API token have?
Give the token write permissions only for the specific services and checks it updates. Do not use a global admin key for automated sync scripts.
How do we secure the Caddy admin endpoint during syncs?
Bind the admin endpoint to localhost or a private management network. Require mutual TLS or local socket permissions before allowing any script to read routes.
Related guides
In this post