Karta. Auth. ARC. Result
(Karta v1.0.0)
The outcome of validating a message's ARC chain (RFC 8617 §5.2), in the
terms of Authentication-Results (arc=, §10.1).
result- the chain validation status::none- the message has no ARC header fields;:pass- every ARC set is there, the newest ARC-Message-Signature and every ARC-Seal verify;:fail- anything else; every error, a DNS failure included, is permanent (§5.2.1). A failed chain counts as no chain.
reason- why it failed (:failonly)::too_many_sets- an instance above 50, or more than 150 ARC fields;:chain_failed- the newest ARC-Seal sayscv=fail: an earlier sealer found the chain broken;:structure- a field that does not parse, a missing or repeated field, a gap in the instances, or a seal'scvout of order;:message_signature- the newest ARC-Message-Signature does not verify;:seal- an ARC-Seal does not verify;:dns- a key could not be looked up;:timeout- the deadline passed before a lookup;:headers- the header block could not be read.
sets- the number of ARC sets (the newest instance), for:passand for failures found after the structure was checked.oldest_pass- for:pass: the oldest instance whose ARC-Message-Signature still verifies, or 0 when all do (§5.2 step 5).sealers- for:pass: each ARC-Seal's%{instance, domain, selector}, oldest first.results- for:pass: the newest ARC-Authentication-Results field's value after the instance (the newest sealer's authentication results), unfolded.
Summary
Types
@type t() :: %Karta.Auth.ARC.Result{ oldest_pass: non_neg_integer() | nil, reason: atom() | nil, result: :none | :pass | :fail, results: String.t() | nil, sealers: [ %{instance: pos_integer(), domain: String.t(), selector: String.t()} ], sets: non_neg_integer() | nil }