ADR-0027: The DNSSEC probe also checks that the delegation is this zone's#

  • Status: accepted. Extends ADR-0020.
  • Date: 2026-11-26

Context#

The hourly probe (ADR-0020) asks whether the zone validates. That catches a DS record that no longer matches the key, and a signature failure. It cannot catch the failure most likely to lose the domain outright: someone with access to the registrar account points the delegation at a zone of their own and publishes a DS record for their own key. That zone validates, so the probe reports it healthy.

The health check had the same blind spot. It passed any set of Route 53 nameservers, and any algorithm-13 DS record, because it has no access to state and so cannot know this zone's own. Another account's Route 53 zone looks the same to it.

DNSSEC does not mitigate a registrar compromise. Watching the delegation does not prevent one either, but turns it from silent into an alarm within the hour.

Decision#

  1. When a resolver validates the zone, the probe also asks it for the zone's NS and DS records. A validated answer naming nameservers other than the zone's own, or holding a DS record that matches none of the zone's key-signing keys, is a failing vote: the zone validates, but not as this zone.
  2. Only validated answers count. An NS or DS answer without the AD bit could have been forged on the way, and proves nothing either way. A DS record of ours that is missing is not a failure: during a rollover the parent holds one key's record of two (ADR-0028).
  3. The expected values come from state. The root passes the zone's nameservers and every key-signing key's key tag, algorithm, digest type and digest to the function as environment variables.
  4. It uses the existing alarm. A foreign delegation is a broken chain of trust to this zone's keys, so it raises testz-prod-dnssec-chain-of-trust with the same quorum. The log line says which kind of failure each resolver saw. No new alarm, so no new permission for the alarm delivery test.
  5. It can be shown to fail. A second self-test mode, {"self_test": "delegation"}, probes example.com, which validates but is not this zone, against this zone's expected delegation. The alarm-delivery-test workflow's dnssec-probe-delegation option runs it, and passes only if at least two resolvers judged the delegation foreign, so it cannot pass for another reason.
  6. The health check stays a shape check, and its delegation line now says so: Route 53 nameservers, not this zone's.

Alternatives considered#

A separate alarm. Clearer in an inbox, but it needs a new permission on the apply role for the delivery test, and the response is the same runbook. The probe's log names the kind of failure.

Give the health check the expected values, through a repository variable or the website's facts. A variable is a second copy to keep current. The website would be read from the domain being checked, which a hijacker controls.

Ask the .dev servers directly for the delegation. That needs raw DNS over UDP or TCP from Lambda, a second transport and parser. Validated answers from three resolvers already carry the parent's signature on the DS record.

Monitor the registrar over RDAP (expiry date, transfer lock). Worth doing, and on the roadmap, but a different question: whether the registration is safe, not whether the delegation is ours.

Consequences#

Positive: a changed delegation alarms within an hour, through the path that is already tested end to end.

Negative: each resolver is asked up to four questions instead of two, so the function's timeout rises from 30 to 50 seconds. A deliberate change of nameservers, which only a new hosted zone would cause, alarms until applied; that is the intended behaviour. The self-test depends on example.com staying signed.

Neutral: the function's environment changes whenever a key-signing key is added or removed, which is a planned change.

Revisit when#

  • Route 53 nameservers are no longer the zone's own, for example after adding a secondary provider.
  • example.com stops being signed.
  • Registrar monitoring over RDAP is built, if one alarm should cover both.

Built 2026-12-01 from commit 5f3eb2c4b04f9d8367364b6f4598a05a364e2263. This page was generated from the same source that provisions the infrastructure it describes.