AbdallahShaban
CDCloudflare Developers
•Created by Raymond on 4/4/2024 in #general-help
R2 - Multiple Buckets or One?
Yea - I've been talking to lots of developers and it seems to be a common pattern - so I am trying to build a solution that is a bit more standardized to ease that heavy lifting. Would you be open to chatting about it? I can DM you
40 replies
CDCloudflare Developers
•Created by Raymond on 4/4/2024 in #general-help
R2 - Multiple Buckets or One?
got it - so your workflow is:
1. a user uploads a file
2. You create an entry into the Database on supabase of their id and the object they uploaded to R2
3. When another user tries to delete the object, you check in the CF workers if they have access or the right permission.
Is that about right? I am building a solution to make this a bit easier in the future for developers - so trying to learn a bit more about how developers set things up right now.
40 replies
CDCloudflare Developers
•Created by Raymond on 4/4/2024 in #general-help
R2 - Multiple Buckets or One?
and where do you keep information on which users have access to either write or delete? do you have a mapping of that somewhere that you have created?
40 replies
CDCloudflare Developers
•Created by Raymond on 4/4/2024 in #general-help
R2 - Multiple Buckets or One?
I would assume you also want to handle use cases for users wanting to delete/update their images - how are you handling access controls to that?
40 replies
CDCloudflare Developers
•Created by Raymond on 4/4/2024 in #general-help
R2 - Multiple Buckets or One?
Hey @Raymond - how are you handling security with the workers? Are all of the users in that system part of the same "tenent"?
40 replies