Network, DNS and TLS
Two kinds of client reach CoverOps, and they want different things from the network: people want a hostname and a browser-trusted certificate; agents want a stable API endpoint and a certificate their runtime trusts. Decide both before the first agent is installed, because the endpoint is compiled into every agent's configuration.
Hostnames
Pick one of two layouts:
One hostname (simplest, recommended): coverops.example.com serves the
dashboard, and /v1/* on the same host is the API. Agents use
COVERAGEOPS_ENDPOINT=https://coverops.example.com. One DNS record, one
certificate. The built-in edge and the Caddyfile route this way by default.
Two hostnames: coverops.example.com for people, api.coverops.example.com
for agents (COVEROPS_API_HOST). Useful when agents sit on a network that may
reach the API but must not reach the dashboard, or when the two are rate-limited
differently at a WAF. Two records, two certificates (or one SAN certificate).
Whichever you choose, COVEROPS_HOST in coverops.env is the dashboard's
name; it appears in links the product generates and in the OIDC callback URL.
DNS: an A/AAAA (or CNAME to the load balancer) on the zone the clients
use. In a private cloud that is the internal zone; in an enclave with no DNS,
an /etc/hosts entry on the dashboard users' machines and on every agent host
works, and is tedious; a DNS record is worth asking for.
Where TLS terminates
| You have | Do |
|---|---|
| A reverse proxy / ingress / application gateway already | terminate there; point it at WEB_PORT (dashboard) and API_PORT (agents). Leave the tls profile off. |
| Nothing in front | docker compose --profile tls up -d: Caddy on 80/443 |
With your own proxy, two rules; these cause most "it worked in the lab" tickets:
- Do not buffer
/v1/. The live trace feed is server-sent events. nginx:proxy_buffering off; proxy_read_timeout 3600s; proxy_http_version 1.1;on that location. F5 / Azure Application Gateway / some WAFs: disable response buffering for the path. Symptom: the numbers update, the live feed says "Connection lost". - Both ports must be reachable from their clients. People need the dashboard; agents need the API. A proxy that publishes only the dashboard makes agents report nothing, silently.
Also forward the client address (X-Forwarded-For, X-Forwarded-Proto) and,
if you assign request ids at the edge, X-Request-Id; the access log honours
both.
An nginx server block that does all of it:
server {
listen 443 ssl http2;
server_name coverops.example.com;
ssl_certificate /etc/ssl/coverops/fullchain.pem;
ssl_certificate_key /etc/ssl/coverops/privkey.pem;
location /v1/ {
proxy_pass http://127.0.0.1:4300;
proxy_http_version 1.1;
proxy_buffering off;
proxy_read_timeout 3600s;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Request-Id $request_id;
client_max_body_size 64m; # agent uploads; match MAX_FLUSH_SIZE
}
location /scim/ { proxy_pass http://127.0.0.1:4300; proxy_set_header Host $host; }
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
gzip on; # the dashboard; see "Compression" below
gzip_proxied any;
gzip_types text/css text/javascript application/javascript application/json image/svg+xml;
}
}
Compression
The dashboard's pages and its main JavaScript bundle are text of a few hundred kilobytes; compressed they are three to four times smaller, which on a slow link is the difference between a first load of seconds and one of a quarter of a minute. The dashboard server does not compress; the edge does. The API compresses its own JSON, and an edge passes an already-encoded response on as it is.
The built-in edge (both deploy/onprem/caddy/Caddyfile and the hosted
deploy/caddy/Caddyfile) compresses the dashboard's routes with zstd or gzip,
whichever the browser accepts, by an explicit list of text types. It never
touches /v1: the API compresses its own JSON, the live trace feed is
text/event-stream (an encoder holds bytes until it has a block, and the
feed would arrive in lumps or not at all), and /v1/mcp (MCP Streamable HTTP)
may answer with an event stream too. An event stream is kept out of the type
list as well, so nothing the dashboard streams is held either. Images, video,
fonts and archives are compressed already and are left alone. Cache headers
pass through: /assets/* keeps Cache-Control: immutable, an encoded
response loses Content-Length and gains Vary: Accept-Encoding, and an ETag
gets the encoding as a suffix. deploy/caddy/test-compression.sh checks both
files against a stub backend in the Caddy image.
With your own proxy, compress text on the dashboard's location and leave /v1/
to the API, as the nginx block above does; if you do compress /v1/, keep
text/event-stream out of the type list (nginx's gzip_types leaves it out
unless you add it).
Certificates with the built-in edge
TLS_MODE in coverops.env:
| Mode | Certificate from | Needs | Fits |
|---|---|---|---|
auto | Let's Encrypt, renewed automatically | public DNS for the host, inbound 80 and 443 from the internet (HTTP-01) | public cloud |
files | you: TLS_CERT_DIR/tls.crt (full chain) and tls.key | the corporate CA to issue it; you to renew it (Caddy reloads on restart) | private cloud, air-gapped |
internal | Caddy's own CA | installing caddy-data/pki/authorities/local/root.crt on every browser and agent host | labs |
files with a corporate CA is the enterprise path. Put the whole chain in
tls.crt (leaf, intermediates); a leaf alone is trusted by a browser that has
cached the intermediate and by nothing else.
Making the agents trust a corporate CA
A certificate from an internal CA is trusted by the browsers (the CA is in the desktop image) and not by the runtime inside a service's container. Each runtime has a one-line fix; put it in the service's deployment next to the agent flag:
| Runtime | Trust the CA by |
|---|---|
| Node.js | NODE_EXTRA_CA_CERTS=/etc/ssl/corp/root.pem |
| Java | -Djavax.net.ssl.trustStore=/etc/ssl/corp/truststore.jks -Djavax.net.ssl.trustStorePassword=…, or import the root into the JVM's cacerts in the image |
| Python | SSL_CERT_FILE=/etc/ssl/corp/root.pem (and REQUESTS_CA_BUNDLE for requests-based apps) |
| .NET | the OS store: update-ca-certificates (Debian/Ubuntu), update-ca-trust (RHEL), or SSL_CERT_FILE on Linux |
| Go | the OS store, or SSL_CERT_FILE |
| PHP | openssl.cafile=/etc/ssl/corp/root.pem in php.ini |
Symptom when this is missing: coverage never arrives and the agent's log says
unable to verify the first certificate / PKIX path building failed /
CERTIFICATE_VERIFY_FAILED. The agent fails safe and never crashes the
application, which is why the only sign is silence.
Proxies and egress
The API makes outbound connections only to: the identity provider (SSO), the
git host (optional repository connections), an LLM vendor (optional, off
without a key), Let's Encrypt (TLS_MODE=auto only), and the backup remote.
Behind a corporate proxy set HTTPS_PROXY/NO_PROXY on the api service in
docker-compose.override.yml; NO_PROXY must include postgres, api,
web and the host's own name.
Agents make one outbound connection: to the API. Node, Python, Go and .NET
agents honour HTTPS_PROXY; Java uses -Dhttps.proxyHost/-Dhttps.proxyPort.
Nothing in the product calls CoverOps the company: no licence server, no telemetry, no update check. An egress allow-list of the four hostnames above is complete.
Ports on the host
| Port | Service | Expose to |
|---|---|---|
| 80 / 443 | caddy (tls profile) | people and agents |
8080 (WEB_PORT) | web | your proxy only; bind to 127.0.0.1:8080:3000 when a proxy is on the same host |
4300 (API_PORT) | api | your proxy only, likewise |
| 5432 | postgres | not published; internal to the compose network |
Do not publish 8080/4300 to an untrusted network: they are plain HTTP by design, meant to sit behind TLS.
Kubernetes
The appliance is packaged for Docker Compose. If you run it on Kubernetes
anyway (the images are ordinary), the same rules hold: an Ingress with
buffering off for /v1/ (nginx-ingress: nginx.ingress.kubernetes.io/proxy-buffering: "off"
and a long proxy-read-timeout), a Secret for coverops.env, and an
external Postgres. The agent
auto-attach webhook under deploy/k8s-auto-attach/ is independent of where
the API runs.