Repository navigation
0.46.0
Rocketpod catches up with Rocketflare 0.46.0. Uploads go through /api/uploads in three steps (reserve, PUT, confirm). With STORAGE_DIRECT_UPLOADS on, the browser uploads straight to S3 on a presigned URL. Plugins gain uploadTargets.
Breaking:
- The multipart
POST /api/files?scope=andPOST /api/ai/documents/uploadare removed. api.upload(target, file, { fields })replacesapi.upload(url, formData)in the UI, andApiClient.upload(target, …)replacespostFormin the CLI.apiBodyLimittakes one options object.
Migration: 0020_kit-pending-uploads adds pending_uploads, a tenant table with its RLS policy. Its user_id is nullable, with ON DELETE SET NULL.
What's new:
- Uploads:
POST /api/uploadsruns every check the old routes ran and answers aPUTURL.POST /api/uploads/:id/confirmchecks the stored object against what was declared.- A nightly prune deletes expired uploads and their objects.
- Where the bytes go:
- Off (the default): the server's own upload URL, streamed to the store, up to 50 MiB, with a 256-bit single-use token.
- On: a presigned S3
PutObjectwith its type, length andIf-None-Match: *signed. It needs anhttpsendpoint and a bucket CORS rule (docs/DEPLOY.md§ Direct uploads). - Under
STORAGE_TENANT_FENCE=on, the URL is signed with the tenant's own session.
- Plugins:
ServerPlugin.uploadTargets, with a requiredpermissionand a key rule.confirmgets the tenant'sstorage, plusbucketas a deprecated alias so a Rocketflare 0.46 plugin compiles.uploadPathsanduploadLimitsstill work, but are deprecated.
- Fixes:
- A document upload keeps its visibility and groups.
detach.shno longer exits 141 on a long history.
Verified on the real Node stack: separate web and worker processes against their own Postgres and S3 gateway.
- Direct uploads on and off: the store refuses a wrong type or length and a second write.
- A confirm mismatch, and the nightly prune.
- The fence in
shadowmode.STORAGE_TENANT_FENCE=onneeds real STS and was not tested locally.
Porting note: docs/upgrades/0.46.0.md. Rocketflare change by change: docs/FORK.md.