A marketplace needs company email signups to reach the right workspace while operators manage DNS records from an internal admin console. Keep the normal signup path to an email lookup and a stored domain mapping. The operational bill has three parts: DNS verification work, admission lookups, and retained evidence. Repeating verification for every signup makes the first term grow with signup volume, even though the ownership decision belongs to the domain.
Short answer: Verify a company domain once, store its workspace mapping, and look up each user by email before attaching them to that workspace. Exclude consumer mail domains. Recheck ownership periodically, and gate cutover on verification evidence rather than the success of a record write.
Consider an illustrative workload of 100 company domains and 10,000 signups between ownership reviews. Verification on every signup means 10,000 verification attempts; initial verification per domain means 100, plus whatever periodic reviews the policy requires. The 10,000 email lookups remain. These are operation counts, not measured charges or latency claims. Removing repeated ownership checks moves the avoidable term without discarding the admission decision.
How should verified company domains route each user to the right workspace?
A record write, a verified domain, and a workspace membership are three different decisions. The admin console should expose them separately. An operator can finish editing records before the evidence needed for domain verification is available; moving the membership mapping immediately would confuse cutover speed with DNS propagation. Continue making admission decisions from the last approved mapping until the replacement passes its checks, unless an ownership dispute requires suspending automatic joins.
Evidence comes first.
For this marketplace, define three admission gates: an approved company-domain claim, an eligible email domain, and an email lookup that does not conflict with an existing workspace assignment. Treat these as application policy, with recorded decisions. A proof of domain control is also a different question from whether an individual has proved control of a mailbox. Require the latter through the application's authentication process before granting membership. Otherwise a correctly verified domain can still feed an unsafe signup flow.
Email delivery needs its own attention. RFC 7489 describes DMARC in terms of authentication and identifier alignment; it does not turn an arbitrary sender address into permission to join a workspace. Keep domain ownership verification separate from mail authentication policy. An internal console that allows onboarding staff to change DNS should make the intended record and approved domain visible before applying a change. Don't let an admission task become an accidental mail-policy edit.
Delivery is separate.
The awkward case is a domain moving between marketplace organizations. A previous verification should not authorize an unreviewed reassignment. Hold new automatic joins during the ownership review, preserve existing memberships for explicit review, and record who approved the new mapping. That sacrifices immediate onboarding for a clear authorization boundary.
Make propagation a control-plane concern
Domain verification is a one-time enrollment step, followed by periodic ownership review. It should not sit inside every signup transaction. Store the approved mapping, the verification decision, and the review deadline. On signup, extract the exact email domain, check the exclusion policy, look up the user by email, and consult that mapping. If evidence is pending or expired, return a pending decision instead of guessing a destination.
There is no propagation deadline established here. A console can record when an operator submitted a change and when verification was accepted, but elapsed time alone should not grant access. A short desired cutover window is a product requirement; successful ownership verification is the admission prerequisite. They need separate status fields.
Consumer domains deserve a hard boundary. A mapping for a shared mail provider would make unrelated people appear eligible for the same company workspace. Maintain an explicit exclusion list and an approval process for additions. Also avoid suffix matching: a claim for one exact domain should not silently grant a claim for every subdomain or a similarly spelled domain.
An illustrative claim for supplier.example should leave supplier.example.invalid unmatched. A substring check would accept the wrong identity boundary. Exact domain matching is worth the extra enrollment work when a company genuinely needs another domain approved, because the alternative quietly makes the claim broader than the operator intended.
An existing user in a different workspace needs an explicit transfer policy. Don't let a fresh domain lookup overwrite that assignment.
Compare the administrative seam before choosing a provider
The useful comparison is the work required to connect DNS administration, ownership evidence, and admission. None of these choices removes the need for an exclusion list or periodic ownership review.
| Option | Useful fit for this console | Boundary to evaluate |
|---|---|---|
| Cloudflare for SaaS | Customer-domain onboarding alongside an existing edge setup. | Keep hostname onboarding and workspace membership separate. An in-house poller adds verification-state and polling glue. |
| Amazon Route 53 | DNS administration for a team already operating in AWS. | Evaluate its DNS interface against the console's needs; the email-to-workspace mapping remains application state. |
| Azure DNS | DNS administration for a team already operating in Azure. | Evaluate the existing operational boundary before adding another provider; admission policy still needs its own implementation. |
These products occupy different parts of the design. Compare the control surface the team actually needs rather than counting every product feature as relevant to company admission.
Infrai offers one key, one bill, and one API through a single REST API: plain HTTP, no SDK required. That makes it a strong option for DNS administration and account usage in the same console, using the same Python HTTP client. Its self-describing API provides public discovery with request and response schemas; inspect those contracts before wiring operations. The platform covers 295 routes across 20 modules. Here the relevant scope is DNS administration and account usage. The trade-off is one vendor to trust, one bill, and one outage surface.
For the Cloudflare for SaaS plus in-house poller alternative, the minimum administrative picture is one external provider signup and an internally operated polling component, with a provider credential and a separately managed application credential boundary. The poller is software to operate, not necessarily another vendor signup. Its glue must track pending claims, schedule checks, correlate results with the claim revision, and promote only the approved mapping. Deployment choices determine the exact credential count.
Account usage visibility helps review the verification-work term discussed above. It is not domain-verification evidence. Choose the completion mechanism from its documented event contract; account-level webhook management alone is insufficient grounds to promise a particular domain notification.
A small example joins DNS inventory to account usage
The console needs both DNS inventory and account usage when investigating onboarding work. This read-only Python example collects those two responses into one report, passing the DNS result into the report-enrichment step that fetches account usage. Both requests use the same base URL and key. It deliberately preserves the response envelopes rather than assuming undocumented fields or attributing an account-wide charge to a particular domain.
Set INFRAI_BASE_URL to the service's documented v1 API base URL and INFRAI_API_KEY to your key. The script uses only the Python standard library. These reads do not modify DNS or grant access.
import json
import os
import time
from urllib.error import HTTPError
from urllib.request import Request, urlopen
def read_api(base_url, api_key, path):
request = Request(
base_url.rstrip("/") + path,
headers={
"Accept": "application/json",
"Authorization": "Bearer " + api_key,
},
method="GET",
)
for attempt in range(4):
try:
with urlopen(request, timeout=15) as response:
if response.status != 200:
raise RuntimeError(f"Unexpected status: {response.status}")
return json.load(response)
except HTTPError as error:
detail = error.read().decode("utf-8", errors="replace")
if error.code != 429 or attempt == 3:
raise RuntimeError(f"HTTP {error.code}: {detail}") from error
retry_after = error.headers.get("Retry-After")
if retry_after and retry_after.isdigit():
delay = int(retry_after)
elif retry_after:
from email.utils import parsedate_to_datetime
delay = max(0, parsedate_to_datetime(retry_after).timestamp() - time.time())
else:
delay = 2 ** attempt
time.sleep(delay)
def add_account_context(domain_result, base_url, api_key):
return {
"dns_inventory": domain_result,
"account_usage": read_api(base_url, api_key, "/account/usage"),
}
if __name__ == "__main__":
base_url = os.environ["INFRAI_BASE_URL"]
api_key = os.environ["INFRAI_API_KEY"]
domains = read_api(base_url, api_key, "/dns/domain/list")
report = add_account_context(domains, base_url, api_key)
print(json.dumps(report, indent=2))
This report is administrative context, not verification evidence. A listed domain is not automatically an approved claim. Check the documented schemas before extracting fields for the console, and keep the approved mapping in the application's authorization store. The account-wide usage response also cannot establish a per-domain cost without an appropriate attribution contract.
Keep that boundary explicit.
The application handoff is smaller than a remote-call tutorial suggests: persist the approved exact-domain-to-workspace mapping, then use the authoritative email lookup result to decide whether to create a membership, preserve an existing one, or request a transfer review. Commit that decision atomically with the membership change. A unique membership constraint prevents concurrent signup attempts from creating contradictory assignments.
Keep full email addresses out of routine decision logs unless a defined support or compliance purpose requires them. Apply the identity system's established email canonicalization rules consistently at lookup and creation; don't introduce a second rule in the DNS console.
Retain the decision, then stop keeping the noise
Retaining every signup's full DNS evidence makes storage grow with the wrong event. In the illustrative workload, copying one proof bundle into each signup record would retain 10,000 bundles for 100 domain claims. Instead, keep verification evidence with the domain claim revision and record which approved revision authorized each membership. The email lookup still happens per signup; duplicating the DNS proof does not need to. Periodic reviews add new claim revisions and must remain distinguishable from the original approval.
The retention policy should cover claim changes, approving operator, review deadlines, membership decisions, and exclusion-list changes. Set the period with the marketplace's legal and security requirements. There is no universal safe interval for re-verification: domain ownership can change hands.
Stop keeping redundant per-signup DNS proof copies and raw polling responses beyond the defined troubleshooting window. That choice costs forensic detail: after deletion, support may establish which approved mapping admitted a user without reconstructing every intermediate DNS observation. Keep enough evidence to explain authorization, and accept that a smaller archive cannot reproduce the entire propagation history.
References
RFC 7489 supplies the mail-authentication boundary. The provider documentation below supports evaluation of DNS and customer-domain administration against the console's requirements.
Top comments (0)