Protecting Assets hosted on Amazon S3

One of the requirements of a website i’m building is that assets uploaded by the website’s users are protected from access outside the website whilst still being accessible from within the site. I’m using Paperclip (Rails 3.1) for uploads and there’s a whole load of stuff out there relating to protecting assets stored in pricate AWS S3 buckets. So after a little digging into expiring urls etc. and not really coming up with anything satisfactory, I discovered this post about setting up a bucket policy. Perfect!!

Advertisements

About distinctinteractive

I graduated 3 years ago from the University of Huddersfield with a 2:1 BA in Interactive Multimedia. After leaving University i worked for a small company in Huddersfield (Offroad Code) mainly helping to maintain a large travel company website. I am currently freelancing as Distinct Interactive. Follow me on Twitter @jimmckerchar
This entry was posted in Gotchas, RoR and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s