[feature] s3: add option to treat bucket as public #1458
Labels
config
Something needs to be made configurable, or there's a config issue
enhancement
New feature or request
security
Is your feature request related to a problem ?
there have been recurring issues with signed S3 URL caches not being invalidated properly.
at the same time, for my specific usecase (public profile, no private media at all), it makes no sense to set my S3 bucket to private (it is in fact set to public right now).
Describe the solution you'd like.
for people with the same usecase as me, it would be nice to have an option like
storage-s3-public-bucket
with a default of false.public buckets don't require URL signing, so generating a valid link that also doesn't expire becomes simple string concatenation, which means they probably don't even need to be cached because they're really cheap to create, and if they do get cached, it would be impossible for them to get invalidated, also fixing the caching problem.
Describe alternatives you've considered.
looking at the existing settings, the only real option to permanently fix this would be enabling the
storage-s3-proxy
, unnecessarily creating load on my server.the other alternative is obviously "get the caching right and never break it again", but that sounds a bit like proposing to "just write memory safe C" :p
Additional context.
right now, on 0.7.0-rc1, the URL cache seems broken for avatars, leading to my profile looking like this:
and it's also broken for all federated avatars, not just mine, so I can watch the avatars of my follows slowly disappear as the URLs expire.
I've had similar issues (which have been fixed since) with custom emoji before.
The text was updated successfully, but these errors were encountered: