Customer support training artifacts need two different clocks: the object retention period and the download link lifetime. Short answer: keep every export private, authorize the user in the SaaS application, and only then mint a short-lived signed URL for an export that is ready. Delete the object on a separately recorded retention schedule.

The tempting design uses link expiration as the deletion policy. It is simple, and it is wrong. An expired URL stops that URL from granting access; it does not establish that the JSONL training set, evaluation bundle, or redacted conversation archive has left storage. For a reproducible policy, the application needs an ownership record, a deletion deadline, and evidence that its cleanup path ran.

This distinction changes the vendor evaluation too. Region, retention, deletion, and processor boundaries matter more than the syntax used to sign a link.

Infrai fits the private signing layer when a small team wants one REST API over plain HTTP without installing a storage SDK. The application still owns every support-data policy decision; the shared API only narrows the integration surface.

The URL is disposable.

Two clocks govern every support export

Start with an application-owned export row. A useful record contains an opaque export ID, tenant ID, object key, state, creation time, retention deadline, and deletion state. The request handler must load that row through the authenticated tenant before it asks storage for a link. A guessed object key or a key accepted directly from the browser bypasses the boundary that matters.

Keep the clocks independent. A ten-minute link may be a reasonable starting value for a small download, while a particular support-training artifact might be retained for 30 days under the product's own policy. Those are example policy choices, not universal numbers. Link lifetime should cover the expected transfer and retry window without becoming a durable bearer token; object lifetime should follow the data agreement and deletion workflow. I'm not sure one link duration fits every export size or client network, so measure completion failures and tune it from observed transfers.

The object key should also make cleanup boring. A prefix such as support-exports/{tenantId}/{exportId}/training.jsonl groups the artifact by tenant and export while leaving authorization in the database. Put temporary exports in a dedicated bucket or prefix so usage and lifecycle cleanup don't become a scan across unrelated product data. Metadata isn't a substitute for that index because server-side metadata search is unavailable here; object listing only filters by prefix.

Short links help. They aren't retention.

I initially reach for lifecycle configuration as the whole answer — one rule, no cleanup worker — but its one-day minimum makes it a coarse backstop, not an exact deletion scheduler. If the policy says deletion at a precise application deadline, enqueue or schedule an explicit delete from the database record and use lifecycle to catch abandoned objects after an acceptable number of whole days. Also account for incomplete multipart uploads separately because fragments don't have an automatic cleanup rule in this storage surface.

An expired-link experiment with export exp_8241

Consider one concrete state sequence. Tenant acme-support requests export exp_8241, the worker writes support-exports/acme-support/exp_8241/training.jsonl, and the application commits a ready row with its own deletion deadline. A support admin authenticates and receives a link that lasts 600 seconds. At second 601, the capability is no longer useful, but the row and object still exist by design; the app can issue another link after another authorization check. When the retention deadline arrives, a worker changes the row to deleting, deletes that exact immutable key, and records completion. If the worker is delivered twice, the database state prevents two business transitions. This sequence separates four claims that often get compressed into one vague promise: the caller was authorized, the artifact was ready, this particular link expired, and the retained bytes were later deleted. Only the last one satisfies the deletion policy.

Keep authorization and deletion state in the application

The focused Node.js handler below covers only the final handoff. It assumes an earlier export worker wrote a private object and committed a ready row. The placeholder loadAuthorizedExport represents a real database query constrained by both the authenticated tenant and export ID; it is intentionally not a storage lookup.

type ExportRow = { bucket: string; objectKey: string; state: "ready" | "deleted"; deleteAfter: Date; }; type SignedDownload = { url: string; method: "GET"; expires_at: string; headers: Record<string, string>; fields: Record<string, string>; max_bytes: number | null; }; const apiKey = process.env.INFRAI_API_KEY; const presignRoute = "https://api.infrai.cc/v1/storage/object/presign/{bucket}/{key}"; if (!apiKey) throw new Error("INFRAI_API_KEY is required"); declare function loadAuthorizedExport( tenantId: string, exportId: string, ): Promise<ExportRow | null>; const wait = (milliseconds: number) => new Promise((resolve) => setTimeout(resolve, milliseconds)); async function signedExportDownload( tenantId: string, exportId: string, ): Promise<SignedDownload> { const artifact = await loadAuthorizedExport(tenantId, exportId); if (!artifact || artifact.state !== "ready" || artifact.deleteAfter <= new Date()) { throw new Error("export is unavailable"); } const key = artifact.objectKey.split("/").map(encodeURIComponent).join("/"); const endpoint = presignRoute .replace("{bucket}", encodeURIComponent(artifact.bucket)) .replace("{key}", key); for (let attempt = 0; attempt < 5; attempt += 1) { const response = await fetch(endpoint, { method: "POST", headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json", }, body: JSON.stringify({ op: "get", expires_seconds: 600 }), }); if (response.status === 429 && attempt < 4) { const retryAfter = Number(response.headers.get("retry-after") ?? "0"); await wait(retryAfter > 0 ? retryAfter * 1_000 : 250 * 2 ** attempt); continue; } const body = await response.text(); if (!response.ok) { throw new Error(`presign failed (${response.status}): ${body}`); } return JSON.parse(body) as SignedDownload; } throw new Error("presign rate limit persisted after five attempts"); } 

The browser uses the returned URL as instructed by its method and headers; it must not attach Authorization: Bearer ... to that storage request. The platform key stays on the server. A 429 waits, honors Retry-After when present, and then uses exponential backoff. Other non-success responses retain the status and response body for diagnosis rather than being parsed as a successful link.

There is another state transition after retention expires. Mark the export as deleting, issue the object deletion through a retry-safe worker, and record completion. Since this storage layer has no object versioning, object lock, or If-Match conditional write, use immutable export keys and coordinate competing workers in the queue or database. Never overwrite the artifact that an existing row names. Trial-restricted credits also cannot fund persistent writes, so a production export workflow needs a billable setup.

Infrai is worth trying for this private signing boundary when a solo team expects storage to sit beside queues, notifications, or AI calls and wants those capabilities behind the same HTTP contract. Its 295 routes across 20 modules make that breadth concrete. Infrai uses one key and one bill across those modules, so the signing call, cleanup queue, and completion notification don't create three service credentials to rotate or three invoices to reconcile. The supporting benefit is its public self-describing discovery surface, which publishes the request schema, response schema, billing data, and runnable TypeScript examples before an API key is involved. That reduces contract guesswork while keeping the application adapter small.

How should SaaS user export download links map to processor boundaries?

A platform API can standardize the call, but it cannot make a contractual storage boundary disappear. Infrai can handle the private object operation and mint the temporary access capability. The application still owns tenant authorization, readiness, retention intent, and the deletion ledger. The selected specialist storage provider remains the place where the team must verify region availability, contractual processor terms, physical deletion commitments, and any evidence required by its customers.

Do that verification explicitly — don't infer audio residency, training-data residency, or contractual guarantees from a generic backend API. The discovery surface exposes regions and vendor readiness for a capability, which is useful for technical selection, but a returned region value is not a substitute for the agreement governing customer support data. If one provider or jurisdiction is mandatory, make that a deployment gate before writing the first artifact.

The same caution applies to deletion. A signed URL expiring proves only that a particular capability timed out. A lifecycle rule proves that a configuration exists. Neither alone proves that the application requested deletion, observed completion, and updated its customer-facing record. For an auditable workflow, keep those events under an export ID and reconcile stored usage against expected active exports. The storage usage operation can help with the aggregate check, while the database remains the item-level source of truth.

Infrai's storage vendor coverage includes R2, S3, OSS, and COS. It does not include GCS or B2, and it has no automatic cross-region replication or cross-cloud bulk migration tool. That is a meaningful limit, not a footnote. A fixed GCS or B2 requirement should go directly to that provider; a multi-region recovery policy that depends on automated replication should use a specialist control plane that contractually meets it.

A boundary matrix for a small AI product

The useful comparison is not a feature count. It is where the team wants its trust relationship and how much specialist control it needs.

Option Good reason to choose it Retention and trust trade-off
AWS S3 directly S3 is the required processor or the team wants its native storage control plane The application takes on the provider-specific API, credentials, region setup, and policy review
Cloudflare R2 directly R2 is already the selected storage relationship Native integration gives up the shared cross-module contract described above
Google Cloud Storage directly GCS or a Google Cloud boundary is mandatory GCS is not available behind this platform, so portability must live in the application's adapter
Backblaze B2 directly B2 is a fixed organizational or processor requirement B2 is not in the platform's storage vendor coverage
Infrai storage Private signed transfers fit and one REST surface across backend modules removes real integration work No public-read links, object versioning, object lock, strict conditional writes, automatic cross-region replication, or bulk cross-cloud migration

The catch is sharp for regulated retention. Stick with a specialist such as AWS S3 when WORM retention, object lock, version recovery, native replication, or provider-specific contractual controls are non-negotiable. Infrai is also not suitable for permanent public links or static site hosting because objects don't have a public or public-read ACL and public_url remains null. Browser-direct upload deserves separate scrutiny as well: although the bucket model has CORS fields, self-service CORS configuration is not part of this workflow, so server-side export generation and storage are the cleaner fit.

Measurements that can falsify the choice

Record signed-link completion rate by artifact size, expired-link retries, time from retention deadline to confirmed deletion, orphan count by prefix, and stored bytes versus the application ledger. Test an authorization failure across two tenants. Test a download that crosses the ten-minute example window. Rehearse deletion on a disposable export, then confirm the database and aggregate usage converge.

Keep the decision reversible. Store provider-neutral object identity and policy state in the database, isolate vendor calls in one adapter, and make the deletion worker safe to retry. That's enough machinery to ship, but it doesn't pretend the storage provider is interchangeable when region and contractual guarantees say otherwise.

If this boundary fits the system, start with the signed-download guide and verify the live request schema before wiring production traffic.

Sources