Skip to content

Replace Arweave writes with authenticated Supabase uploads - #1166

Merged
sidneyswift merged 1 commit into
mainfrom
cosmo/supabase-upload-cutover
Oct 26, 2026
Merged

sidneyswift merged 1 commit into
mainfrom
cosmo/supabase-upload-cutover

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add authenticated POST /api/upload backed by existing Supabase public-uploads: authenticate existing accounts before reading multipart, enforce exact-one-file, 4 MiB file/stream bounds, MIME/content screening, server-generated immutable keys, and verified uploader metadata.
  • Replace reachable API Arweave writes for generated/edited images, TXT, knowledge, moment metadata, and Instagram avatar mirroring. Remove the wallet client/writer dependency while preserving historic readers and deprecated response aliases.
  • Preserve public/private visibility: these paths were already public; private Files and release-pack audio remain unchanged. This does not migrate or delete existing assets.

Release sequence

  1. Pending upload contract merged first: Document pending authenticated Supabase uploads docs#9.
  2. Deploy this API before Move public uploads from Arweave to authenticated Supabase API app#2361 removes its local route.
  3. Publish prepared docs follow-up against the actual merged API source and remove pending availability after deployment.

Continues historical API #540 / App #1740 against current main. Workflow-status and other active owner work are untouched.

Verification

  • 129 focused tests and 308 contract tests pass with OS network access denied.
  • Production/build TypeScript and changed runtime/test graph TypeScript pass. Repository-wide TypeScript has existing unrelated test diagnostics; it is not claimed green.
  • Changed-file ESLint, diff checks, extension build, and frozen offline lockfile validation pass.
  • Independent native review: no actionable API findings. Standalone helper authentication failed and is not review evidence.
  • Full suite: 8,355 passing tests, 17 skipped; 1,394 test files passing. External network denied with localhost allowed for the real OAuth HTTP fixture. An earlier fully network-denied run blocked localhost, not application behavior.

No live upload, paid generation, bucket-policy mutation, or hosted account acceptance was performed. MIME signatures are format screening, not malware scanning. Existing public bucket URLs are public to anyone possessing them.

@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 26, 2026 12:27am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 26, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch was successfully deployed

1 active deployment
Preview — ed23c9ca Deployed Oct 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant