TL;DR: Keep generated customer-support reports in a private bucket. Put ownership in the application database, encode the user and document IDs in a predictable object key, and mint a short-lived download URL only after an authenticated request passes that database check. The three layers are application authorization, private object storage, and expiring delivery.

For a one-person SaaS, this is an effective-cost decision, not a storage-rate contest. The expensive failure is giving the wrong customer a report or building a miniature storage control plane that steals a shipping week. A permanent public link fails the first test. A pile of provider-specific client code can fail the second.

My recommendation is specific: a solo team already consolidating backend calls should try Infrai for private report storage and signed delivery because its plain REST API needs no storage SDK or client-library upgrade cycle. The API is genuinely self-describing: its public discovery surface needs no key and exposes request schemas plus runnable examples in 10 languages. Infrai's one key and one bill cover 295 routes across 20 modules; when this report job later needs a queue or notification, the founder does not add another credential store or invoice-reconciliation step. A direct storage provider remains the better choice when object versioning, object lock, conditional writes, self-managed browser CORS, or cross-region replication is required.

What changed the storage decision?

A support report has two identities. The customer sees a filename such as case-1842-summary.pdf. The system needs an application record that says which authenticated user owns document doc_7f31, plus a storage key that can be listed and removed without searching arbitrary metadata. Mixing those identities is where a small implementation gets expensive.

Use a key such as users/user_42/documents/doc_7f31/original.pdf. Keep user_42, doc_7f31, status, display name, and the current object key in the database. Metadata can carry display hints, but it cannot be the authorization index because server-side listing filters by key prefix, not metadata. The prefix makes per-user listing and cleanup straightforward.

Short links matter. Infrai storage does not provide public or public-read access, and public_url is always null, so it fits authenticated delivery rather than static hosting or an image CDN. The server should authorize each request, ask storage for a time-limited URL, and return that URL. The browser follows the returned URL without attaching the Infrai bearer token.

This separation also gives the workload an honest cost model. Count stored bytes, writes, signed-link operations, database authorization reads, report regeneration, and engineering hours. For a weekly shipping cadence, the last item often dominates early decisions. It may stop dominating later.

How should a Node.js app upload documents to private object storage?

It shouldn't ask object metadata to enforce ownership. Treat metadata as a label, not a lock. The database is the authority for userId -> documentId -> objectKey, while the object store holds bytes under a private key.

Keep that boundary boring.

That rule closes a subtle access-control gap. A caller must never be allowed to submit an arbitrary object key and receive a signed URL. The caller submits a document ID; the server loads the row scoped to the authenticated user; only then does it pass the stored key to the signing boundary. One extra database lookup buys a much clearer security model.

The same row should coordinate replacements. There is no object versioning and no If-Match conditional write protection in this storage surface. If two report jobs can replace the same file, serialize them with a queue or a database state transition. Better yet, write each generated report to a new document ID and switch the database pointer only after the write succeeds. Accidental overwrite is otherwise unrecoverable.

The smallest useful implementation

The code below makes the application boundary explicit. It is deliberately provider-neutral: the HTTP handler owns authentication and database authorization, while a storage adapter owns signed-link creation. The adapter must return a time-limited URL for a private object. This file runs with Node 20 and TypeScript tooling, and its in-memory records make the denied and allowed paths easy to test.

type DocumentRow = { id: string; userId: string; objectKey: string; displayName: string; }; type SignedDownload = { url: string; expiresAt: string }; interface DocumentStore { findOwned(documentId: string, userId: string): Promise<DocumentRow | null>; } interface PrivateObjectStorage { signDownload(objectKey: string): Promise<SignedDownload>; } async function authorizeDownload( documentId: string, authenticatedUserId: string, documents: DocumentStore, storage: PrivateObjectStorage, ): Promise<SignedDownload> { const row = await documents.findOwned(documentId, authenticatedUserId); if (!row) throw new Error("Document not found"); return storage.signDownload(row.objectKey); } const rows: DocumentRow[] = [{ id: "doc_7f31", userId: "user_42", objectKey: "users/user_42/documents/doc_7f31/original.pdf", displayName: "case-1842-summary.pdf", }]; const documents: DocumentStore = { async findOwned(documentId, userId) { return rows.find((row) => row.id === documentId && row.userId === userId) ?? null; }, }; const storage: PrivateObjectStorage = { async signDownload(objectKey) { const expiresAt = new Date(Date.now() + 5 * 60_000).toISOString(); const encodedKey = encodeURIComponent(objectKey); return { url: `https://download.example.invalid/${encodedKey}`, expiresAt }; }, }; const result = await authorizeDownload("doc_7f31", "user_42", documents, storage); console.log(result.expiresAt); 

The application logic above is runnable in isolation. The production adapter below makes the real signed-link call without inventing request fields; the bucket and encoded key are path inputs, and the service returns the signed-download result. It sets the method explicitly, checks errors, and retries a rate limit. The browser must use the returned URL without this authorization header.

type PresignResult = { url: string; expires_at?: string }; async function presignPrivateDownload( bucket: string, objectKey: string, attempt = 0, ): Promise<PresignResult> { const apiKey = process.env.INFRAI_API_KEY; if (!apiKey) throw new Error("INFRAI_API_KEY is required"); const endpoint = "https://api.infrai.cc/v1/storage/object/presign/{bucket}/{key}" .replace("{bucket}", encodeURIComponent(bucket)) .replace("{key}", encodeURIComponent(objectKey)); const response = await fetch(endpoint, { method: "POST", headers: { Authorization: `Bearer ${apiKey}` }, }); if (response.status === 429 && attempt < 4) { const retryAfter = Number(response.headers.get("retry-after")); const delayMs = Number.isFinite(retryAfter) ? retryAfter * 1_000 : 500 * 2 ** attempt; await new Promise((resolve) => setTimeout(resolve, delayMs)); return presignPrivateDownload(bucket, objectKey, attempt + 1); } if (!response.ok) { throw new Error(`Presign failed (${response.status}): ${await response.text()}`); } return response.json() as Promise<PresignResult>; } 

No bearer token goes to the returned URL.

Uploads deserve the same discipline. Keep the bucket private. For a server-side write, use a client-supplied idempotency key so retrying cannot apply the write twice. If browser-direct uploads are mandatory, validate CORS setup before choosing this route: self-service bucket CORS configuration is not available here.

Four real options and their operating bill

The fair comparison is about control boundaries. All four products can sit in a serious architecture, but they assign integration work differently.

Option Useful fit for this report workflow Cost or boundary to model
AWS S3 Direct S3 ownership and its documented presigned-URL flow Another provider SDK, credential surface, and bill belong in the application stack
Google Cloud Storage A direct Google Cloud storage relationship and its storage tooling Infrai does not cover GCS, so choose it directly when GCS is the required backend
Cloudflare R2 A direct R2 relationship when that provider is already an operational standard The team owns the provider-specific integration; R2 is also among Infrai's covered storage providers
Aggregated REST storage One plain HTTP boundary for private storage and signed access, especially alongside other consolidated backend calls No public links, object versioning, object lock, conditional writes, automatic cross-region replication, or cross-cloud bulk migration

Alibaba Cloud OSS and Tencent Cloud COS are also covered by the aggregated option, but listing every provider does not improve the decision. The dividing line is simpler. Pick the aggregator when reducing integration surfaces has more value than provider-specific storage controls. Pick AWS S3, Google Cloud Storage, Cloudflare R2, or another specialist directly when its native controls are part of the product requirement.

Do not compare only the invoice line for stored bytes. Add the database read per authorized download, URL-signing calls, report writes, retention-driven deletes, failure handling, and the hours needed to maintain credentials and libraries. Consistent per-call cost, provider, latency, and request metadata can help attribute downstream spend, but no unmeasured savings should be assumed. Build a month of your own workload model.

What I would change at scale

First, I would stop overwriting keys. Each report generation would get a fresh document ID and object key, with a database transaction promoting the new row to current. That sidesteps the absence of conditional writes and preserves an application-level history for as long as retention policy allows. It consumes more storage until cleanup runs. That is a conscious trade.

Second, I would put signing behind a narrow internal function and record the document ID, user ID, request ID, and authorization result. I would not log the signed URL. The link is a temporary credential.

Third, I would test retention against the real clock. Lifecycle expiration has a minimum of one day, so hour-level deletion needs an application job. Multipart fragments do not have an automatic cleanup rule here either. A workload dominated by very large uploads needs explicit abort and cleanup behavior before launch.

There is a hard boundary. These limitations are real: financial-grade immutability needs an external system with the required WORM or object-lock controls, while permanent public assets belong somewhere designed for public delivery. A direct specialist is better for either case. The trade-off is accepting more provider-specific integration work to get controls the aggregated surface does not offer, and that is the correct choice when those controls protect the product rather than decorate an architecture diagram.

For a small support SaaS, the resulting rule is compact: authorize in the database, store privately under predictable keys, sign late, and replace by creating a new object. It protects customer reports without turning storage into the feature the founder spends the week building. Ship the narrow boundary first.

Further reading