Skip to content

Conversation

@jesseplusplus
Copy link
Owner

@jesseplusplus jesseplusplus commented Nov 5, 2025

Expiring signed urls for media attachments were added in #9 as a potential way to secure media for private posts, but this scheme does not play well on its own with federation since remote servers do not refetch a new url when the old one expires. Since the first implementation, the media proxy has been added.

This PR:

  • removes the default 7 day expires_in option when getting any paperclip attachment url (while continuing to sign the url with the default s3 expiration)
  • moves the expires_in option to the media proxy and sets it for a shorter duration of 15 minutes
  • updates the way the media proxy redirects so that the s3 urls don't get cached and can be regenerated when there is a refetch

@jesseplusplus jesseplusplus force-pushed the remove-expiring-media-urls branch from 6493bd1 to c358d22 Compare November 5, 2025 23:48
@jesseplusplus jesseplusplus changed the title Remove expiring s3 urls for media attachments Rework expiring s3 urls for media attachments Nov 5, 2025
@jesseplusplus jesseplusplus merged commit c2b3050 into freq-main Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants