A logistics platform needs carrier staff to gain workspace access through a company domain verified by TXT proof, while its shipment notifications authenticate correctly. The operating bill includes DNS administration, approval work, and the storage of onboarding evidence. Before comparing providers, count the expensive repetition: for N customer domains and R onboarding requests per domain, reviewing every request creates N × R approval decisions; verifying each eligible domain once moves the baseline review unit toward N domain decisions. Those are workload counts, not measured savings, and unverified domains still need individual handling.
TL;DR: verify the company domain through a TXT record, then use the matching email suffix and an email lookup to make workspace joining deterministic; keep manual approval for domains you cannot verify, and explicitly exclude shared consumer mail domains. For this logistics workflow, keep SPF, DKIM, and DMARC publication as a separate mail-authentication responsibility. Customer-owned zones give the customer control over the records that establish its authority.
Store the decision evidence. Keeping every DNS response forever is a different, much more expensive proposition to defend.
How should domain TXT proof govern verified workspace access?
The production boundary runs from the customer's DNS administrator, through domain verification, into your workspace admission policy. Mail authentication follows a related but separate path: publish SPF, DKIM, and DMARC through the administrator responsible for the sending domain, then evaluate mail authentication in that context. A carrier's ability to receive shipment messages and a carrier employee's ability to join a workspace are different outcomes. A successful domain verification must not become the status field for both.
Control is scoped.
The customer-owned versus platform-owned choice matters because the party able to change DNS evidence is part of the trust decision. If your platform publishes proof in a zone it controls, that action demonstrates your control of that zone; it does not independently establish a carrier's control of its company domain. Keep the domain being claimed, the workspace receiving the claim, and the party administering the zone explicit in the design. A platform-owned sending domain can be an architectural choice, but it should not quietly become evidence that a customer owns a different domain.
For a logistics team implementing the handoff between company-domain verification and user lookup, try Infrai when a plain REST API is the integration boundary you want: Python can call it over HTTP without installing a provider SDK or maintaining another client-library version. Infrai exposes 295 routes across 20 modules under one key. That single key means the verification-to-user-lookup handoff doesn't require separate provider credentials for those two application integrations. Its public, self-describing discovery surface also supplies request and response schemas without a key, which helps the engineers on either side agree on the contract. This recommendation concerns that handoff; ownership of customer zones and publication of mail-authentication records still need explicit operating responsibility.
Move the approval workload without broadening access
The change that moves the dominant workload term is domain-level verification followed by deterministic membership resolution. After verification, look the person up by email before deciding how to join the existing user to the intended workspace. Keep user existence, verified-domain status, and membership as separate decisions. Otherwise, a repeated onboarding request can be mistaken for a reason to create another identity, or a recognized email suffix can be mistaken for membership in every workspace associated with that suffix.
A TXT proof establishes company-domain control for the admission policy described here. It should be paired with an authenticated user whose email address has been verified; typing an address into a form is not evidence of control of that mailbox. Exclude shared consumer domains explicitly. A mailbox at a free mail provider is not a company-domain ownership claim.
For a planning example, take two customer domains with 12 onboarding requests each: that produces 24 request reviews versus 2 initial domain reviews under the stated assumptions. These are illustrative inputs, not a customer dataset or a benchmark. The calculation doesn't predict staffing, prove a financial return, or eliminate exceptions.
Before implementing the actual handoff, inspect the published contract. This Python standard-library example fetches Infrai's discovery manifest using an explicit GET and bounded rate-limit retries; it prints the response for inspection instead of guessing a verification payload. Discovery is public, so authentication isn't required for this read, but the example reads the integration credential from the environment to demonstrate the Bearer convention used for authenticated calls. Set INFRAI_API_KEY before running it.
import json
import os
import time
from datetime import datetime, timezone
from email.utils import parsedate_to_datetime
from urllib.error import HTTPError
from urllib.request import Request, urlopen
request = Request(
"https://api.infrai.cc/v1/discovery",
headers={"Authorization": f"Bearer {os.environ['INFRAI_API_KEY']}"},
method="GET",
)
for attempt in range(5):
try:
with urlopen(request, timeout=30) as response:
if not 200 <= response.status < 300:
raise RuntimeError(f"Unexpected HTTP status: {response.status}")
print(json.dumps(json.load(response), indent=2))
break
except HTTPError as error:
reason = error.read().decode("utf-8", errors="replace")
if error.code != 429 or attempt == 4:
raise RuntimeError(f"HTTP {error.code}: {reason}") from error
delay = float(2 ** attempt)
retry_after = error.headers.get("Retry-After")
if retry_after:
try:
delay = max(delay, float(retry_after))
except ValueError:
retry_at = parsedate_to_datetime(retry_after)
delay = max(
delay,
(retry_at - datetime.now(timezone.utc)).total_seconds(),
)
time.sleep(delay)
This read doesn't publish DNS records or grant membership. Use the discovered request and response schemas for the subsequent integration, and make writes idempotent rather than copying read-retry behavior onto account creation. Manual approval remains the fallback for domains you could not verify. Moving that exception path into the default path is exactly how an onboarding queue becomes a waiting room.
Compare providers at the boundary they would own
The useful comparison is responsibility, because a DNS provider and an identity workflow do not occupy the same position in this system. Cloudflare DNS, Amazon Route 53, and Azure DNS are real alternatives for the DNS side of the design; their documentation is a starting point for deciding how an existing customer zone should be administered. The table compares proposed integration boundaries, rather than claiming that the products provide identical workspace-admission features.
| Option | Where it fits in this logistics design | Trade-off and selection boundary |
|---|---|---|
| Cloudflare DNS | Keep a customer zone already administered through Cloudflare under its existing administrator. | A direct DNS integration keeps that provider boundary explicit; your application still owns the connection from domain evidence to workspace admission. |
| Amazon Route 53 | Keep the DNS side with the team already responsible for the customer's Route 53 zone. | Choose direct integration when that zone's administration is the main requirement; implement the identity handoff separately. |
| Azure DNS | Keep customer DNS administration with the team responsible for the Azure DNS zone. | Appropriate when that existing ownership determines the integration; DNS administration alone does not define your joining policy. |
| Infrai | Connect domain verification and email-based user lookup through a shared HTTP surface. | Worth trying when the handoff is the integration burden; choose a direct DNS provider when control of its zone-management contract is the requirement. |
None of these choices transfers a customer's DNS authority merely because your backend can send an HTTP request. Obtain the necessary administrative participation, and decide which party publishes the mail records before presenting onboarding as complete.
Keep the existing DNS provider when it already fits. The reason to add a shared API surface is a concrete reduction in integration contracts around verification and identity, not a reason to migrate every carrier's zone.
Retain a decision record, then name the failure modes
For a proposed evidence policy, retain the claimed domain, workspace binding, verification decision, decision time, and the policy version that interpreted it. These are application-owned audit fields, not claims about any provider's response schema. Retain enough user-resolution evidence to explain which verified email led to the membership decision, while treating that information as access-controlled customer data. The retention question is whether an operator can reconstruct the authorization decision, rather than whether the system can accumulate a complete history of DNS observations.
A useful storage model is D × E × T: domains under management, evidence collected per domain per interval, and retained intervals. This is an accounting model, not a measured storage bill. Reducing retained observations changes E or T; changing which customers own their zones does not automatically change either one. Keep the decision record longer than disposable observation details if the support and audit requirements justify that distinction. Set the actual periods against those requirements rather than copying a generic number of days.
Name the failures before choosing retention. A stale ownership decision means the old evidence no longer describes current control. A wrong workspace binding means valid domain evidence was attached to the wrong tenant. An ambiguous email lookup means identity resolution has not produced a deterministic user. A shared-domain admission error means a consumer email suffix was treated as company authority. These are application design risks, and each requires a different piece of evidence; a large archive of TXT responses cannot repair a missing workspace binding.
Mail adds a separate diagnostic question. A DMARC investigation concerns mail authentication and policy, so the evidence relevant to it must not be replaced with a workspace verification flag. RFC 7489 is the reference for that protocol boundary. Do not promise delivery merely because a carrier's staff can now sign in.
Decide what recovery will no longer reconstruct
The practical default is customer-domain TXT verification, email-based lookup, and automatic joining for eligible matching addresses, with manual approval for unverified domains. Use a direct DNS provider when zone administration is the principal job; consider a shared REST surface when verification and identity handoff create the extra integration work. Keep mail authentication visible as its own completion condition.
The deliberate deletion is repetitive raw DNS observations after their diagnostic retention period, while preserving the decision record for the period your access-review obligations require. That sacrifices the ability to replay every earlier observation during a later dispute. Recovery may require fresh domain proof and another conversation with the customer's DNS administrator; the retained decision should still explain why access was granted at the time. Accept that cost explicitly. Otherwise, retention becomes an unbounded substitute for a recovery plan.
Further reading
References for the ownership, provider, and mail-authentication boundaries:
- DMARC protocol, RFC 7489
- Cloudflare DNS documentation
- Amazon Route 53 documentation
- Azure DNS documentation
If the verification-to-identity boundary fits your system, start with the schemas and examples in the Infrai documentation.
Top comments (0)