boatramp-server 0.2.8

boatramp HTTP server + API library (streaming static-site publishing)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Shared plumbing for the REST-based KMS signers (Vault / GCP / Azure).

use std::time::Duration;

/// A reqwest client for KMS calls: a bounded timeout so a stalled backend can't
/// wedge token minting, and rustls (the workspace default).
pub(crate) fn client() -> reqwest::Client {
    reqwest::Client::builder()
        .timeout(Duration::from_secs(10))
        .build()
        .expect("reqwest client builds with default (rustls) config")
}