Skip to content

fix: let domains pointed at Datum verify before their zone goes live - #519

Merged
kevwilliams merged 1 commit into
mainfrom
fix/verify-pending-dnszone
Sep 29, 2026
Merged

kevwilliams merged 1 commit into
mainfrom
fix/verify-pending-dnszone

Conversation

@kevwilliams

@kevwilliams kevwilliams commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Domains pointed at Datum nameservers never verify, because the DNS operator holds a zone back until its domain is verified (datum-cloud/dns-operator#100) and delegation only counted live zones. A waiting zone can now verify its domain, but only a registered domain, since a subdomain reports its parent's shared Datum nameservers and anyone could claim it. Waiting subdomains fall back to the TXT record or HTTP token.

Merge and roll out before datum-cloud/dns-operator#200.

Test plan

  • Unit tests cover a waiting zone verifying a registered domain and not verifying a subdomain
  • The subdomain test fails with the registered-domain check removed
  • In staging, a new zone for a registered domain pointed at Datum verifies and provisions

The DNS operator won't provision a DNSZone until its Domain is verified,
so the zone never becomes Programmed. Requiring Programmed for DNSZone
verification deadlocked every domain delegated to Datum nameservers.

attemptDNSZoneVerification now also accepts a zone that is
Accepted=False with reason PendingDomainVerification. It does so only
for the registered apex: all zones share nameservers, and a subdomain
with no delegation of its own reports its parent's, so accepting one
would let any tenant verify sub.example.com once example.com was on
Datum. A waiting subdomain zone falls through to TXT or HTTP
verification.
@kevwilliams
kevwilliams marked this pull request as ready for review September 29, 2026 13:02
@kevwilliams
kevwilliams requested a review from a team as a code owner September 29, 2026 13:02
@kevwilliams
kevwilliams merged commit 883af6b into main Sep 29, 2026
15 checks passed
@kevwilliams
kevwilliams deleted the fix/verify-pending-dnszone branch September 29, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants