Storage - Bucket Read Specific File vs Bucket List Files #26220
Unanswered
NicolasAlmerge
asked this question in
Questions
Replies: 1 comment 9 replies
-
I can't think of a way. Unlike normal tables you can't use rpc to bypass rls and get a single row. You could make sure there is a random UUID in the pathname. Use the public URL for that with a public bucket, and then block select so list does not work... |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
For storage RLS, is it possible to differentiate between reading one file and listing all files within a bucket. For example, I want users to read any file as long as they have the path to that file, but not list the content of the bucket. Right now, adding a policy for select will enable both. Is it possible to only enable accessing any file given its path but not listing?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions