Skip to main content

validate_providers_url

Function validate_providers_url 

Source
pub fn validate_providers_url(url: &str) -> Result<()>
Expand description

Validate an upstream catalog URL. Mirrors the SSRF guard in tools::web_fetch: requires an http(s) scheme and rejects loopback / private / link-local / cloud-metadata hosts so a misconfigured RECURSIVE_PROVIDERS_URL cannot be turned into an internal-network probe.