Services Plugins FAQs

AWS File Uploader authenticated files?

Hello,

Does the AWS File Uploader support authenticated files? I would like to use AWS to host videos, but I would only want authenticated users in my Bubble app accessing the videos. I wouldn’t want them to be able to copy the URLs and share them outside of the app. Is this possible?

Thanks,
Chris

Hello, @smith.hill
Thanks for your question.

Please note that this scenario is possible by configuring the Bucket CORS and policies.

For Access Permissions (CORS, Bucket Policy, Access Control List, etc.) please follow Amazon AWS’s Setup Documentation to better understand your personal requirements.

To be more accurate, please check the plugin’s documentation, especially the “Additional security” section:

In the ‘Bucket Policy’ area you can configure the rules for security and privacy via Bucket Policy. Take a look at the “Action”, “Resource” and “Condition” fields where we grant access for reading the objects from our bucket. In this case, we are granting read file access only to users from our application domain, so if a user gets an image URL and tries to open it in a new tab or a new window, the bucket policy will block this request because we stated in the privacy rules that the link can be opened only from our domain:

Unfortunately, I can’t provide you with an exact example of the settings due to the fact, that it is related not to the plugin functionality, but to the AWS settings.

Hope that information above will be helpful.
In case of any additional plugin-related questions will appear - let me know.

Best regards,