Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Supabase bucket and RLS policies for project pitch deck files #226

Open
coderabbitai bot opened this issue Feb 26, 2025 · 3 comments
Open
Assignees
Labels
Backend difficulty: medium This issue requires a moderate to a little challenge effort on complexity feature New requested feature ODBuild Only Dust Build Campaign supabase supabase (database) service related

Comments

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 26, 2025

Overview

We need to configure a Supabase bucket to store project pitch deck files uploaded through the project pitch page. We also need to implement Row Level Security (RLS) policies to ensure secure access to these files.

Requirements

  1. Create a new Supabase bucket called 'project_pitch_decks'
  2. Configure appropriate content types (PDF, PPT, etc.)
  3. Set up RLS policies to:
    • Allow authenticated users to upload files to their own projects
    • Allow only project owners and collaborators to view files
    • Prevent unauthorized access and deletion

Related Issues

Notes

  • The UI for file uploads has been implemented in PR Feat/pitch and story view #220
  • The project_pitch table will reference files stored in this bucket
  • Maximum file size should be limited to 10MB as implemented in the UI
@AndlerRL AndlerRL added difficulty: medium This issue requires a moderate to a little challenge effort on complexity supabase supabase (database) service related Backend ODBuild Only Dust Build Campaign feature New requested feature labels Feb 26, 2025
@Godsmiracle001
Copy link

I'm interested in working on this issue as I have hands-on experience with Supabase, PostgreSQL RLS, and secure file storage configurations. I can efficiently set up the project_pitch_decks bucket with the correct content types, implement RLS policies to ensure secure access, and enforce file size limits.

Additionally, I’ll ensure that project owners and collaborators have controlled access while preventing unauthorized actions. Since the UI for file uploads is already implemented, I'll focus on seamless backend integration.

Looking forward to contributing!.

@Kingsuite
Copy link

I'd like to handle this task.

@AndlerRL
Copy link
Member

Hey @Godsmiracle001 how is the issue going? Anything please just let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend difficulty: medium This issue requires a moderate to a little challenge effort on complexity feature New requested feature ODBuild Only Dust Build Campaign supabase supabase (database) service related
Projects
None yet
Development

No branches or pull requests

3 participants