leonelgalan / cloudfront-signer Goto Github PK
View Code? Open in Web Editor NEWRuby gem for signing AWS CloudFront private content URLs and streaming paths.
Home Page: https://rubygems.org/gems/cloudfront-signer
License: MIT License
Ruby gem for signing AWS CloudFront private content URLs and streaming paths.
Home Page: https://rubygems.org/gems/cloudfront-signer
License: MIT License
Is there anyway to use this with the AWS Certificate Manager to get the certificate?
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?
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!
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
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.
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.
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
Test coverage is low, specially in Signer
class
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.