mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 01:47:47 +08:00
feat(security): harden gateway boundaries and usage policies
Consolidate subscription usage policy enforcement, privacy-safe persistence, and gateway security hardening into one reviewable change. Includes bounded HTTP and execution envelopes, header and protocol guards, DNS and relay validation, authentication and secret projection hardening, secure backup/install paths, and regression coverage.
This commit is contained in:
@@ -44,7 +44,9 @@ pub fn build_http_client_with_headers(
|
||||
config: &HttpClientConfig,
|
||||
default_headers: HeaderMap,
|
||||
) -> Result<reqwest::Client, reqwest::Error> {
|
||||
let mut builder = apply_http_client_config(reqwest::Client::builder(), config);
|
||||
// Shared clients must not silently inherit HTTP(S)_PROXY. Callers that
|
||||
// need a proxy install the explicitly configured URL below.
|
||||
let mut builder = apply_http_client_config(reqwest::Client::builder().no_proxy(), config);
|
||||
if let Some(proxy_url) = config
|
||||
.proxy_url
|
||||
.as_deref()
|
||||
|
||||
Reference in New Issue
Block a user