Opening SELECT to completely unauthenticated requests #3764
-
ProblemI'd like to use PostgREST/Supabase to expose open data, e.g. data that should be freely available for download by anyone. I understand the need to protect from INSERT queries for instance. But I would like to open SELECT GET requests completely and as far as I understand, there is no way to do this right now? SolutionNot sure how that could be done using the current architecture. Maybe a new anonymous user? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You are looking for You can grant any modification (INSERT etc.) privileges only to a privileged user, which needs to authenticate to do those things. |
Beta Was this translation helpful? Give feedback.
You are looking for
db-anon-role
. Set this to the role of your database user for anonymous access. Only GRANT SELECT on the respective tables to this user.You can grant any modification (INSERT etc.) privileges only to a privileged user, which needs to authenticate to do those things.