Signature/Expires/Access Key ID appearing in URL Params aws paperclip

s3 url that expires after 1 hr
here is code

file_name_in_s3 = “topic_alerts/”+report_name
s3_config = YAML.load_file("#{Rails.root}/config/s3.yml")
s3 = =>
s3_config[‘development’][‘access_key_id’],:secret_access_key =>
bucket = s3.buckets[s3_config[‘development’][‘bucket’]]
object = bucket.objects[file_name_in_s3]
s3_obj_url = object.url_for(:read,:authenticated =>
false,:response_content_disposition => “attachment”)

url generated is signed url and expires in one hr… plshelp me to find a
solutin to genrate public url with out parm values signature and expires

pls help me to find a better soln

On Jul 11, 2014, at 12:05 AM, Anu S. wrote:

pls help me to find a better soln

You’re kind of stuck with what S3 allows you to do here. You can have
one of the following:

  1. The ugly URL and private files.
  2. The plain URL and public files (the URL doesn’t expire, in other
  3. Some system you engineer yourself that fetches the file from S3 on
    your server, and then streams it to the end user, behind a URL of your
    devising: or something like that.
    Downside to this last one is that you pay three times the bandwidth for
    a single file (once on S3, and again on your server to download it and
    then stream it back), and make your user wait three times as long to get
    the file.