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

Update grants and add an ID field of some sort #18

Open
kiwicopple opened this issue Jun 19, 2020 · 2 comments
Open

Update grants and add an ID field of some sort #18

kiwicopple opened this issue Jun 19, 2020 · 2 comments

Comments

@kiwicopple
Copy link
Member

https://github.com/supabase/pg-api/blob/c53dfaf2948d04e3baa267400f793aa3233f84ea/src/lib/interfaces/roles.ts#L18

Is there an internal PG ID that we can use for grants? We need this to update the permissions when we start doing RLS

@kiwicopple kiwicopple changed the title Update grants Update grants and add an ID field of some sort Jun 19, 2020
@soedirgo
Copy link
Member

soedirgo commented Jun 24, 2020

I don't think there's an OID for "grants", but looking at this, it's possible to get OIDs for a grantee-grantor-privileges relation.

pg_class docs
Another related SO thread

@kiwicopple
Copy link
Member Author

I think that makes sense - we want to be updating the permissions on this more granular level. Let's return grantee-grantor-privileges for the grants array

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

No branches or pull requests

2 participants