{"action":"created","issue":{"url":"https://api.github.com/repos/kxlt/imageresizer/issues/14","repository_url":"https://api.github.com/repos/kxlt/imageresizer","labels_url":"https://api.github.com/repos/kxlt/imageresizer/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/kxlt/imageresizer/issues/14/comments","events_url":"https://api.github.com/repos/kxlt/imageresizer/issues/14/events","html_url":"https://github.com/kxlt/imageresizer/issues/14","id":374671747,"node_id":"MDU6SXNzdWUzNzQ2NzE3NDc=","number":14,"title":"Implement secure links","user":{"login":"kxlt","id":1402931,"node_id":"MDQ6VXNlcjE0MDI5MzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1402931?v=4","gravatar_id":"","url":"https://api.github.com/users/kxlt","html_url":"https://github.com/kxlt","followers_url":"https://api.github.com/users/kxlt/followers","following_url":"https://api.github.com/users/kxlt/following{/other_user}","gists_url":"https://api.github.com/users/kxlt/gists{/gist_id}","starred_url":"https://api.github.com/users/kxlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kxlt/subscriptions","organizations_url":"https://api.github.com/users/kxlt/orgs","repos_url":"https://api.github.com/users/kxlt/repos","events_url":"https://api.github.com/users/kxlt/events{/privacy}","received_events_url":"https://api.github.com/users/kxlt/received_events","type":"User","site_admin":false},"labels":[{"id":1058866510,"node_id":"MDU6TGFiZWwxMDU4ODY2NTEw","url":"https://api.github.com/repos/kxlt/imageresizer/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true},{"id":1103512548,"node_id":"MDU6TGFiZWwxMTAzNTEyNTQ4","url":"https://api.github.com/repos/kxlt/imageresizer/labels/hacktoberfest","name":"hacktoberfest","color":"82ffe1","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-27T17:59:42Z","updated_at":"2018-10-28T12:17:03Z","closed_at":null,"author_association":"OWNER","body":"Add 2 config properties:\r\n\r\n- `secure.links.enabled`: true|false\r\n- `secure.links.secret`: a string that will be the secret used to create the secure hash.\r\n\r\nGiven an url to access an image, such as\r\n\r\n`/400x300/crop/s/example.jpg`\r\n\r\nIf the `secure.links.enabled` config property is true and `secure.links.secret` is `mysecret`, the above url to the resource should be disabled (returning a http 403), instead the following url scheme should be used to access the image:\r\n\r\n`/{secureHash}/400x300/crop/s/example.jpg`\r\n\r\nwhere `{secureHash}` should be an MD5 hash of `400x300/crop/s/example.jpgmysecret`.\r\n\r\nTake a look at [`crypto/md5`](https://golang.org/pkg/crypto/md5/) and [`api/routes.go`](https://github.com/kxlt/imageresizer/blob/master/api/routes.go) to get started."},"comment":{"url":"https://api.github.com/repos/kxlt/imageresizer/issues/comments/433699785","html_url":"https://github.com/kxlt/imageresizer/issues/14#issuecomment-433699785","issue_url":"https://api.github.com/repos/kxlt/imageresizer/issues/14","id":433699785,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzY5OTc4NQ==","user":{"login":"vincealdrin","id":12383137,"node_id":"MDQ6VXNlcjEyMzgzMTM3","avatar_url":"https://avatars0.githubusercontent.com/u/12383137?v=4","gravatar_id":"","url":"https://api.github.com/users/vincealdrin","html_url":"https://github.com/vincealdrin","followers_url":"https://api.github.com/users/vincealdrin/followers","following_url":"https://api.github.com/users/vincealdrin/following{/other_user}","gists_url":"https://api.github.com/users/vincealdrin/gists{/gist_id}","starred_url":"https://api.github.com/users/vincealdrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincealdrin/subscriptions","organizations_url":"https://api.github.com/users/vincealdrin/orgs","repos_url":"https://api.github.com/users/vincealdrin/repos","events_url":"https://api.github.com/users/vincealdrin/events{/privacy}","received_events_url":"https://api.github.com/users/vincealdrin/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T12:17:03Z","updated_at":"2018-10-28T12:17:03Z","author_association":"NONE","body":"I'll take a shot on this "}}
{"actor":{"display_login":"vincealdrin"}}