Giter VIP home page Giter VIP logo

cloudfront-signer's People

Contributors

bullfight avatar iloveitaly avatar jhubert avatar leonelgalan avatar lpil avatar mynock avatar scott-knight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cloudfront-signer's Issues

Signer trouble, perl version works!?

Hi Leone,

We experience a trouble with the gem signer. This is how we sign the urls.

Aws::CF::Signer.is_configured? => true
Aws::CF::Signer.sign_path "http://<cloudfront_image_url>", expires: Time.now+60

The resource accessed using the URL provided by the gem signer ends with access denied.

If we use the Perl script signer downloaded from Amazon site it produces URL that gets served successfully. First we started with the gem and looked to remedies. So we copied PEM file and pair_id to the perl to ensure the configurations are the same. We do the signs on the same machine.

We test the URLs simply by hand copying (clicking in the console) to the browser address bar.

Any idea what is wrong?

URI.escape is obsolete warning with ruby 2.7

Hey there, looks like a handful of gems have been hit in their issues pages with this one in Ruby 2.7.2:

/usr/local/rvm/gems/ruby-2.7.2/gems/cloudfront-signer-3.0.2/lib/cloudfront-signer.rb:187: warning: URI.escape is obsolete

Would it just be this one place to replace that, or a more complicated and involved fix? Thanks for your time!

Warning about Fixnum

I am using Ruby 2.4.1 and Rails 4.2.8. I just upgraded the cloudfront-signer gem to 3.0.1. When running my test suite I am receiving this warning message:
gems/cloudfront-signer-3.0.1/lib/cloudfront-signer.rb:247: warning: constant ::Fixnum is deprecated

Can I specify the bucket in the options?

I have an app where the bucket is dynamic - I can upload to S3 and I have these buckets in my CDN but they won't serve from the alternate buckets. I am guessing that is the issue. My default Carrierwave setting is for my default main bucket which works fine.

Does not work with special characters in filename

The signing signature creation fails when the filename has special characters in it. I'll add an option for this but I don't particularly understand the use cases for why you wouldn't always want to escape the URI before signing.

Fix warnings when building gem

For both 2.x and 3.x

WARNING:  open-ended dependency on rspec (>= 0, development) is not recommended
  if rspec is semantically versioned, use:
    add_development_dependency 'rspec', '~> 0'
WARNING:  open-ended dependency on codeclimate-test-reporter (>= 0, development) is not recommended
  if codeclimate-test-reporter is semantically versioned, use:
    add_development_dependency 'codeclimate-test-reporter', '~> 0'
WARNING:  See http://guides.rubygems.org/specification-reference/ for help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.