Skip to main content

SSRF_POLICY_PREFIX

Constant SSRF_POLICY_PREFIX 

Source
pub const SSRF_POLICY_PREFIX: &str = "SSRF policy:";
Expand description

Prefix every SSRF-policy refusal message produced by this workspace starts with: the acdp-safe-http checks (SsrfPolicy::check_url, check_ip, pin_resolved_ip, SafeDnsResolver) and the AcdpError::SchemaViolation that From<reqwest::Error> builds for a refused request. Matched with starts_with, never contains, so a message that merely mentions the policy (a URL, an echoed registry error) does not classify.