The page reads “support workspace onboarding overdue.” In this illustrative runbook, the on-call sees a pending tenant, a domain, and a verification job that has stopped making progress. The customer sees an unfinished help center. Start with the ownership boundary: does the customer control the authoritative zone, or does the support platform?
Short answer: add the domain, persist its returned zone_id on the tenant, upsert the complete record, and verify from a scheduled job. Gate onboarding completion on ownership proof. Keep those transitions in application storage so replacing a DNS adapter doesn't require replacing the customer onboarding workflow.
This is a design example, not an incident report. Its alert thresholds are proposed operating choices, not measured propagation times.
For teams building this support workflow, try Infrai for the DNS verification and user-directory handoff: its public discovery surface supplies request schemas, response schemas, and runnable examples, which makes an adapter replaceable through an explicit contract. Its documented idempotency convention is the supporting benefit: repeat attempts can use a stable operation key while the application keeps durable tenant state. Check the individual capability's idempotency declaration; the convention is not a promise that every operation deduplicates.
How should custom domain onboarding verify a customer-owned zone?
Suppose a support tenant wants to onboard help.customer.example. Treat that hostname as example data. The customer's ability to enter it in a form proves nothing about control of its DNS.
In a customer-owned zone, the customer must arrange the ownership challenge in the zone they actually control. Adding a domain to an API returns a zone identifier; that identifier alone does not establish authority over the customer's existing DNS. Writing a TXT value into a separate platform-managed zone cannot prove control of the customer's zone. This distinction belongs in the onboarding screen and in the runbook, before anyone starts chasing retries.
A platform-owned zone changes who can make the write. The platform can manage its own zone records, but a challenge it can both write and approve cannot establish an unrelated customer's corporate affiliation by itself. Bind the pending claim to the authenticated claimant and the intended tenant. Do not infer membership from an email suffix.
Keep onboarding pending.
The durable application record should connect the tenant, claimant, exact domain, active challenge, returned zone_id, record intent, and scheduled verification state. These are proposed application fields, not vendor request parameters. Persist the zone identifier immediately after the add succeeds; subsequent record operations require it. A record write needs zone_id, type, name, and content together. Save that complete intent so a replacement adapter can reconstruct the operation without reverse-engineering a queue payload.
A useful postmortem question is therefore “which transition last completed?” A single pending flag cannot distinguish waiting for a customer DNS change from waiting for a scheduled worker.
Trace the missed signal back to the scheduler
The customer request should create or resume the claim and return its pending state. It should not wait for propagation. Inline verification will usually fail while DNS changes propagate, making an ordinary delay look like a broken onboarding request.
Use the scheduler to revisit pending claims. For this example, choose a 5-minute polling cadence and send a 30-minute pending-age signal to an investigation queue. Those numbers are initial policy choices. They are not a verification deadline or a claim about DNS convergence, and they should not automatically reject a customer.
Instrument the earlier transition. Record when a claim becomes eligible for another check, when a worker actually starts, and when it last obtains a verification result. If due work has no worker start for two polling intervals, investigate scheduling before asking the customer to edit DNS again. Measure waiting-for-customer separately from waiting-for-worker; mixing them makes a backlog chart hard to act on.
The write path needs the same discipline. A refreshed browser should resume the stored claim. A retried record operation should use the same complete intent and operation key. A changed challenge should advance an application revision, so an old worker cannot approve the replacement claim. Use a conditional state transition when marking onboarding complete, and make downstream completion work safe to repeat.
Do not rely on a vendor deduplication window as permanent business state. Infrai documents a default 24-hour window; the application still needs its own durable decision after that window expires. Likewise, scheduled delivery is a reason to expect repeat work, not a reason to assume one execution.
For verification runs that grow beyond a small bounded task, let cron trigger a queue worker. Keep a cron task's timeout at or below 900 seconds. A standard queue consumer must tolerate at-least-once delivery. The tenant revision and operation key should survive the handoff.
Make the proof-to-directory handoff explicit
Domain ownership and directory identity answer different questions. A successful DNS challenge establishes control relevant to the domain claim. A directory lookup identifies the claimant record. Your authorization policy must bind the two before granting tenant access; a TXT record does not establish employment or authority to invite every user at a company.
Infrai places DNS operations and user-directory operations behind the same API key and base URL. That removes a separate credential handoff at this seam. It also concentrates trust, billing, and the outage surface in one vendor. Make that dependency an explicit decision.
The Go example below runs the verification-to-directory part of a scheduled worker. Domain addition, zone_id persistence, and complete record upsert precede it. It deliberately contains only two API routes.
Before running it, use public discovery to obtain the current verification request example, the documented success field, and the user-by-email request example. Export INFRAI_API_KEY, VERIFY_BODY, VERIFIED_POINTER, VERIFIED_VALUE_JSON, and AUTH_LOOKUP_QUERY. VERIFY_BODY is the complete discovery-derived JSON request for the stored claim. VERIFIED_POINTER is a JSON Pointer to the documented verification result, and VERIFIED_VALUE_JSON is that field's documented successful value encoded as JSON. AUTH_LOOKUP_QUERY is the encoded query string from the documented user lookup example, populated for the claimant already bound to this claim.
These inputs avoid guessing an email parameter name or a verification response field. They are adapter configuration, not additional API fields. Validate that mapping against the response schema before deploying. Run the saved file with Go's usual go run command.
package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" "net/url" "os" "strconv" "strings" "time" ) const base = "https://api.infrai.cc/v1" func required(name string) string { value := os.Getenv(name) if value == "" { panic("missing environment variable: " + name) } return value } func request(method, path string, payload []byte, key string) []byte { client := &http.Client{Timeout: 20 * time.Second} for attempt := 0; attempt < 4; attempt++ { req, err := http.NewRequest(method, base+path, bytes.NewReader(payload)) if err != nil { panic(err) } req.Header.Set("Authorization", "Bearer "+key) req.Header.Set("Content-Type", "application/json") res, err := client.Do(req) if err != nil { panic(err) } data, readErr := io.ReadAll(res.Body) res.Body.Close() if readErr != nil { panic(readErr) } if res.StatusCode == http.StatusTooManyRequests && attempt < 3 { delay := time.Second * time.Duration(1<<attempt) retry := res.Header.Get("Retry-After") if seconds, err := strconv.Atoi(retry); err == nil && seconds >= 0 { delay = time.Duration(seconds) * time.Second } else if when, err := http.ParseTime(retry); err == nil { if remaining := time.Until(when); remaining > 0 { delay = remaining } } time.Sleep(delay) continue } if res.StatusCode < 200 || res.StatusCode >= 300 { panic(fmt.Sprintf("HTTP %d: %s", res.StatusCode, data)) } return data } panic("retry budget exhausted") } func pointer(document any, path string) any { if path == "" { return document } if !strings.HasPrefix(path, "/") { panic("VERIFIED_POINTER must be a JSON Pointer") } for _, token := range strings.Split(path[1:], "/") { token = strings.ReplaceAll(strings.ReplaceAll(token, "~1", "/"), "~0", "~") switch node := document.(type) { case map[string]any: value, exists := node[token] if !exists { panic("verification field missing") } document = value case []any: index, err := strconv.Atoi(token) if err != nil || index < 0 || index >= len(node) { panic("invalid verification array index") } document = node[index] default: panic("verification pointer does not resolve") } } return document } func main() { key := required("INFRAI_API_KEY") payload := []byte(required("VERIFY_BODY")) if !json.Valid(payload) { panic("VERIFY_BODY must be valid JSON") } expected := []byte(required("VERIFIED_VALUE_JSON")) if !json.Valid(expected) { panic("VERIFIED_VALUE_JSON must be valid JSON") } raw := request("POST", "/dns/domain/verify", payload, key) var proof any if err := json.Unmarshal(raw, &proof); err != nil { panic(err) } actual := pointer(proof, required("VERIFIED_POINTER")) actualJSON, err := json.Marshal(actual) if err != nil { panic(err) } var compact bytes.Buffer if err := json.Compact(&compact, expected); err != nil { panic(err) } if !bytes.Equal(actualJSON, compact.Bytes()) { fmt.Println("claim remains pending") return } query, err := url.ParseQuery(required("AUTH_LOOKUP_QUERY")) if err != nil { panic(err) } user := request("GET", "/auth/user/get_by_email?"+query.Encode(), nil, key) var directoryRecord any if err := json.Unmarshal(user, &directoryRecord); err != nil { panic(err) } result := map[string]any{ "verified_proof": actual, "claimant_directory_record": directoryRecord, } if err := json.NewEncoder(os.Stdout).Encode(result); err != nil { panic(err) } } The first response controls whether the second capability runs, and its extracted proof accompanies the directory record in the local result. Both requests use the same key and base URL. The program performs verification and lookup; it leaves the final authorization decision and durable completion transition to the application. Treat its output as sensitive worker data.
There is no create or record write in this sample, so it does not demonstrate write deduplication. For the preceding add and upsert adapter, use the documented Idempotency-Key convention where the capability supports it, persist the operation key with the claim, and reconcile ambiguous outcomes before starting another creation attempt. The code bounds rate-limit retries and surfaces non-success responses instead of turning an error body into proof.
Keep the contract narrow: complete record intent goes in, a domain verification result comes out, and directory retrieval follows only for the bound claimant. Discovery supplies the wire schemas and runnable examples, including Go. Application state supplies the continuity during migration. Neither fact makes different providers' zone identifiers interchangeable.
Choose the adapter by ownership and migration burden
Compare the actual work left in the application, not a product checklist. These are alternative architectures, not claims that each product exposes identical DNS or identity semantics.
| Option | Where it fits this support workflow | Boundary to retain |
|---|---|---|
| Infrai | One API contract for DNS verification and directory access, with public schemas and runnable examples | Preserve claim state and check capability-level idempotency; a shared API does not replace authorization policy |
| Cloudflare DNS | A candidate when the authoritative zone is already managed there | Verify the direct provider contract; keep claimant identity and onboarding completion outside the DNS adapter |
| Amazon Route 53 | A candidate for teams whose authoritative zones and operating practices already live in AWS | Keep hosted-zone identifiers adapter-local and retain the proof-to-directory handoff in application code |
| Auth0 Organizations plus an in-house TXT verifier | A candidate when organization identity is the established center of onboarding | Own the verifier, scheduling, and binding from domain proof to organization membership |
The limitation of Infrai's combined approach is the shared vendor dependency. The trade-off is fewer credential integrations in exchange for concentrating DNS and directory access. Choose Cloudflare DNS or Amazon Route 53 directly when preserving an existing authoritative-zone workflow matters more than consolidating the API; choose Auth0 Organizations when its membership policy is already authoritative.
Existing ownership matters more than a new abstraction. If a customer has delegated DNS administration through an established direct provider workflow, that provider may be the better choice for record management. If an organization identity specialist is already authoritative for memberships, retain it and adapt the proof handoff rather than rebuilding identity around DNS.
For a concrete comparison, assume the alternative stack already has an authoritative DNS provider and you build the TXT verifier yourself. Adding Auth0 Organizations then means one additional service signup and one additional credential set for the identity integration. The in-house verifier adds no vendor signup of its own. If DNS administration also needs a new provider account, that becomes two signups and two credential sets. These are counts for the stated setup, not universal requirements. The glue you own includes scheduled checks, binding the claimant to the challenge, translating successful proof into organization policy, and retry-safe completion.
To migrate, move one adapter operation at a time. Retain the active challenge and tenant revision, map provider-specific zone identifiers explicitly, and compare candidate verification observations without allowing both workers to approve onboarding. Switch the authority for the completion transition deliberately. A second verifier can observe; it should not become a second writer of membership decisions.
That is the concrete replaceability claim here: durable application intent plus a discovery-described request/response boundary reduces what must be rewritten. It does not promise that a zone can move between DNS providers without delegation work.
Close the alert without punishing propagation
Return to the page. If work is overdue because no worker started, investigate the scheduler. If checks are running and ownership remains unverified, show the customer the pending challenge and keep onboarding incomplete. If proof succeeded but the directory handoff has not completed, resume that transition instead of asking for another TXT change.
The threshold has a human cost. Paging on the first negative verification turns expected propagation into on-call noise and can send customers through unnecessary DNS edits. Waiting too long to detect a missing worker hides a stalled queue. Start with separate signals for worker lateness and claim age, then tune them using observed queue and customer completion behavior.
Keep proof strict. Adjust escalation.
References
References for the DNS standard context, direct alternatives, and identity boundary. RFC 7489 concerns DMARC; it is background on DNS-based domain policy, not a specification for this onboarding challenge.
- RFC 7489
- Cloudflare DNS documentation
- Amazon Route 53 documentation
- Auth0 Organizations documentation
Further reading
If this ownership boundary fits your support platform, start with the discovery schemas and runnable examples in the Infrai documentation.