{"action":"closed","number":30,"pull_request":{"url":"https://api.github.com/repos/textileio/textile-go/pulls/30","id":180735638,"html_url":"https://github.com/textileio/textile-go/pull/30","diff_url":"https://github.com/textileio/textile-go/pull/30.diff","patch_url":"https://github.com/textileio/textile-go/pull/30.patch","issue_url":"https://api.github.com/repos/textileio/textile-go/issues/30","number":30,"state":"closed","locked":false,"title":"Decrypte and serve files over separate gateway","user":{"login":"sanderpick","id":361000,"avatar_url":"https://avatars0.githubusercontent.com/u/361000?v=4","gravatar_id":"","url":"https://api.github.com/users/sanderpick","html_url":"https://github.com/sanderpick","followers_url":"https://api.github.com/users/sanderpick/followers","following_url":"https://api.github.com/users/sanderpick/following{/other_user}","gists_url":"https://api.github.com/users/sanderpick/gists{/gist_id}","starred_url":"https://api.github.com/users/sanderpick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanderpick/subscriptions","organizations_url":"https://api.github.com/users/sanderpick/orgs","repos_url":"https://api.github.com/users/sanderpick/repos","events_url":"https://api.github.com/users/sanderpick/events{/privacy}","received_events_url":"https://api.github.com/users/sanderpick/received_events","type":"User","site_admin":false},"body":"Super naive approach here to render photos in the desktop app: parse path as ipfs path, get data at that path, try to decrypt. Currently\r\nwill fail for non-encrypted paths like the root hash of a photo directory. e.g.,\r\n\r\n```\r\nhttp://localhost:9192/ipfs/QmWkgsT6hT7ja1F7z367X3EcfQzTeZ45nVNMqpzErhSq8d/thumb\r\nhttp://localhost:9192/ipfs/QmWkgsT6hT7ja1F7z367X3EcfQzTeZ45nVNMqpzErhSq8d/meta\r\nhttp://localhost:9192/ipfs/QmWkgsT6hT7ja1F7z367X3EcfQzTeZ45nVNMqpzErhSq8d/photo\r\n```\r\n","created_at":"2018-04-10T21:41:44Z","updated_at":"2018-04-10T23:30:50Z","closed_at":"2018-04-10T23:30:50Z","merged_at":"2018-04-10T23:30:50Z","merge_commit_sha":"8c6b539d400e2af51155d3764e92820da93558cb","assignee":{"login":"andrewxhill","id":370259,"avatar_url":"https://avatars2.githubusercontent.com/u/370259?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewxhill","html_url":"https://github.com/andrewxhill","followers_url":"https://api.github.com/users/andrewxhill/followers","following_url":"https://api.github.com/users/andrewxhill/following{/other_user}","gists_url":"https://api.github.com/users/andrewxhill/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewxhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewxhill/subscriptions","organizations_url":"https://api.github.com/users/andrewxhill/orgs","repos_url":"https://api.github.com/users/andrewxhill/repos","events_url":"https://api.github.com/users/andrewxhill/events{/privacy}","received_events_url":"https://api.github.com/users/andrewxhill/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrewxhill","id":370259,"avatar_url":"https://avatars2.githubusercontent.com/u/370259?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewxhill","html_url":"https://github.com/andrewxhill","followers_url":"https://api.github.com/users/andrewxhill/followers","following_url":"https://api.github.com/users/andrewxhill/following{/other_user}","gists_url":"https://api.github.com/users/andrewxhill/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewxhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewxhill/subscriptions","organizations_url":"https://api.github.com/users/andrewxhill/orgs","repos_url":"https://api.github.com/users/andrewxhill/repos","events_url":"https://api.github.com/users/andrewxhill/events{/privacy}","received_events_url":"https://api.github.com/users/andrewxhill/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/textileio/textile-go/pulls/30/commits","review_comments_url":"https://api.github.com/repos/textileio/textile-go/pulls/30/comments","review_comment_url":"https://api.github.com/repos/textileio/textile-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/textileio/textile-go/issues/30/comments","statuses_url":"https://api.github.com/repos/textileio/textile-go/statuses/f8ebf6e4e7020f38805867fdff9476ffcc69ae6e","head":{"label":"textileio:sander/decrypting-gateway","ref":"sander/decrypting-gateway","sha":"f8ebf6e4e7020f38805867fdff9476ffcc69ae6e","user":{"login":"textileio","id":35050041,"avatar_url":"https://avatars3.githubusercontent.com/u/35050041?v=4","gravatar_id":"","url":"https://api.github.com/users/textileio","html_url":"https://github.com/textileio","followers_url":"https://api.github.com/users/textileio/followers","following_url":"https://api.github.com/users/textileio/following{/other_user}","gists_url":"https://api.github.com/users/textileio/gists{/gist_id}","starred_url":"https://api.github.com/users/textileio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textileio/subscriptions","organizations_url":"https://api.github.com/users/textileio/orgs","repos_url":"https://api.github.com/users/textileio/repos","events_url":"https://api.github.com/users/textileio/events{/privacy}","received_events_url":"https://api.github.com/users/textileio/received_events","type":"Organization","site_admin":false},"repo":{"id":124269776,"name":"textile-go","full_name":"textileio/textile-go","owner":{"login":"textileio","id":35050041,"avatar_url":"https://avatars3.githubusercontent.com/u/35050041?v=4","gravatar_id":"","url":"https://api.github.com/users/textileio","html_url":"https://github.com/textileio","followers_url":"https://api.github.com/users/textileio/followers","following_url":"https://api.github.com/users/textileio/following{/other_user}","gists_url":"https://api.github.com/users/textileio/gists{/gist_id}","starred_url":"https://api.github.com/users/textileio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textileio/subscriptions","organizations_url":"https://api.github.com/users/textileio/orgs","repos_url":"https://api.github.com/users/textileio/repos","events_url":"https://api.github.com/users/textileio/events{/privacy}","received_events_url":"https://api.github.com/users/textileio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/textileio/textile-go","description":"Textile's REST API and daemon","fork":false,"url":"https://api.github.com/repos/textileio/textile-go","forks_url":"https://api.github.com/repos/textileio/textile-go/forks","keys_url":"https://api.github.com/repos/textileio/textile-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/textileio/textile-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/textileio/textile-go/teams","hooks_url":"https://api.github.com/repos/textileio/textile-go/hooks","issue_events_url":"https://api.github.com/repos/textileio/textile-go/issues/events{/number}","events_url":"https://api.github.com/repos/textileio/textile-go/events","assignees_url":"https://api.github.com/repos/textileio/textile-go/assignees{/user}","branches_url":"https://api.github.com/repos/textileio/textile-go/branches{/branch}","tags_url":"https://api.github.com/repos/textileio/textile-go/tags","blobs_url":"https://api.github.com/repos/textileio/textile-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/textileio/textile-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/textileio/textile-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/textileio/textile-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/textileio/textile-go/statuses/{sha}","languages_url":"https://api.github.com/repos/textileio/textile-go/languages","stargazers_url":"https://api.github.com/repos/textileio/textile-go/stargazers","contributors_url":"https://api.github.com/repos/textileio/textile-go/contributors","subscribers_url":"https://api.github.com/repos/textileio/textile-go/subscribers","subscription_url":"https://api.github.com/repos/textileio/textile-go/subscription","commits_url":"https://api.github.com/repos/textileio/textile-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/textileio/textile-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/textileio/textile-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/textileio/textile-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/textileio/textile-go/contents/{+path}","compare_url":"https://api.github.com/repos/textileio/textile-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/textileio/textile-go/merges","archive_url":"https://api.github.com/repos/textileio/textile-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/textileio/textile-go/downloads","issues_url":"https://api.github.com/repos/textileio/textile-go/issues{/number}","pulls_url":"https://api.github.com/repos/textileio/textile-go/pulls{/number}","milestones_url":"https://api.github.com/repos/textileio/textile-go/milestones{/number}","notifications_url":"https://api.github.com/repos/textileio/textile-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/textileio/textile-go/labels{/name}","releases_url":"https://api.github.com/repos/textileio/textile-go/releases{/id}","deployments_url":"https://api.github.com/repos/textileio/textile-go/deployments","created_at":"2018-03-07T17:19:30Z","updated_at":"2018-04-10T18:18:56Z","pushed_at":"2018-04-10T23:30:50Z","git_url":"git://github.com/textileio/textile-go.git","ssh_url":"git@github.com:textileio/textile-go.git","clone_url":"https://github.com/textileio/textile-go.git","svn_url":"https://github.com/textileio/textile-go","homepage":"https://www.textile.io","size":286652,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":4,"default_branch":"master"}},"base":{"label":"textileio:master","ref":"master","sha":"148e255934d1b8f7b330796aeae12aa7df2d4600","user":{"login":"textileio","id":35050041,"avatar_url":"https://avatars3.githubusercontent.com/u/35050041?v=4","gravatar_id":"","url":"https://api.github.com/users/textileio","html_url":"https://github.com/textileio","followers_url":"https://api.github.com/users/textileio/followers","following_url":"https://api.github.com/users/textileio/following{/other_user}","gists_url":"https://api.github.com/users/textileio/gists{/gist_id}","starred_url":"https://api.github.com/users/textileio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textileio/subscriptions","organizations_url":"https://api.github.com/users/textileio/orgs","repos_url":"https://api.github.com/users/textileio/repos","events_url":"https://api.github.com/users/textileio/events{/privacy}","received_events_url":"https://api.github.com/users/textileio/received_events","type":"Organization","site_admin":false},"repo":{"id":124269776,"name":"textile-go","full_name":"textileio/textile-go","owner":{"login":"textileio","id":35050041,"avatar_url":"https://avatars3.githubusercontent.com/u/35050041?v=4","gravatar_id":"","url":"https://api.github.com/users/textileio","html_url":"https://github.com/textileio","followers_url":"https://api.github.com/users/textileio/followers","following_url":"https://api.github.com/users/textileio/following{/other_user}","gists_url":"https://api.github.com/users/textileio/gists{/gist_id}","starred_url":"https://api.github.com/users/textileio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textileio/subscriptions","organizations_url":"https://api.github.com/users/textileio/orgs","repos_url":"https://api.github.com/users/textileio/repos","events_url":"https://api.github.com/users/textileio/events{/privacy}","received_events_url":"https://api.github.com/users/textileio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/textileio/textile-go","description":"Textile's REST API and daemon","fork":false,"url":"https://api.github.com/repos/textileio/textile-go","forks_url":"https://api.github.com/repos/textileio/textile-go/forks","keys_url":"https://api.github.com/repos/textileio/textile-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/textileio/textile-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/textileio/textile-go/teams","hooks_url":"https://api.github.com/repos/textileio/textile-go/hooks","issue_events_url":"https://api.github.com/repos/textileio/textile-go/issues/events{/number}","events_url":"https://api.github.com/repos/textileio/textile-go/events","assignees_url":"https://api.github.com/repos/textileio/textile-go/assignees{/user}","branches_url":"https://api.github.com/repos/textileio/textile-go/branches{/branch}","tags_url":"https://api.github.com/repos/textileio/textile-go/tags","blobs_url":"https://api.github.com/repos/textileio/textile-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/textileio/textile-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/textileio/textile-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/textileio/textile-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/textileio/textile-go/statuses/{sha}","languages_url":"https://api.github.com/repos/textileio/textile-go/languages","stargazers_url":"https://api.github.com/repos/textileio/textile-go/stargazers","contributors_url":"https://api.github.com/repos/textileio/textile-go/contributors","subscribers_url":"https://api.github.com/repos/textileio/textile-go/subscribers","subscription_url":"https://api.github.com/repos/textileio/textile-go/subscription","commits_url":"https://api.github.com/repos/textileio/textile-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/textileio/textile-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/textileio/textile-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/textileio/textile-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/textileio/textile-go/contents/{+path}","compare_url":"https://api.github.com/repos/textileio/textile-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/textileio/textile-go/merges","archive_url":"https://api.github.com/repos/textileio/textile-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/textileio/textile-go/downloads","issues_url":"https://api.github.com/repos/textileio/textile-go/issues{/number}","pulls_url":"https://api.github.com/repos/textileio/textile-go/pulls{/number}","milestones_url":"https://api.github.com/repos/textileio/textile-go/milestones{/number}","notifications_url":"https://api.github.com/repos/textileio/textile-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/textileio/textile-go/labels{/name}","releases_url":"https://api.github.com/repos/textileio/textile-go/releases{/id}","deployments_url":"https://api.github.com/repos/textileio/textile-go/deployments","created_at":"2018-03-07T17:19:30Z","updated_at":"2018-04-10T18:18:56Z","pushed_at":"2018-04-10T23:30:50Z","git_url":"git://github.com/textileio/textile-go.git","ssh_url":"git@github.com:textileio/textile-go.git","clone_url":"https://github.com/textileio/textile-go.git","svn_url":"https://github.com/textileio/textile-go","homepage":"https://www.textile.io","size":286652,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/textileio/textile-go/pulls/30"},"html":{"href":"https://github.com/textileio/textile-go/pull/30"},"issue":{"href":"https://api.github.com/repos/textileio/textile-go/issues/30"},"comments":{"href":"https://api.github.com/repos/textileio/textile-go/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/textileio/textile-go/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/textileio/textile-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/textileio/textile-go/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/textileio/textile-go/statuses/f8ebf6e4e7020f38805867fdff9476ffcc69ae6e"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"andrewxhill","id":370259,"avatar_url":"https://avatars2.githubusercontent.com/u/370259?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewxhill","html_url":"https://github.com/andrewxhill","followers_url":"https://api.github.com/users/andrewxhill/followers","following_url":"https://api.github.com/users/andrewxhill/following{/other_user}","gists_url":"https://api.github.com/users/andrewxhill/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewxhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewxhill/subscriptions","organizations_url":"https://api.github.com/users/andrewxhill/orgs","repos_url":"https://api.github.com/users/andrewxhill/repos","events_url":"https://api.github.com/users/andrewxhill/events{/privacy}","received_events_url":"https://api.github.com/users/andrewxhill/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":37,"deletions":10,"changed_files":2}}
{"actor":{"display_login":"andrewxhill"}}