SaltDns.Dnssec.Observe (Salt v1.0.0)

Reading the parent's DS (from SaltDns.Resolver.ds/1) and deciding what the DNSSEC lifecycle may conclude from it. Pure.

Every authoritative server of the parent is asked, so one answer is the list of what each server holds. The verdict is only as strong as the weakest server:

  • :none - every server answered and none has a DS for the zone;
  • :all_match - every server has a DS that is one of ours;
  • :all_present - every server has some DS, not all ours (for example the DS of a key from before a rollover);
  • :partial - some servers have a DS and some do not (the parent is still propagating a change);
  • :inconclusive - no answer, an error, or no server: nothing may be concluded, and the lifecycle does not move.

A DS is "ours" when its key tag, algorithm, digest type and digest equal one Knot published for the zone.

Summary

Functions

The verdict for the resolver's answer, given the DS Knot publishes (ours).

True when the verdict means the parent still has (some) DS for the zone.

Types

ds()

@type ds() :: %{
  key_tag: non_neg_integer(),
  algorithm: non_neg_integer(),
  digest_type: non_neg_integer(),
  digest: String.t()
}

t()

@type t() :: %{
  verdict: verdict(),
  ds_ttl: non_neg_integer() | nil,
  negative_ttl: non_neg_integer() | nil,
  servers: non_neg_integer()
}

verdict()

@type verdict() :: :none | :all_match | :all_present | :partial | :inconclusive

Functions

assess(arg1, ours)

@spec assess({:ok, SaltDns.Resolver.ds_result()} | {:error, term()}, [ds()]) :: t()

The verdict for the resolver's answer, given the DS Knot publishes (ours).

present?(verdict)

@spec present?(verdict()) :: boolean()

True when the verdict means the parent still has (some) DS for the zone.