-
Notifications
You must be signed in to change notification settings - Fork 189
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
Add RLS for new Supabase tables (Github, Quotes) #3433
Conversation
You need to delete the whole volume for the It is kind of cumbersome, but hey, it is what it is 😅 If you want, you can open an issue that could address this situation. We would need to discuss on how to actually approach this. |
@joelazwar, we have a meeting at 1 on Teams about migrations with Prisma to talk about how to edit the existing schema. To add RLS with it, you would make a migration file and put your RLS into it and apply the migration. The init scripts won't be run again because the DB has already been initialized. I doubt that the volumes data can be deleted. |
Sorry, I missed the meeting, I was afk. So should we just add the RLS policies manually in the our dev Supabase environments? Also reading up on the prisms stuff, currently |
Going to close this in favor of #3418 |
Why did we close this? We still need to run this migration I think, right? |
Reopened with migration script for Prisma |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We introduce _prisma_migrations
table used by Prisma in #3418, I think you can enable RLS on that too with no select and update for all because only Prisma uses it and it has a password to access the DB.
@DukeManh Seems like it doesn't exist or maybe hidden. https://github.com/Seneca-CDOT/telescope/runs/5991956564?check_suite_focus=true
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joelazwar, I see, there is no underlying _migrations
table to enable RLS on. We can enable RLS manually using the studio on staging/production if we need to.
fix enable RLS query trailing space reformated solution to migrate db with prisma fix missing semicolons missed one edit db-migration container script
Issue This PR Addresses
fix #3408
Type of Change
Description
Adds read level functionality, and restricts altering and updating for all users (github-* tables, and quotes table)
Steps to test the PR
pnpm services:start
Checklist