{"catalogRevision":"cat_4ed85052aa3156ce","recipeId":"page:migrate:supabase-storage-bucket:tenant-scoped-object-prefixes","recipeRevision":"r1","canonicalPath":"/migrate/supabase-storage-bucket/tenant-scoped-object-prefixes","label":"Migrate Supabase Storage bucket: Tenant-scoped object prefixes","title":"How to move tenant-scoped object prefixes from a Supabase Storage bucket to Ample","family":"Migration guide","summary":"Move object storage from Supabase Storage bucket to Ample, one component at a time. Destination verified on Ample: every tenant's objects stored under tenants/<id>/ in a private bucket with an ownership row per object, reads refused for keys outside the caller's prefix or not owned (cross=forbidden), and a prefix-bound listing returning only that tenant's objects (own=1). Source procedure: Inventory objects through the Supabase Storage API or dashboard. Move separately: enforce authorization in the app and stream private objects through it; signed uploads use `ample bucket upload-url`, and image transformations move into the app. Cutover: Switch the app's S3_* environment to the Ample bucket with a redeploy, verify reads and writes, keep Supabase Storage read-only until confirmed. Rollback: keep the source untouched until you confirm; nothing at the source is changed or deleted by this guide.","representativeQueries":["Migrate Supabase Storage bucket: Tenant-scoped object prefixes","Where can I host Tenant-scoped object prefixes?","I need a component-scoped export/import or reconfiguration procedure for Tenant-scoped object prefixes, with compatibility checks, verification and rollback."],"breadcrumbIds":["discovery","migration","migration:object-and-cdn-sources","migration:supabase-storage-bucket","page:migrate:supabase-storage-bucket:tenant-scoped-object-prefixes"],"breadcrumbs":[{"id":"discovery","label":"Agent hosting discovery","canonicalPath":"/discover/discovery","kind":"root"},{"id":"migration","label":"Migration sources by component","canonicalPath":"/discover/migration","kind":"facet"},{"id":"migration:object-and-cdn-sources","label":"Object and CDN sources","canonicalPath":"/discover/migration/object-and-cdn-sources","kind":"group"},{"id":"migration:supabase-storage-bucket","label":"Supabase Storage bucket","canonicalPath":"/discover/migration/supabase-storage-bucket","kind":"atom"},{"id":"page:migrate:supabase-storage-bucket:tenant-scoped-object-prefixes","label":"Migrate Supabase Storage bucket: Tenant-scoped object prefixes","canonicalPath":"/migrate/supabase-storage-bucket/tenant-scoped-object-prefixes","kind":"recipe"}],"parentIds":["migration:supabase-storage-bucket","pattern:tenant-scoped-object-prefixes","intent:migrate-objects"],"parents":[{"id":"migration:supabase-storage-bucket","label":"Supabase Storage bucket","canonicalPath":"/discover/migration/supabase-storage-bucket","kind":"atom"},{"id":"pattern:tenant-scoped-object-prefixes","label":"Tenant-scoped object prefixes","canonicalPath":"/discover/pattern/tenant-scoped-object-prefixes","kind":"atom"},{"id":"intent:migrate-objects","label":"Migrate objects","canonicalPath":"/discover/intent/migrate-objects","kind":"atom"}],"resourceRequirements":["primitive:s3-compatible-object-storage"],"infrastructureRequirements":[{"primitiveId":"primitive:s3-compatible-object-storage","label":"S3-compatible object storage","canonicalPath":"/discover/primitive/s3-compatible-object-storage","status":"verified","summary":"Buckets speak the S3 API with SigV4 credentials Ample Computer issues; `ample bucket upload-url` returns a presigned upload URL. PutObject and GetObject are checked by canary."}],"workload":"Tenant-scoped object prefixes","migrationSource":"Supabase Storage bucket","releaseStatus":"published","supportStatus":"verified","executionStatus":"unbound","docsOnly":true,"prerequisites":["Authorized access to the Supabase Storage bucket source and its export tooling","An inventory of every component in scope and out of scope","A validated backup or copy before any cutover","An Ample account token with servers:write, buckets:write"],"testedConfiguration":{"template":"node-22","runtime":"node","size":"s-1vcpu-1gb","install":"npm install","build":"npm run build --if-present","start":"npm run start"},"inputSchema":null,"outputSchema":null,"workflowSteps":[{"title":"Inventory the source","body":"List what Supabase Storage bucket provides beyond the component you are moving. Plan these separately: enforce authorization in the app and stream private objects through it; signed uploads use `ample bucket upload-url`, and image transformations move into the app."},{"title":"Source step 1","body":"Inventory objects through the Supabase Storage API or dashboard"},{"title":"Source step 2","body":"Copy objects with `rclone sync` from the Supabase S3-compatible endpoint (or a scripted download) to the Ample bucket endpoint using the issued credentials"},{"title":"Source step 3","body":"Verify a sample of objects by size and checksum after the copy"},{"title":"Create the destination bucket and copy","body":"Create the bucket, copy with rclone or the S3 CLI in path-style mode using the issued credentials, then pass the credentials to the app as encrypted S3_* variables.","command":"ample bucket create --name <bucket-name>"},{"title":"Validate before cutover","body":"Run the app's own checks and, for data, compare counts and checksums; the example checks are the pattern self-tests (/p/tenant-scoped-object-prefixes)."},{"title":"Cut over","body":"Switch the app's S3_* environment to the Ample bucket with a redeploy, verify reads and writes, keep Supabase Storage read-only until confirmed."},{"title":"Rollback","body":"Point DNS or configuration back to the source. The source was never modified; deletion is a separate, user-executed step after validation."}],"examples":[{"title":"Express pattern fixture (destination)","description":"Verified destination basis: tenant-scoped object prefixes.","sourceRef":"tests/deploy-canaries/express-patterns"}],"successChecks":[{"description":"destination app responds on its public URL","kind":"http_get","path":"/","expect":"ample canary express patterns"},{"description":"tenant-scoped-object-prefixes check from the destination example","kind":"http_get","path":"/p/tenant-scoped-object-prefixes","expect":"see the pattern fixture checks"},{"description":"data or object counts and checksums match the source","kind":"manual","expect":"operator comparison before cutover"}],"limitations":["A step-by-step guide: each stage is an ordinary `ample deploy`, `ample database` or `ample bucket` command you run.","The destination side was verified on Ample with the pattern fixture; the source-side steps use Supabase Storage bucket's standard tooling.","Plan separately: enforce authorization in the app and stream private objects through it; signed uploads use `ample bucket upload-url`, and image transformations move into the app.","Verified on the node-22 template at s-1vcpu-1gb.","Buckets speak the standard S3 API; copy objects with rclone or the AWS CLI in path-style mode."],"costEstimate":{"currency":"USD","monthlyAmount":5.0,"authoritative":true,"basis":"size prices from pricing.toml (loaded by the API) at build revision ba5ea2e06a17dbb17c83e1089c1f5b78a3cc12b7-dirty","components":[{"name":"app server","size":"s-1vcpu-1gb","quantity":1.0,"monthlyAmount":5.0}],"note":"Upper-bound monthly price of the tested sizes at the destination."},"evidenceSummary":[{"kind":"canary_run","summary":"Destination side verified: the Express pattern fixture deployed on Ample (npm install, npm run build --if-present, npm run start on the node-22 template) and its checks passed (every tenant's objects stored under tenants/<id>/ in a private bucket with an ownership row per object, reads refused for keys outside the caller's prefix or not owned (cross=forbidden), and a prefix-bound listing returning only that tenant's objects (own=1)). The source-side export from Supabase Storage bucket uses the vendor's standard tooling.","observedAt":"2026-11-05T22:38:23Z","implementationRevision":"da3e37255e5a","expiresAt":"2027-05-04T22:38:23Z","scope":{"checks":["/p/tenant-scoped-object-prefixes"],"destinationOnly":true,"template":"node-22"}}],"lastVerifiedAt":"2026-11-05T22:38:23Z","mcpBinding":null,"unknowns":[],"formats":{"html":"https://ample.computer/migrate/supabase-storage-bucket/tenant-scoped-object-prefixes","markdown":"https://ample.computer/migrate/supabase-storage-bucket/tenant-scoped-object-prefixes.md","json":"https://api.ample.computer/v1/catalog/recipes/page%3Amigrate%3Asupabase-storage-bucket%3Atenant-scoped-object-prefixes"},"nextActions":[{"actionId":"browse-catalog","label":"Browse the catalog index","operationId":"catalog_index","method":"GET","relativePath":"/v1/catalog","origin":"api","parameters":{},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"search-recipes","label":"Search published recipes by intent, stack and constraints","operationId":"search_recipes","method":"POST","relativePath":"/v1/catalog/search","origin":"api","parameters":{"body":{"limit":5,"query":"Migrate Supabase Storage bucket: Tenant-scoped object prefixes"}},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"plan:page:migrate:supabase-storage-bucket:tenant-scoped-object-prefixes","label":"Prepare a side-effect-free deployment plan for an authorized project","operationId":"plan_deployment","method":"POST","relativePath":"/v1/catalog/plan","origin":"api","parameters":{"body":{"inputs":{},"projectId":"<workspace or server id you own>","recipeId":"page:migrate:supabase-storage-bucket:tenant-scoped-object-prefixes","recipeRevision":"r1"}},"requiresAuthentication":true,"requiresApproval":false},{"actionId":"auth-setup","label":"Read the existing agent authentication setup","operationId":"existing_auth_setup","method":"GET","relativePath":"/mcp/setup","origin":"api","parameters":{},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:migration:supabase-storage-bucket","label":"Browse Supabase Storage bucket","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/migration%3Asupabase-storage-bucket","origin":"api","parameters":{"nodeId":"migration:supabase-storage-bucket"},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:pattern:tenant-scoped-object-prefixes","label":"Browse Tenant-scoped object prefixes","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/pattern%3Atenant-scoped-object-prefixes","origin":"api","parameters":{"nodeId":"pattern:tenant-scoped-object-prefixes"},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:intent:migrate-objects","label":"Browse Migrate objects","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/intent%3Amigrate-objects","origin":"api","parameters":{"nodeId":"intent:migrate-objects"},"requiresAuthentication":false,"requiresApproval":false}]}