Ask A Question

Notifications

You’re not receiving notifications from this thread.

Digital Ocean Spaces does not respect ACL Public-Read (Active Storage)

Alisson Patrick asked in Rails

Hello guys,

I'm using Rails 6.1 (Edge) and I noticed a possible compatibility issue between Digital Ocean Spaces with the AWS S3 specification.

When we configure the service as "public: true" and upload via direct upload to Active Storage, Digital Ocean Space insists on leaving my upload as private (incorrect behavior).

I did a simple test and point to an AWS S3 Bucket and, when uploading the same file, it became PUBLIC on S3 (correct behavior).

I opened a support request at Digital Ocean and explained the situation, but they still haven't given me any feedback.

Has anyone else faced this type of problem at Digital Ocean Spaces?

Reply

I have just encountered the same problem. I'm not sure there is a way to do this that doesn't involve hacking ActiveStorage to send acl headers

Reply

I guess Digital Ocean uses Minio (https://min.io) and this issue is caused by some S3 API incompatibility. Unfortunately I needed to use AWS S3 as I dont like the monkey patch way.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.