TECHNOLOGY

How can Prometheus require a verified client certificate?

In this article
THE QUICK TAKE

Verified client-certificate admission is separate from authorization over tenant-labelled metrics.

The operational scenario

A team protects its Prometheus web endpoint with a server certificate and configures a client CA file. It then assumes every query requires a verified client certificate and only exposes that client’s tenant data. Both claims need separate evidence. Transport encryption, mandatory peer authentication and authorization over the returned metrics are different boundaries, even when all are described informally as enabling TLS.

The trust-boundary mechanism

Prometheus documents client_auth_type separately from the client CA and allowed SAN settings. RequireAndVerifyClientCert expresses mandatory verified certificate admission; merely requesting a certificate or supplying trust material does not establish that mode. Its security model also treats HTTP data access as a substantial trust grant. A successful handshake does not automatically create row-level or tenant-label query restrictions.

Define the control contract

Define the web process, network entry points, required client trust roots and any supported exact SAN policy. Preserve the effective configuration rather than only certificate files. Specify which authenticated callers may query which data through an independently enforced access design if tenant separation is required. Check alternate listeners and proxy routes so an unprotected path cannot bypass the intended handshake boundary.

A step-by-step verification

First use a disposable endpoint with a known accepted client. Compare no certificate, an untrusted certificate and a trusted certificate that fails the declared SAN condition. Verify both handshake and ordinary query outcomes. Then test the intended data-authorization layer with harmless tenant marker metrics. A client admitted by TLS must not be assumed restricted to one label simply because its certificate contains a tenant-looking name.

Evidence required for acceptance

Retain effective client-auth mode, trust-root identity, SAN policy, endpoint route and sanitized control results. Keep certificates’ public identities separate from private keys, which do not belong in evidence bundles. A control changes the authentication mode while leaving CA files unchanged, verifying that the audit catches the weaker admission rule. State which data queries were actually restricted rather than certifying every arbitrary query from one dashboard view.

Failure cases and limits

Client certificates do not by themselves constrain enabled administrative or lifecycle endpoints, and certificate rotation is another lifecycle test. This protocol changes no Prometheus service and performs no network authentication here. Its conclusion should distinguish encrypted transport, required verified peers and any separately demonstrated data-access restriction, retaining unknown alternate paths as explicit limits.

Verified client-certificate admission is separate from authorization over tenant-labelled metrics. Prometheus web TLS and authentication; Prometheus security model.

The proposed investigation of prometheus required client cert authorization scope is a proposed control review; no live security test was executed. Related reading: Inference API telemetry without default prompt capture; Request IDs and trace context across gateway, API and engine.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles