Choose customer-owned DNS when a logistics customer must retain authority over its hostname; permit workspace auto-join only through a separate, explicit admission policy. A platform-owned zone can support routing and rollback, but a TXT record that the platform writes itself should not count as independent evidence of customer authorization.
TL;DR: Domain-verified workspace access needs three separate decisions: accept TXT proof, bind that proof to a particular workspace, and choose auto-join or manual approval. During a hostname cutover, keep the routing rollback separate from membership changes. Reverting a destination should never silently restore an old admission policy.
RFC 7489 provides a useful, limited precedent: Section 7.1 uses DNS records to authorize delivery of DMARC reports to an external destination. That is a specific authorization for a specific purpose. The workspace design below applies the same discipline of scope; it is a proposed application policy, not a workspace membership protocol defined by DMARC.
Should domain TXT proof enable workspace access without manual approval?
For this design, it authorizes one pending domain claim. It does not authorize every employee, contractor, or dispatcher with a matching email suffix to enter a workspace. Those are different assertions, and the admission service should store them separately.
Consider a hypothetical shipment tracking service moving track.carrier.example from one deployment to another. Its dispatch workspace also accepts membership requests associated with carrier.example. These names have different jobs. The tracking hostname is a routing input; the claimed organization domain is an admission input. Treating a change to the first as proof about the second would give a deployment operation authority over workspace membership.
Keep them separate.
A proposed claim record contains the exact domain, workspace identifier, an unpredictable challenge, and a claim generation. Verification accepts only the challenge issued for that binding. Admission then requires independently authenticated identity evidence and a policy decision. An OTP delivery event is useful operational evidence, but this design does not treat sending a message as evidence that its recipient completed authentication. The verifier must supply the completed identity result.
The deliverability consequence matters: a delayed OTP should leave a request pending or allow an explicit retry path.
It should not weaken the domain policy.
Likewise, a successful email authentication check under DMARC says nothing about entitlement to a shipment workspace; RFC 7489 concerns email authentication policy and reporting, rather than application membership.
Decision record: invariants and failure boundaries
The proposed decision is to prefer a customer-owned zone for a customer domain claim and to make manual approval the initial admission mode. Enable automatic admission only after the workspace owner explicitly chooses it for the exact claimed domain. The trade-off is slower onboarding in exchange for a reviewable boundary while the hostname is moving. For a dispatch team, the inconvenience is visible: someone has to handle the approval queue.
That responsibility needs an owner before cutover.
Four invariants constrain the implementation. A proof belongs to one domain and workspace binding. A route change cannot create a membership. A claim-generation change invalidates decisions prepared under the previous generation. Finally, rollback of routing cannot reactivate an earlier admission policy. These are application requirements, not additional claims about DNS standards.
The failure boundaries follow from those invariants. The DNS verifier produces claim evidence; the identity verifier produces authenticated domain evidence; the policy service decides admission; the membership store commits the result. If verification cannot finish, hold new requests for review. Keep that state distinct from a verified rejection so operators can distinguish an unavailable dependency from a domain that does not match. Existing member revocation is a separate decision and should be recorded explicitly.
| Zone choice | What the proposed proof establishes | Admission consequence | Cutover trade-off |
|---|---|---|---|
| Customer-owned zone | The challenge was published for the customer domain claim | Allow policy evaluation for that exact binding | Customer participation is required for proof updates |
| Platform-owned zone | The platform can publish within its own namespace | Require separate customer authorization before enabling auto-join | Routing and rollback can share one operator, while authorization still needs its own evidence |
The table compares authority, not service quality. Neither ownership model removes the need to authenticate the applicant. A platform namespace can be appropriate for a platform-assigned tracking address; it does not establish who should receive access to a customer's dispatch workspace.
Critical path: bind the decision before creating membership
The Python example deliberately begins after DNS and identity verification. It models the admission decision, with illustrative identifiers and an exact-domain policy. The authenticated domain must come from the identity verifier, never from a form field. The generation must be checked again when the membership transaction commits.
from dataclasses import dataclass
from enum import Enum
class Decision(str, Enum):
REVIEW = "manual_approval"
AUTO_JOIN = "auto_join"
@dataclass(frozen=True)
class Claim:
domain: str
workspace: str
generation: int
proof_verified: bool
customer_authorized: bool
auto_join_enabled: bool
def decide(
claim: Claim,
authenticated_domain: str,
requested_workspace: str,
expected_generation: int,
) -> Decision:
if requested_workspace != claim.workspace:
return Decision.REVIEW
if expected_generation != claim.generation:
return Decision.REVIEW
if authenticated_domain != claim.domain:
return Decision.REVIEW
if not claim.proof_verified or not claim.customer_authorized:
return Decision.REVIEW
if not claim.auto_join_enabled:
return Decision.REVIEW
return Decision.AUTO_JOIN
claim = Claim(
domain="carrier.example",
workspace="dispatch-east",
generation=2,
proof_verified=True,
customer_authorized=True,
auto_join_enabled=False,
)
result = decide(claim, "carrier.example", "dispatch-east", 2)
assert result is Decision.REVIEW
Here, customer_authorized represents a separately recorded authorization decision. It is not inferred from zone ownership or a matching email suffix. proof_verified represents accepted evidence for the current claim generation; it is not a permanent flag that survives every later change. The caller must supply consistently normalized domain values under a defined input policy. The example accepts exact matches only and deliberately leaves subdomain inheritance out of scope.
There is a race worth testing. A worker can read generation 2, calculate AUTO_JOIN, and then attempt a write after an operator has suspended admission and advanced the claim generation. A pure function cannot prevent that write. The production membership transaction must condition its commit on the same current generation and admission policy, and reject the stale decision if either changed. In an illustrative interleaving, the operator advances the claim to generation 3 while the worker still holds generation 2. The commit fails its condition even though the identity verification succeeded. That is the intended outcome: identity evidence remains useful, but the authorization decision must be recalculated under the current policy. Retrying should read the new state. It should not reuse the old authorization result.
That extra condition adds storage coordination to the critical path. It earns its place because the alternative makes an operator's suspension advisory.
Cut over the hostname without rolling back authorization
Use two independently recorded changes: the routing change for track.carrier.example and the admission-policy change for carrier.example. In this proposed runbook, review the customer authorization and current proof first, keep new admissions in manual mode through the route change, and exercise the old routing destination before relying on it as the rollback target. Enable auto-join afterward only if that remains the chosen policy.
A route rollback restores the selected destination. Memberships created during the cutover remain auditable membership events; they do not disappear as a side effect of routing. If access must be revoked, record that action separately. Otherwise an incident responder could believe that reverting the hostname also removed an unwanted member.
For predeployment checks, exercise a stale claim generation, a workspace mismatch, a missing proof result, and a policy suspension between decision and commit. Also test an OTP that completes after the routing rollback. Its authentication result must still meet the current admission policy. These are acceptance criteria for this design, not reported test results.
Record the claim generation, workspace, decision reason, and policy actor in the audit event. Measure pending-review age and verification failures separately from message delivery failures, so a growing approval queue does not get mistaken for an email outage. Restrict access to these records and set retention through the organization's compliance process. Avoid placing OTP values or challenge secrets in routine logs. The operational cost to evaluate is the staffing and coordination required to keep those queues and approvals usable.
Rejected option: make every matching address an automatic member
Reject unconditional auto-join for this cutover. It couples a domain-level proof to an individual access decision without preserving the explicit approval boundary. It also makes the zone choice misleading: a platform publishing its own TXT challenge would appear to approve customer access.
Automatic admission still has a valid use case. A workspace owner may deliberately allow authenticated identities from one exact, authorized domain to join a workspace whose access scope suits that policy. Keep the binding current, make the choice explicit, and enforce it again at commit. For the logistics cutover, choose zone ownership according to who must retain domain authority, and choose admission mode according to who may enter the dispatch workspace. Rollback should change the route it names.
References
- RFC 7489, Domain-based Message Authentication, Reporting, and Conformance (DMARC), including Section 7.1 on external report-destination authorization: https://datatracker.ietf.org/doc/html/rfc7489
Top comments (0)