Skip to content

Add a note to the docs about existing apps for ActiveStorage public access#40878

Merged
rafaelfranca merged 1 commit intorails:masterfrom
connorshea:activestorage-public-access-docs
Dec 18, 2020
Merged

Add a note to the docs about existing apps for ActiveStorage public access#40878
rafaelfranca merged 1 commit intorails:masterfrom
connorshea:activestorage-public-access-docs

Conversation

@connorshea
Copy link
Contributor

Summary

Every existing file needs to be individually updated to have a publicly-readable ACL (at least, this is true of S3 and DigitalOcean Spaces), otherwise the files will fail to load.

This bit me when I was trying to introduce public: true in my production Rails app.

I realize the docs already mention consulting the cloud service docs to ensure that your bucket is "properly configured for public access", but that's rather vague and I didn't really understand the potential issues with individual files' public read permissions from the S3 docs.

Just trying to prevent someone else from having the same problem I did :)

Every existing file needs to be individually updated to have a
publicly-readable ACL (at least, this is true of S3 and DigitalOcean
Spaces), otherwise the files will fail to load.

This bit me when I was trying to introduce `public: true` in my
production Rails app.

I realize the docs already mention consulting the cloud service docs to
ensure that your bucket is "properly configured for public access", but
that's rather vague and I didn't really understand the potential issues
with individual files' public read permissions from the S3 docs.
@rails-bot rails-bot bot added the docs label Dec 18, 2020
@rafaelfranca rafaelfranca merged commit bc78b65 into rails:master Dec 18, 2020
rafaelfranca added a commit that referenced this pull request Dec 18, 2020
…-docs

Add a note to the docs about existing apps for ActiveStorage public access
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants