ADR-0032: The health check watches the registration over RDAP#

  • Status: accepted. Answers the open question in ADR-0027's Revisit when.
  • Date: 2026-11-26

Context#

An expired registration, or a transfer to another registrar, loses the domain outright, and DNS shows neither until it has happened. The hourly probe sees a changed delegation, not the registration that allows one, and ADR-0027 asked whether one alarm should cover both once RDAP monitoring was built.

The .dev registry publishes each registration over RDAP (RFC 9083): its status values, including the registrar's locks (RFC 8056), and its events, including expiration. IANA's bootstrap file (RFC 9224) names each TLD's RDAP service. This domain's record holds client transfer prohibited, client delete prohibited and an expiration event. The registry's terms forbid high-volume automated queries.

A check that could not run is a failure (ADR-0022), and a new mechanism must retire one or say why it cannot (ADR-0029).

Decision#

  1. The registration is part of the twice-daily health check, scripts/health-check.sh, in a section before the delegation. A failure opens the same incident issue as any other check. No workflow, schedule, alarm or AWS resource is added.
  2. The service is looked up, not written down. The check takes the first HTTPS URL of the bootstrap entry matching the most labels of the domain, then fetches the domain object. Both are fetched over HTTPS only, with one retry on what curl counts as transient (a timeout, or HTTP 408, 429 or 5xx).
  3. It fails when:
    • either file cannot be fetched or parsed, or the record is not this domain's. The expiry and lock lines then fail too, as not checked;
    • fewer than 30 whole days remain before the earliest expiration event, or there is no expiration event, or its date is not an RFC 3339 date;
    • the status lacks client transfer prohibited;
    • the status lacks client delete prohibited.
  4. The delete lock counts as much as the transfer lock. It is set today. A deleted registration leaves the zone at once and comes back only through the registry's redemption period, at a price; and removing the lock is the first step of a delete, as removing the transfer lock is of a transfer.
  5. A standard-library Python helper reads the JSON, scripts/rdap-registration.py; the shell script fetches with curl and judges. python3 becomes a required tool of the script.
  6. The real script is tested against a stub RDAP service (make test-health): a healthy record passes, and each failure above fails.

Alternatives considered#

Add it to the hourly probe, behind its alarm, the question ADR-0027 left open. It would need RDAP code in the Lambda function, two more hosts, and a self-test through the alarm. Hourly buys nothing for a 30-day warning, and a transfer between registrars normally takes days, while the probe already alarms within the hour once a delegation changes.

A separate daily workflow, as the roadmap item suggested. A second schedule and a second incident path for what the health check already does.

Hard-code the registry's RDAP URL. One fetch and one third party fewer, but the bootstrap file is the standard's mechanism, and a registry that moved its service would make the check a false alarm until edited.

WHOIS over port 43. Unstructured text, and no longer required of gTLD registries.

jq for the JSON. Not everywhere make health runs, and the repository already writes such logic in standard-library Python.

Warn on the delete lock. Warnings do not open the issue.

Consequences#

Positive: an expiry within 30 days, a removed lock, or a registration the registry no longer has opens the incident issue within about half a day, through a path that already exists and is tested. Nothing new runs or bills.

Negative:

  • Two more third parties. IANA sees a fetch of its bootstrap file, which names no domain; the registry sees this domain looked up twice a day.
  • The check does not know which registrar should hold the domain. A transfer completed between two runs passes if the new registrar sets its own locks.
  • A registrar that turns a lock off for its own reasons opens the incident.
  • The expiry will not come within 30 days for years, so only the stub tests show that line can fail.
  • A record that cannot be read fails four lines.

Neutral: RDAP's nameservers and DS records are not compared with the zone's own; the probe checks the delegation through validating resolvers.

Revisit when#

  • The domain moves to Route 53 Domains, where OpenTofu could hold the locks and auto-renewal as state, and the plan's check blocks could assert them.
  • The registry stops publishing the locks or the expiration event, or its terms stop allowing a lookup twice a day.
  • A lost lock or a transfer is missed between two runs.

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