{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1496","labels_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1496/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1496/comments","events_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1496/events","html_url":"https://github.com/thoughtbot/paperclip/pull/1496","id":30003414,"number":1496,"title":"Fog: Add fog_encryption option; honor url protocol when generating expiring_url","user":{"login":"stereoscott","id":172409,"avatar_url":"https://avatars.githubusercontent.com/u/172409?v=3","gravatar_id":"","url":"https://api.github.com/users/stereoscott","html_url":"https://github.com/stereoscott","followers_url":"https://api.github.com/users/stereoscott/followers","following_url":"https://api.github.com/users/stereoscott/following{/other_user}","gists_url":"https://api.github.com/users/stereoscott/gists{/gist_id}","starred_url":"https://api.github.com/users/stereoscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereoscott/subscriptions","organizations_url":"https://api.github.com/users/stereoscott/orgs","repos_url":"https://api.github.com/users/stereoscott/repos","events_url":"https://api.github.com/users/stereoscott/events{/privacy}","received_events_url":"https://api.github.com/users/stereoscott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jyurek","id":4632,"avatar_url":"https://avatars.githubusercontent.com/u/4632?v=3","gravatar_id":"","url":"https://api.github.com/users/jyurek","html_url":"https://github.com/jyurek","followers_url":"https://api.github.com/users/jyurek/followers","following_url":"https://api.github.com/users/jyurek/following{/other_user}","gists_url":"https://api.github.com/users/jyurek/gists{/gist_id}","starred_url":"https://api.github.com/users/jyurek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyurek/subscriptions","organizations_url":"https://api.github.com/users/jyurek/orgs","repos_url":"https://api.github.com/users/jyurek/repos","events_url":"https://api.github.com/users/jyurek/events{/privacy}","received_events_url":"https://api.github.com/users/jyurek/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/thoughtbot/paperclip/milestones/10","html_url":"https://github.com/thoughtbot/paperclip/milestones/v4.2.0","labels_url":"https://api.github.com/repos/thoughtbot/paperclip/milestones/10/labels","id":654066,"number":10,"title":"v4.2.0","description":"","creator":{"login":"sikachu","id":4912,"avatar_url":"https://avatars.githubusercontent.com/u/4912?v=3","gravatar_id":"","url":"https://api.github.com/users/sikachu","html_url":"https://github.com/sikachu","followers_url":"https://api.github.com/users/sikachu/followers","following_url":"https://api.github.com/users/sikachu/following{/other_user}","gists_url":"https://api.github.com/users/sikachu/gists{/gist_id}","starred_url":"https://api.github.com/users/sikachu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sikachu/subscriptions","organizations_url":"https://api.github.com/users/sikachu/orgs","repos_url":"https://api.github.com/users/sikachu/repos","events_url":"https://api.github.com/users/sikachu/events{/privacy}","received_events_url":"https://api.github.com/users/sikachu/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":6,"state":"open","created_at":"2014-05-09T12:54:42Z","updated_at":"2015-05-27T13:40:00Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2014-03-24T01:03:33Z","updated_at":"2015-07-14T19:45:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thoughtbot/paperclip/pulls/1496","html_url":"https://github.com/thoughtbot/paperclip/pull/1496","diff_url":"https://github.com/thoughtbot/paperclip/pull/1496.diff","patch_url":"https://github.com/thoughtbot/paperclip/pull/1496.patch"},"body":"Two features to enhance security when using fog:\r\n\r\n1. Add a fog_encryption option pass encryption option to fog. This follows a similar pattern to the s3 provider implementation, and has the added benefit of relying on fog to set the proper header for whatever provider may be in use (see [fog's implementation here](https://github.com/fog/fog/blob/41fddec67d6f4ee02e3b0f9d6de48b12e8ecaa37/lib/fog/aws/models/storage/file.rb#L188)).\r\n\r\n2. Recognize the url protocol when generating an expiring url instead of always using `get_http_url` which  could result in duplicate protocols when using fog_host and prevent secure urls. This addresses https://github.com/thoughtbot/paperclip/issues/1112.\r\n"},"comment":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/comments/121354219","html_url":"https://github.com/thoughtbot/paperclip/pull/1496#issuecomment-121354219","issue_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1496","id":121354219,"user":{"login":"seanjoo","id":7374277,"avatar_url":"https://avatars.githubusercontent.com/u/7374277?v=3","gravatar_id":"","url":"https://api.github.com/users/seanjoo","html_url":"https://github.com/seanjoo","followers_url":"https://api.github.com/users/seanjoo/followers","following_url":"https://api.github.com/users/seanjoo/following{/other_user}","gists_url":"https://api.github.com/users/seanjoo/gists{/gist_id}","starred_url":"https://api.github.com/users/seanjoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanjoo/subscriptions","organizations_url":"https://api.github.com/users/seanjoo/orgs","repos_url":"https://api.github.com/users/seanjoo/repos","events_url":"https://api.github.com/users/seanjoo/events{/privacy}","received_events_url":"https://api.github.com/users/seanjoo/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T19:45:12Z","updated_at":"2015-07-14T19:45:12Z","body":"@stereoscott @jyurek any chance this will be merged anytime soon?  "}}