Module mesh_admin_client

Module mesh_admin_client 

Source
Expand description

Shared TLS-aware reqwest client construction for mesh-admin HTTP clients.

The mesh admin server requires mutual TLS. Building a correct reqwest::Client against it is subtle because fbcode Buck builds compile both native-tls and rustls features into reqwest, and the two backends use incompatible Identity constructors.

This module centralizes that logic so that every mesh-admin client (admin TUI, integration tests, future tooling) shares the same correct code path.

Functionsยง

add_tls
Configure TLS on a reqwest::ClientBuilder by adding a root CA, and optionally a client identity (cert + key) for mutual TLS.