You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Providers like DigitalOcean don't recursively apply 'x-amz-acl': 'public-read' even if the created bucket has that option applied. This means when using any other S3 provider, deep links to an public-read marked bucket won't work and result in Access Denied.
To Reproduce
Steps to reproduce:
Create a Digital Ocean S3 Space and activate the CDN functionality
Connect the S3 the standard way with by adapting the Docker config
Create a public bucket and hence a public file within Supabase Studio
Try to use the CDN deeplink to access the file: Access Denied
Expected behavior
File should be accessible by giving it the 'x-amz-acl': 'public-read' header on file level.
Important: Pitfalls
As one can change the bucket from being private to public and vise versa this header must be recursively added and removed when the bucket publicity changes.
Additional context
I wanted to implement this and found the respective files but in this one I'm not confident in pushing so I'm happy for a quick 15mins call (you can contact me in Slack).
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
Providers like DigitalOcean don't recursively apply
'x-amz-acl': 'public-read'
even if the created bucket has that option applied. This means when using any other S3 provider, deep links to anpublic-read
marked bucket won't work and result inAccess Denied
.To Reproduce
Steps to reproduce:
Expected behavior
File should be accessible by giving it the
'x-amz-acl': 'public-read'
header on file level.Important: Pitfalls
As one can change the bucket from being private to public and vise versa this header must be recursively added and removed when the bucket publicity changes.
Additional context
I wanted to implement this and found the respective files but in this one I'm not confident in pushing so I'm happy for a quick 15mins call (you can contact me in Slack).
The text was updated successfully, but these errors were encountered: