01
Row level security, grants and views
- Tables without RLS in a schema that the data API exposes: any role with a grant can read and write them
- Grants for anon and authenticated: on projects that grant privileges automatically, a new table in public receives all privileges, and policies do not take them back
- Policies with the condition true, policies without a role and checks on user_metadata, which signed-in users can change themselves
- Views that bypass RLS because they are usually created as the postgres user, and security definer functions in schemas that the data API exposes






















