1
Separate Point Queries and Listing for Permissions
Source: supabase/supabase#36584 · opened by @NicolasAlmerge
Hello!
I think it would be great to be able to separate permissions to perform point queries (based on the primary key for example) and listing rows. This would be equivalent to the get/list permissions in Firebase. For example, for a user's table, I may want the user to be able to read any data of a user I have the id, but not be able to list all the users.
Basically, I want to allow queries like those:
But not like those:
Right now it is impossible to do it without Postgres functions, and it is impossible to use this technique for storage.
I think it would be great to be able to separate permissions to perform point queries (based on the primary key for example) and listing rows. This would be equivalent to the get/list permissions in Firebase. For example, for a user's table, I may want the user to be able to read any data of a user I have the id, but not be able to list all the users.
Basically, I want to allow queries like those:
But not like those:
Right now it is impossible to do it without Postgres functions, and it is impossible to use this technique for storage.
No pledges yet. Be the first to back this.
Comments
Similar requests
Redesign of the Queries tab
4 votes · 0 comments
Enhancing Developer Experience with Client-side Raw SQL Queries
3 votes · 0 comments
Support for MongoDB / other databases.
6 votes · 0 comments
Make SQL queries auto naming and saving optional
2 votes · 0 comments
Make saved SQL Editor queries available via Management API
1 vote · 0 comments
No comments yet.