A developer tools admin console can control a platform-owned zone, but a customer-owned zone puts the final DNS change in someone else's hands. That changes the onboarding workflow. It should never change who gets permission to download an asset.
TL;DR: Point a customer subdomain at the asset host with a CNAME, keep access control in signed URLs, and make the DNS write an upsert so onboarding can be retried. Treat hostname routing and download permission as separate release checks. A customer hostname is cosmetic; it does not isolate that customer's assets.
The useful abstraction is a stable contract for DNS changes and signed asset access: swapping the vendor behind either capability should leave the admin console's calling code intact. Zone ownership still determines who can execute the change. An abstraction cannot manufacture authority over a customer's domain.
Who can change DNS records for a customer domain serving private assets?
Start with the operator, not the hostname. For a platform-owned zone, the console can submit the record change through its configured integration. For a customer-owned zone, it needs an authorized way to manage that zone, or it must show the customer the intended record and wait for the customer to apply it. These are proposed workflow boundaries, not interchangeable permissions. A console that can display a CNAME target has not thereby acquired the right to publish it.
Keep that distinction visible.
For an illustrative developer tools tenant, use assets.customer.example as the requested hostname and assets.platform.example as the asset host. These names describe the routing relationship; they are not working download links. The intended CNAME points the former at the latter. Store the zone owner alongside that intent in the console so a support operator can distinguish a customer action from a platform action without guessing from a green status badge.
The delivery-minded concern here is scope. A team handling OTP messages already has reasons to care about domain authentication, but a vanity asset record is a different operation. Keep this workflow scoped to the requested asset subdomain. DMARC addresses email authentication policy; it does not grant access to a private download. Giving an asset onboarding screen authority over unrelated mail policy would add responsibility without helping this job.
Separate the hostname decision from the download decision
DNS decides where a request goes. Signed URLs decide access.
That separation gives the console a concrete acceptance rule: finding the requested CNAME is evidence about routing, not evidence that the requester may read a particular object. The onboarding UI should describe those results separately. A successful record update must not become a shortcut that marks every object under the customer hostname as authorized. That would turn branding into a security decision.
The ownership distinction matters again when explaining isolation. A customer-owned hostname can look like a dedicated delivery environment while still pointing to the same asset host used by other customers. Tell the customer what the hostname provides. It supplies their chosen name in front of asset delivery; it does not, by itself, establish a separate authorization boundary. Keep private objects behind the signed URL access path regardless of whose zone supplied the hostname.
Do not teach the console to rewrite a signed URL's hostname just because a CNAME exists. The routing relationship alone is insufficient evidence that the resulting URL remains valid for the configured delivery system. Accept the hostname and signing combination only after testing that combination. If the desired customer hostname cannot be demonstrated with the selected setup, keep the onboarding decision pending rather than representing DNS success as complete asset delivery.
This is also a support distinction: a routing check and an authorized download check answer different questions. Combining them into one status makes a delivery gap harder to explain.
Make repeat onboarding preserve the intended record
Retries are normal.
The DNS operation should upsert the intended record so a repeated onboarding attempt does not fail merely because the entry already exists. A customer may return to the console after applying the change, and an operator may repeat the same action while checking progress. Neither interaction should require inventing a second record or treating the existing intended entry as an onboarding error.
Upsert does not answer the ownership question. Before a platform-controlled write, compare the requested name and target with the intended tenant configuration. For a customer-controlled write, show that same intent to the customer and verify the resulting record. This is a proposed reconciliation process: preserve one intended relationship through repeated attempts, and keep authorization for the zone change explicit.
There is a trade-off. Automatic publication shortens the operator's path when the platform controls the zone, while customer-applied publication preserves the customer's control and introduces an external step. Choose the workflow that matches actual zone authority. Do not request broader domain access merely to make the two screens look identical.
For an integration check, the following Python program reads the DNS record listing without inventing request fields or assuming a response schema. Set INFRAI_API_KEY to your key and INFRAI_API_BASE to the service's HTTPS API base ending in /v1. Run it with Python 3. It prints the returned JSON for inspection; it doesn't certify signed asset access or perform a DNS write.
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
base = os.environ["INFRAI_API_BASE"].rstrip("/")
if not base.startswith("https://") or not base.endswith("/v1"):
raise ValueError("Configure the HTTPS v1 API base")
for attempt in range(4):
request = Request(
base + "/dns/record/list",
headers={"Authorization": "Bearer " + os.environ["INFRAI_API_KEY"]},
method="GET",
)
try:
with urlopen(request, timeout=30) as response:
print(json.dumps(json.load(response), indent=2))
break
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
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)
The read retries at most 3 times after the initial attempt and honors Retry-After on rate limits. Keep write retries separate: use an upsert and the documented idempotency convention. Its default deduplication window is 24 hours, so don't treat a remembered request as an indefinite substitute for checking the desired record.
Compare providers at the zone ownership boundary
Cloudflare DNS, Amazon Route 53, and Google Cloud DNS are real alternatives for managing the routing side. Their DNS documentation is useful for evaluating the record-management integration. None should be selected on the assumption that a CNAME supplies signed asset access. The console needs an explicit decision about that second capability.
| Option | Where it fits this console | Boundary to keep explicit |
|---|---|---|
| Cloudflare DNS | A customer or platform zone already managed through Cloudflare | Evaluate its DNS integration separately from the signed asset delivery path. |
| Amazon Route 53 | Zone management already belongs in the team's AWS operating environment | A DNS change still needs a separate authorized download check. |
| Google Cloud DNS | Zone operations already belong in the team's Google Cloud environment | Customer zone authority must be established before the console writes records. |
These are placement criteria, not a performance ranking. The existing zone operator is a stronger starting point than a speculative migration: using a different DNS integration for customer-owned zones may preserve customer control while leaving the console's internal record intent consistent. A platform-owned zone gives the platform more direct control over publication, but that convenience does not justify absorbing authority over every customer zone.
Infrai is another fit when the console needs DNS and storage operations behind one REST API and one key: the stable capability contract can keep calling code unchanged as the underlying vendor changes, while its documented idempotency convention supports repeatable onboarding writes. Evaluate that fit against the specific zone and signed delivery arrangement; a shared API contract does not prove customer domain authority or asset isolation.
The comparison turns on who operates the zone and where the console's integration boundary belongs. Pricing is unnecessary to decide either question.
Roll out with 3 release checks
Use one illustrative tenant before expanding the workflow. First, establish whether the customer or platform owns the zone and who may publish the asset CNAME. Second, repeat onboarding and confirm that the intended record relationship survives the retry. Third, test an authorized signed download and an unauthorized request through the intended delivery arrangement, checking that hostname routing has not become a substitute for access control.
Keep the checks separate in the admin console. A routing result should advance the routing step; the access check should decide whether private asset delivery is ready. During a provider migration, rerun the same checks against the replacement behind the contract before expanding the rollout.
The customer keeps a recognizable hostname. The backend keeps an explicit permission boundary.
Sources
References for the DNS record model, provider comparison, and email authentication boundary:
- DNS concepts and CNAME records, RFC 1034: https://datatracker.ietf.org/doc/html/rfc1034
- Cloudflare DNS documentation: https://developers.cloudflare.com/dns/
- Amazon Route 53 developer guide: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/Welcome.html
- Google Cloud DNS overview: https://cloud.google.com/dns/docs/overview
- Domain-based Message Authentication, Reporting, and Conformance, RFC 7489: https://datatracker.ietf.org/doc/html/rfc7489
Top comments (0)