Expand description
Error types for the ACDP library.
Error variants align with the wire vocabulary defined by
acdp-error.schema.json and RFC-ACDP-0007 §5. The
AcdpError::from_wire_error helper converts a
crate::wire_error::WireError (HTTP response body shape) into a typed
variant.
Structs§
- Ssrf
DnsRefusal - Typed marker for an SSRF-policy refusal raised while resolving a hostname (RFC-ACDP-0006 §7.1 / RFC-ACDP-0008 §4.8 DNS-rebinding protection).
Enums§
- Acdp
Error - Top-level error type.
- Supersession
Reason - Sub-reason for
AcdpError::SupersededTarget. Starts from thedetails.reasonvalues enumerated byacdp-error.schema.json’ssuperseded_targetdescription (not_found,lineage_mismatch,version_mismatch,already_superseded,cross_registry_supersession_unsupported) and adds typed reasons this library recognizes beyond what that enum currently lists (LineageWalkFailed,RevocationTypeMismatch) — it is a superset, not a mirror.#[non_exhaustive]plus theOthercatch-all below is what keeps a schema addition from being a breaking change here.
Constants§
- SSRF_
POLICY_ PREFIX - Prefix every SSRF-policy refusal message produced by this workspace
starts with: the
acdp-safe-httpchecks (SsrfPolicy::check_url,check_ip,pin_resolved_ip,SafeDnsResolver) and theAcdpError::SchemaViolationthatFrom<reqwest::Error>builds for a refused request. Matched withstarts_with, nevercontains, so a message that merely mentions the policy (a URL, an echoed registry error) does not classify.
Functions§
- error_
chain_ message - Render
errfollowed by every error in itssource()chain, joined by": ". - is_
ssrf_ refusal - Whether
err— or any error in itssource()chain — is an SSRF-policy refusal.