A shared marketplace namespace concentrates administrative authority, while customer ownership puts the DNS boundary outside the marketplace's sole control. For a marketplace assigning every tenant a subdomain automatically, choose platform-owned zones when the platform owns the parent domain and can keep zone deletion outside tenant automation. TL;DR: make tenant offboarding a narrowly authorized record change; require a separate destructive operation guard for deleting the enclosing DNS zone. Choose customer-owned zones when customers must retain authority over their domains, and make that ownership boundary explicit in the pipeline.
The number in the title is an illustrative workload: 100 tenants. It is not a measured deployment or a capacity claim. The relevant constraint is that one tenant's departure must not authorize removing the DNS container used by the other 99. This article examines the evidence retained at that decision boundary, because an observability bill can grow without making a destructive decision any easier to reconstruct.
How should automated offboarding prevent accidental DNS zone deletion?
Start with the resource the marketplace promises to create: a tenant subdomain. In a hypothetical namespace, tenant-042.market.example belongs to tenant 042, while market.example is the platform's shared parent. These names are illustrative. Do not infer a particular DNS provider, resource identifier, or API from them. The proposed authorization rule is precise: tenant automation may request removal of that tenant's managed records, but its credential must not authorize deletion of the shared zone.
Ownership needs two fields in the design: who controls the domain and who may operate on this particular resource. A customer-owned domain does not, by itself, specify the permissions of a marketplace credential. Conversely, platform ownership is not a reason to give every provisioning worker authority over every DNS object. Treat the desired permission boundary as a requirement to verify in the selected implementation. If it cannot express that boundary, keep destructive zone operations out of that worker entirely.
Scope comes first.
A dangerous offboarding design accepts a tenant identifier, looks up a zone identifier, and treats the result as sufficient authority for deletion. The lookup may correctly identify the shared zone; the authorization decision is still wrong. Require the request to declare its operation type and target scope independently. The guard should reject a zone-deletion request submitted through the tenant-record workflow, even when the tenant lookup succeeds. This is a proposed invariant, not a claim about a particular service's default behavior.
The distinction also changes incident analysis. A successful lookup proves that the system found an object. It does not prove that deleting that object is consistent with the tenant's ownership or with the requested business action. Keep those conclusions separate in both the execution path and its audit event.
Derive the guard from ownership and current dependencies
For the separate zone-retirement workflow, require a concrete deletion intent identifying the owner, immutable target identifier where available, expected scope, and requesting actor. Bind review to that intent. Immediately before execution, recheck the target and the current dependency inventory; if either differs from what was reviewed, require a new decision. A time limit on approval is useful as a policy choice, but elapsed time alone cannot establish that the dependencies stayed unchanged.
Consider the hypothetical 100-tenant parent zone. A request to retire tenant 042 should never enter zone retirement. A request to retire the marketplace namespace should enter it, but should remain blocked while the inventory still associates active tenants with that namespace. An empty tenant inventory is only one prerequisite. The review also needs to account for other records and services associated with the zone. Define who maintains that inventory and what happens when its freshness cannot be established. The conservative design is to defer execution until the evidence is available.
Mail deserves an explicit dependency check. RFC 7489 specifies DMARC policy discovery through DNS TXT records at names beginning with _dmarc and describes organizational-domain policy discovery. Its policy records therefore belong in the inventory when the affected namespace carries mail policy. A DMARC report is not authorization to delete a zone, and an absence of reports does not establish that a namespace has no dependencies. Keep the inference narrow: mail authentication policy is another reason to inspect the zone's contents before approving retirement.
This is also a boundary for recovery claims. A stored inventory is evidence of intended configuration; it should not be presented as proof that restoring that configuration will restore every dependent service. Before deployment, define a restoration procedure and exercise it in an isolated namespace. Record what the exercise actually verified. Avoid promising an instantaneous rollback without evidence.
Count evidence before collecting every execution detail
The audit record should explain a decision with a small, specified set of fields: operation identifier, actor reference, ownership class, target reference, inventory version, policy version, decision, reason, and execution result. That is a proposed schema. Its purpose is to let an investigator connect the reviewed intent to the operation that actually ran without requiring a complete copy of every request and response.
Keep unique target references in event data rather than making them dimensions of every aggregate metric. For the illustrative workload, a metric broken down by 100 tenant values, 2 ownership classes, and 3 decision outcomes has an upper bound of 600 combinations before any additional dimensions. This is simple multiplication under an explicit assumption that all combinations can occur; it is not a measurement of occupied series. Adding unique operation identifiers as metric labels defeats the purpose of that bounded aggregation.
Retention needs equally explicit arithmetic. Suppose the design budget allows 200 decision events per day, each stored as 1,000 bytes, for 30 days. The event payload alone totals 6,000,000 bytes. Indexes, replication, compression, and storage metadata are outside that calculation. These are planning assumptions, not observed traffic or a quoted storage price. They make a useful question answerable: how much evidence are we choosing to retain, and for what investigation window?
Preserve the decisions.
For this design, retain every destructive authorization decision and its execution result for the chosen audit window. Sample repetitive diagnostic detail separately. Sampling creates a deliberate loss of detail, so document which questions the retained record can still answer. If a rejected deletion request disappears into a sampled stream, the team may be unable to distinguish an enforced boundary from an operation that never reached the guard. Keeping that decision event is a better trade than retaining verbose payloads from every harmless status check.
Compare ownership choices and roll out the boundary
The comparison follows from the authority model. Both choices need deletion controls; they place responsibility for approving and verifying a retirement in different hands.
The trade-off is concentrated responsibility. Platform ownership is not suitable when customers require control over the parent domain; choose customer ownership instead. Its limitation for this workflow is that the marketplace cannot treat its own internal retirement approval as the complete authorization decision. Customer authority must be represented too.
| Decision | Platform-owned zone | Customer-owned zone |
|---|---|---|
| Default for automatic tenant subdomains | Prefer when the marketplace controls the parent namespace | Prefer when customer domain authority is a requirement |
| Proposed tenant offboarding scope | Only that tenant's managed records | Only records explicitly authorized for marketplace management |
| Separate zone-retirement decision | Platform owner reviews shared dependencies | Domain owner must be part of the authorization design |
| Evidence the marketplace should retain | Reviewed intent, dependency version, guard decision, result | The same evidence plus the relevant customer authorization reference |
For the 100-tenant scenario, platform ownership is the clearer default because the marketplace is assigning names inside its own namespace. That recommendation depends on separating tenant record management from zone retirement. If those operations share an unrestricted credential and an interchangeable deletion path, the proposed safety argument has not been implemented. Customer ownership becomes the appropriate choice when customer authority over the parent domain is part of the service requirement; it should not be selected merely to move deletion accountability elsewhere.
Roll out the guard first in an isolated namespace. Test a tenant offboarding request against the shared parent, a retirement request with active dependencies, a request whose inventory changed after review, and an authorized retirement of an unused test namespace. Check both the decision and the resulting state. A refusal in the application log is insufficient evidence if another execution path can still perform the operation.
Then migrate tenant automation to the restricted path and verify the old execution identity no longer has the authority that the design removes. Keep zone retirement separate, with retained decision evidence and a defined restoration procedure. For this marketplace, that is the condition under which platform-owned zones earn the preference: automatic naming remains convenient, and retiring one tenant does not carry authority to retire the namespace.
References
RFC 7489 supports the discussion of DMARC policy discovery and DNS TXT policy records. The permission model, audit schema, arithmetic examples, and rollout checks above are proposed engineering choices, not behaviors attributed to that specification.
Sources
- RFC 7489, Domain-based Message Authentication, Reporting, and Conformance (DMARC): https://datatracker.ietf.org/doc/html/rfc7489
Top comments (0)