Document Storage
Component Detail
Infrastructure
medium complexity
backend
0
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Provides the infrastructure layer for object storage of uploaded documents using an S3-compatible provider or Vercel Blob. Generates presigned upload and download URLs with configurable expiry, enforces per-organization storage quotas, and manages lifecycle policies for audit-required document retention. Ensures no large binary payloads traverse the API server.
document-storage
Responsibilities
- Generate short-lived signed PUT URLs for direct client-to-storage uploads
- Generate signed GET URLs for secure, time-limited file downloads
- Enforce retention policies for compliance and audit requirements
- Manage bucket/container configuration and access control policies
Interfaces
generateUploadUrl(String storageKey, String mimeType, int ttlSeconds)
generateDownloadUrl(String storageKey, int ttlSeconds)
deleteObject(String storageKey)
objectExists(String storageKey)
getObjectMetadata(String storageKey)
listObjects(String prefix)