Object storage public read does not work for some folders

We have created a private bucket for object storage. Then we decided to change it to public. Changing to public works for some of the folders in the bucket bu does not work for some folders in the same bucket. This is a serious problem we face in the production environment.

We are using Django 3.1 and we have django-storages loaded in the backend. We have added
AWS_DEFAULT_ACL = 'public-read'
AWS_QUERYSTRING_AUTH = False

parameters to settings.py to move from private to public in the images.

Any idea for the situation.

Best Regards

1 Reply

Access control is per-object. I don't believe that changing the bucket's ACL automatically updates the permissions of existing objects within the bucket.

You will need to manually change the ACL of each object, or download and re-upload the objects with the right ACL.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct