A customer-owned zone changes who can approve a DNS migration. It doesn't change who should receive a private game asset. TL;DR: point the customer's subdomain at the asset host with a CNAME, keep signed URLs as the access control, and upsert the record so onboarding can safely run again. A vanity hostname grants neither authorization nor asset isolation.
Consider a bounded production exercise: a game publisher wants its asset zone moved off a registrar-specific API, while a platform worker may deliver the onboarding task twice. This is a hypothetical runbook scenario, not a reported incident. The customer owns assets.guild.example; the platform owns the asset delivery service. The dangerous assumption is that a successful DNS job proves the private asset is ready for an authorized player. It proves much less.
Hold the cutover.
The lesson is to keep two acceptance decisions separate: the record routes to the intended host, and access to the object still requires a valid signed URL. A repeated onboarding task must converge on the same desired record. It must not turn a cosmetic hostname into a tenant security boundary.
Who should own DNS records that serve assets from a customer domain?
Start with authority, not API compatibility. A customer-owned zone requires an authorized customer change or delegated permission; platform ownership means the platform controls that zone's changes. Record the owner alongside the desired CNAME so a queue retry cannot silently reinterpret ownership. The registrar API being retired is an implementation dependency. Permission to modify the zone is a separate decision.
Compare services on the responsibility they take over. DNS management and signed asset delivery belong in different columns of the decision, even when one platform supplies both. These are role comparisons, not claims that the products share an interchangeable API.
| Option | Relevant role in this handover | Boundary to retain |
|---|---|---|
| Cloudflare DNS | Manage the record in a zone operated through Cloudflare. | DNS alone does not authorize a private object request; assess asset delivery separately. |
| Amazon Route 53 | Manage records in a hosted zone through AWS tooling. | Zone management and the application's signed URL decision remain separate responsibilities. |
| Google Cloud DNS | Manage records in a managed zone through Google Cloud tooling. | Moving DNS administration does not establish tenant isolation or authorize downloads. |
Choose among these by who will hold zone permissions and operate record changes after the registrar integration is removed. For a customer-owned zone, the customer's existing DNS operator may be the least disruptive place to leave authority. For a platform-owned zone, the platform can choose a provider around its own operational responsibilities. Neither choice makes an unsigned request acceptable.
Infrai is another fit when the platform wants DNS, storage, and scheduling through a single REST API with one API key: 295 routes across 20 modules give the workflow broad backend coverage under consistent conventions, so adding a capability doesn't require another independent integration. Its documented idempotency convention also gives repeated onboarding work a defined deduplication mechanism, with a default window of 24 hours; persistent desired-state reconciliation is still necessary beyond that window.
The trade-off is concrete. A shared interface reduces integration surface, while a provider-specific interface may fit the zone owner's existing controls more directly. A customer who retains the zone needn't adopt the platform's broader backend interface merely to publish a CNAME.
Keep their authority explicit.
Step 1: Upsert the approved record with a stable change identity
Treat onboarding as desired-state reconciliation. Upsert the record, then check the resulting state. Don't interpret an existing entry as evidence that the whole onboarding task should fail, and don't interpret a successful earlier delivery as evidence that today's record still matches the plan.
For the exercise, the desired record is a CNAME from assets.guild.example to delivery.platform.example. Both names are illustrative. Record the actual owner and approval before submitting a write. An API credential is not a substitute for that approval.
The following standalone Go program submits one approved upsert. Save it as main.go and run go run main.go after setting the environment inputs described below. It reads the request body from a file rather than inventing provider-specific record fields. Obtain the exact current request schema from the provider's public discovery documentation, and prepare an approved body matching that schema. This prerequisite matters: a portable workflow does not imply a portable JSON payload.
Set DNS_API_BASE_URL to the provider's documented HTTPS API base ending in /v1, DNS_UPSERT_FILE to the approved JSON file, INFRAI_API_KEY to the API credential, and DNS_CHANGE_ID to a persistent identifier for this intended change. Preserve the identifier across worker redeliveries. A new target needs a new approved change identity.
package main import ( "bytes" "context" "encoding/json" "fmt" "io" "log" "net/http" "net/url" "os" "strconv" "strings" "time" ) func retryDelay(raw string, fallback time.Duration) time.Duration { if seconds, err := strconv.Atoi(raw); err == nil && seconds >= 0 { return time.Duration(seconds) * time.Second } if date, err := http.ParseTime(raw); err == nil { if wait := time.Until(date); wait > 0 { return wait } } return fallback } func run() error { base := strings.TrimRight(os.Getenv("DNS_API_BASE_URL"), "/") u, err := url.Parse(base) if err != nil || u.Scheme != "https" || u.Host == "" || u.Path != "/v1" || u.RawQuery != "" || u.Fragment != "" || u.User != nil { return fmt.Errorf("set the documented HTTPS API base ending in /v1") } key := os.Getenv("INFRAI_API_KEY") changeID := os.Getenv("DNS_CHANGE_ID") if key == "" || changeID == "" { return fmt.Errorf("API key and persistent change ID are required") } body, err := os.ReadFile(os.Getenv("DNS_UPSERT_FILE")) if err != nil { return fmt.Errorf("cannot read the approved upsert file") } if !json.Valid(body) { return fmt.Errorf("upsert file must contain valid JSON") } ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute) defer cancel() client := &http.Client{ Timeout: 15 * time.Second, CheckRedirect: func(_ *http.Request, _ []*http.Request) error { return http.ErrUseLastResponse }, } for attempt := 0; attempt < 4; attempt++ { req, err := http.NewRequestWithContext(ctx, http.MethodPut, base+"/dns/record/upsert", bytes.NewReader(body)) if err != nil { return err } req.Header.Set("Authorization", "Bearer "+key) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", changeID) resp, err := client.Do(req) if err != nil { return fmt.Errorf("write result uncertain; reconcile before replaying") } status := resp.StatusCode retryAfter := resp.Header.Get("Retry-After") responseBody, readErr := io.ReadAll(io.LimitReader(resp.Body, 8192)) resp.Body.Close() if status >= 200 && status < 300 { fmt.Println("Upsert accepted; verify the resulting record before cutover") return nil } if status != http.StatusTooManyRequests { if readErr != nil { return fmt.Errorf("upsert returned HTTP %d; response body unreadable", status) } return fmt.Errorf("upsert returned HTTP %d: %s", status, responseBody) } if attempt == 3 { break } wait := retryDelay(retryAfter, time.Second*time.Duration(1<<attempt)) timer := time.NewTimer(wait) select { case <-ctx.Done(): timer.Stop() return ctx.Err() case <-timer.C: } } return fmt.Errorf("retry budget exhausted; retain the same change ID") } func main() { if err := run(); err != nil { log.Fatal(err) } } The retry budget is 4 attempts, with a request timeout of 15 seconds. These are example settings, not measured service limits.
A rate-limited response backs off, respecting Retry-After; an uncertain transport result stops for reconciliation. The same body and change identity survive every retry within this execution. Persist both outside the process for queue redelivery.
Accept this step only after reading back the intended name, type, and target through the provider's documented interface. An accepted write is not that read-back check. Test replay with the same approved change, and verify that the desired record remains the same.
The failure pattern to watch for is a worker marking the entire customer onboarding complete immediately after a DNS write. In the exercise, suppose the approved CNAME has already been applied when the worker loses its connection before recording completion. The second delivery still carries the same approved name, target, and change identity. Its job is to reconcile that record and continue the unfinished acceptance checks, not to create another onboarding identity or assume the player has been authorized. If someone has deliberately approved a different target in the meantime, replaying the older change needs review against the current desired state; an idempotency key alone cannot decide which approval is current. Separate the DNS result from the signed-access result in the change record, and preserve enough context to identify a stale task. Then a retry can repeat incomplete work without granting access as a side effect or silently treating old intent as new authority.
Completion is conditional.
Step 2: Test signed access before accepting the handover
Keep the object private or signed-only. Obtain a presigned URL through the supported storage interface after the application has authorized the request. Don't replace its hostname by string substitution and assume the signature survives. DNS routing and the URL accepted by a signing system are different contracts; custom-hostname signing and HTTPS support need to be established for the chosen delivery service.
This standalone program checks two URLs supplied by the operator: an unsigned request for the private test object and a valid signed request for that same object. Set UNSIGNED_ASSET_URL and SIGNED_ASSET_URL in the process environment, then run it as a separate main.go with go run main.go. Use a small, dedicated test object. No API credential belongs on either download request.
package main import ( "fmt" "log" "net/http" "net/url" "os" "time" ) func status(client *http.Client, name string) (int, error) { raw := os.Getenv(name) u, err := url.Parse(raw) if err != nil || u.Scheme != "https" || u.Host == "" { return 0, fmt.Errorf("%s must contain an HTTPS test URL", name) } req, err := http.NewRequest(http.MethodGet, raw, nil) if err != nil { return 0, fmt.Errorf("cannot construct %s request", name) } resp, err := client.Do(req) if err != nil { return 0, fmt.Errorf("%s request failed; check connectivity", name) } defer resp.Body.Close() return resp.StatusCode, nil } func main() { client := &http.Client{ Timeout: 15 * time.Second, CheckRedirect: func(_ *http.Request, _ []*http.Request) error { return http.ErrUseLastResponse }, } unsigned, err := status(client, "UNSIGNED_ASSET_URL") if err != nil { log.Fatal(err) } signed, err := status(client, "SIGNED_ASSET_URL") if err != nil { log.Fatal(err) } if unsigned != http.StatusUnauthorized && unsigned != http.StatusForbidden { log.Fatalf("unsigned request needs review: status %d", unsigned) } if signed != http.StatusOK { log.Fatalf("signed request needs review: status %d", signed) } fmt.Println("Access smoke check passed for the supplied test object") } This conservative smoke check accepts explicit denial and a successful signed download. A different documented denial response needs review; it isn't automatically an exposure. Redirects also require review, so the program doesn't follow them. Error messages deliberately omit URL contents because signed query parameters are access credentials.
A passing result covers only those two requests.
Add tests for expired links and an unauthorized customer's attempt to obtain a signature in the actual application test suite. DNS cannot answer either question. Nor does a successful download prove that the bytes belong to the expected customer; verify object identity as part of acceptance.
This advice applies to private gaming assets whose access is controlled by signed URLs. It doesn't prescribe signed access for deliberately public assets, and it doesn't turn a hostname into isolation for mutually untrusted tenants. If customers require isolation, establish that boundary in the asset and authorization design before accepting a vanity domain as complete.
The handover is ready when the authorized zone owner has the intended record, replayed onboarding converges, and the private asset still enforces signed access. Keep those acceptance results separate. They fail for different reasons.
References
These sources cover DNS semantics, the providers' zone-management roles, and signed delivery.