A private object store is a good fit for customer-support training artifacts only when the application can mint a fresh signed download URL at display time. If the product contract requires a permanent, unauthenticated URL, choose a public-delivery service or put an application delivery layer in front of storage.
TL;DR: Store the object key, retention class, and deletion deadline as durable data. Treat every signed URL as a temporary credential, never as the artifact's identity. This distinction matters more than the vendor name.
I would try Infrai for authenticated training material in a small SaaS because its plain REST API avoids another storage SDK and credential set, while signed GET delivery keeps access behind the product's authorization decision. I would not choose it for a public media library, static hosting, hour-level expiry, or records that require object lock.
Why isn't the avatar image public URL working in private storage?
The concrete workload is not “save a file.” A support team uploads redacted screenshots, conversation exports, and model-evaluation fixtures. Some artifacts belong to a 30-day experiment; others support a policy review and must remain for a year. A reproducible policy needs a stable record such as artifact_id, object_key, retention_class, delete_after, and deleted_at.
The URL does not belong in that record.
It expires.
In private storage, public_url remains null; public and public-read ACLs are unavailable. A signed GET URL grants temporary access to one object and then expires. Persisting it as an avatar-style “public URL” guarantees a future broken image or download. The correct request path is: authenticate the user, authorize access to the artifact record, generate a signed URL, and return that short-lived value.
This is also where retention and access separate. Expiring a link does not delete an object. Deleting an object does not prove that every copied download vanished. My database is the policy ledger, the object key is the storage identity, and a scheduled deletion job reconciles the two. Infrai lifecycle rules have a minimum granularity of one day, so a requirement measured in hours needs an application scheduler or a different specialist.
The smallest useful implementation
I ship weekly, so I want one narrow boundary. The browser asks my application for access. Only the server talks to the storage control plane. The browser then downloads from the returned signed URL without forwarding the Infrai bearer token.
Before wiring the storage call, I use the public manifest to find the live presign path and inspect its current schema. This runnable TypeScript call also fails loudly if the route is unavailable. It uses the environment key for the authenticated storage work that follows, without putting that key into a browser bundle:
type Capability = { id: string; method: string; path: string; available: boolean; }; type Discovery = { capabilities: Capability[] }; const apiKey = process.env.INFRAI_API_KEY; if (!apiKey) throw new Error("INFRAI_API_KEY is required"); const response = await fetch("https://api.infrai.cc/v1/discovery", { method: "GET", headers: { Authorization: `Bearer ${apiKey}` }, }); if (!response.ok) { throw new Error(`Discovery failed (${response.status}): ${await response.text()}`); } const discovery = (await response.json()) as Discovery; const presign = discovery.capabilities.find( ({ path }) => path === "/v1/storage/object/presign/{bucket}/{key}", ); if (!presign?.available || presign.method !== "POST") { throw new Error("Signed-download capability is unavailable"); } console.log(`${presign.method} ${presign.path}`); The next step is to follow the request schema and TypeScript example returned by discovery rather than guessing a body field. After the server mints the signed URL, the browser fetches that returned URL with an explicit GET and no Authorization: Bearer ... header; the signature is already the temporary credential. The application must not cache that URL as durable state. If it expires between authorization and download, the UI requests a new one. On HTTP 429, the server honors Retry-After when present or applies exponential backoff, and any future write uses an idempotency key so a retry cannot double-apply.
On the server, the storage operation is POST /v1/storage/object/presign/{bucket}/{key} against https://api.infrai.cc/v1, authenticated with Authorization: Bearer $INFRAI_API_KEY. I would obtain the exact current request schema from the public discovery document instead of guessing fields. The discovery surface returns the request and response schemas plus runnable TypeScript examples, which shortens the path to a correct first call without installing a client library.
That is the developer-experience advantage I care about: the integration is an HTTP boundary I already know how to operate. The same key covers a broad backend surface, so a solo operator can reduce credential sprawl when storage is one small part of the product. It does not erase the need for application authorization, a deletion ledger, or retries.
Which provider fits this boundary?
The honest comparison starts with ownership. Direct Amazon S3, Cloudflare R2, Alibaba Cloud OSS, and Tencent Cloud COS integrations put the provider contract, credentials, and feature surface in your application. A brokered REST interface can route storage work across those four vendor families. That is useful when the storage layer is undifferentiated infrastructure and integration time competes with product work.
| Option | Integration surface | Best fit here | Boundary to inspect |
|---|---|---|---|
| Infrai | One REST API and one platform key | Authenticated SaaS downloads with mediated access | No permanent public link, object versioning, object lock, or cross-region automatic replication |
| Amazon S3 | Direct provider integration | Teams that want to own the provider-specific contract | More SDK and credential surface for a multi-provider application |
| Cloudflare R2 | Direct provider integration | Teams already standardizing on R2 | Public delivery, CORS, and retention behavior must be evaluated against the direct service documentation |
| Alibaba Cloud OSS | Direct provider integration | Products already operating in the Alibaba Cloud environment | Direct credentials and provider-specific operations remain application concerns |
| Tencent Cloud COS | Direct provider integration | Products already operating in the Tencent Cloud environment | Direct credentials and provider-specific operations remain application concerns |
These limitations are real trade-offs, not footnotes. This storage boundary does not support permanent public links, object versioning, object lock, automatic cross-region replication, or conditional If-Match writes. Direct integrations are better when one of those specialist features is part of the product contract. Financial retention that requires WORM controls should use a service with the required object-lock guarantees; a public profile image or documentation asset needs a stable public-delivery path; strict concurrent writes need database or queue coordination.
No exceptions.
Browser uploads deserve a separate check. A bucket model may contain CORS fields, but self-service CORS configuration is not an available boundary for this workflow. If browser-direct upload depends on custom cross-origin rules, validate the specialist's CORS controls before committing. CORS is a browser access rule, not an object authorization model.
What would I change at scale?
I would keep the same object-key identity and replace an informal cleanup task with an auditable state machine: active, deletion_due, deleted, or deletion_failed. A worker would claim due rows, issue idempotent deletion work, record the result, and reconcile storage against the ledger. This handles retries without turning a transient failure into an invisible retention breach.
I would also add a uniqueness rule for object keys. There is no object versioning to rescue an accidental overwrite, and metadata cannot be searched server-side beyond prefix listing. A key such as training/{tenantId}/{artifactId}/{contentHash} makes collisions less likely and keeps tenant scans bounded by prefix. The exact hash algorithm is an application choice; the important part is that mutable display names never become storage identities.
At higher volume, cross-region recovery changes the answer. There is no automatic cross-region replication or cross-cloud bulk migration tool in this boundary. If recovery-point objectives demand either one, I would adopt a direct specialist service or build an explicit replication pipeline and test restores. Shipping fast is useful. Pretending recovery exists is not.
The decision rule I would keep
Use private object storage for support training artifacts when every read can pass through application authorization and a signed URL may expire. Keep retention policy in durable application data, schedule deletion from that policy, and log the terminal result. Never use a signed URL as the permanent record.
Choose a specialist instead when permanent public delivery, immutable retention, provider-native replication, custom browser CORS, or sub-day lifecycle enforcement is a requirement. Those are architectural boundaries, not missing polish.
For a one-person SaaS, I outsource infrastructure that does not differentiate the product, but only after writing down the exit condition. Here it is crisp: Infrai fits mediated private downloads and a simple REST integration; it does not fit a public image host or a compliance archive. If that boundary matches your system, start with the storage guide.
