{"action":"closed","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1698","repository_url":"https://api.github.com/repos/aws/aws-sdk-ruby","labels_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1698/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1698/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1698/events","html_url":"https://github.com/aws/aws-sdk-ruby/issues/1698","id":292337517,"number":1698,"title":"Aws::CloudFront::CookieSigner does not work with private_key as string","user":{"login":"johan-smits","id":3228882,"avatar_url":"https://avatars2.githubusercontent.com/u/3228882?v=4","gravatar_id":"","url":"https://api.github.com/users/johan-smits","html_url":"https://github.com/johan-smits","followers_url":"https://api.github.com/users/johan-smits/followers","following_url":"https://api.github.com/users/johan-smits/following{/other_user}","gists_url":"https://api.github.com/users/johan-smits/gists{/gist_id}","starred_url":"https://api.github.com/users/johan-smits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johan-smits/subscriptions","organizations_url":"https://api.github.com/users/johan-smits/orgs","repos_url":"https://api.github.com/users/johan-smits/repos","events_url":"https://api.github.com/users/johan-smits/events{/privacy}","received_events_url":"https://api.github.com/users/johan-smits/received_events","type":"User","site_admin":false},"labels":[{"id":399363330,"url":"https://api.github.com/repos/aws/aws-sdk-ruby/labels/closing-soon-if-no-response","name":"closing-soon-if-no-response","color":"b60205","default":false},{"id":294097918,"url":"https://api.github.com/repos/aws/aws-sdk-ruby/labels/usage-question","name":"usage-question","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-29T09:30:56Z","updated_at":"2018-02-26T21:27:22Z","closed_at":"2018-02-26T21:27:22Z","author_association":"NONE","body":"Please fill out the sections below to help us address your issue\r\n\r\n### Issue description\r\nWhen creating a new cookiesiger with the private key as a text input it raises a error.\r\n\r\n\r\n### Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version\r\naws-sdk-cloudfront (1.1.0)\r\n\r\n### Version of Ruby, OS environment\r\nruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]\r\nUbuntu 16.04 (64 bits)\r\n\r\n### Code snippets / steps to reproduce\r\n\r\n```ruby\r\ncookie = Aws::CloudFront::CookieSigner.new(\r\n      key_pair_id: 'pair_id',\r\n      private_key: '-----BEGIN RSA PRIVATE KEY-----'\r\n  )\r\nlocation = \"http://abc.cloudfront.net/images/image.jpg\"\r\n    policy =  {\r\n        'Statement' => [\r\n            'Resource' => 'images/image.jpg',\r\n            'Condition' => {\r\n                'IpAddress' => {'AWS:SourceIp' => '10.52.176.0/24'},\r\n                'DateLessThan' => {'AWS:EpochTime' => (Time.now.utc + 2.days)}\r\n            }\r\n        ]\r\n    }\r\ncookie.signed_cookie(location, policy: policy.to_json)\r\n```\r\n\r\nThe error:\r\n```ruby\r\nno implicit conversion of Seahorse::Client::Response into String\r\n```\r\n\r\nThe documentation says the private_key can accept a string?"}}
{"actor":{"display_login":"awood45"}}