Railsplayground / Amazon S3 authenticated_url "Gotcha"

Sandy
2014-02-20T14:51:00Z

I have been using Railsplayground for a number of years to host a few RoR
applications which use S3 to store confidential documents.  Due to the
nature of the documents, I have been using S3's
"authenticated_url" with a
10 second timeout.  About a week ago my hosted apps stopped working, even
though they continued to work properly from my development machine on
localhost.  The problem was that the hosted server's clock was off by about
10 seconds.  When I originally asked support if the clock was off, I was
told (incorrectly) that it was correct.  Upon modifying my code to increase
the timeout to 20 seconds, the apps returned to normal operation.  Once I
gave that background info to their support people they actually went in and
resynced the server's clock, so I was able to change the timeouts back to
10 seconds.  The lesson... Confirm the accuracy of your server's clock if
you use S3 with authenticated_url.

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/ef5601ee-6747-4ebe-a4b4-457b66a8e80d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.