payload: {"action":"created","comment":{"url":"https://api.github.com/repos/storj/storj/pulls/comments/290438616","pull_request_review_id":245628851,"id":290438616,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5MDQzODYxNg==","diff_hunk":"@@ -126,16 +124,51 @@ func (b *BucketStore) Put(ctx context.Context, bucketName string, inMeta Meta) (\n \t\t\"default-rs-optim\":  strconv.Itoa(int(inMeta.RedundancyScheme.OptimalShares)),\n \t\t\"default-rs-total\":  strconv.Itoa(int(inMeta.RedundancyScheme.TotalShares)),\n \t}\n-\tvar exp time.Time\n-\tm, err := b.store.Put(ctx, bucketName, r, pb.SerializableMeta{UserDefined: userMeta}, exp)\n+\n+\tmetadata, err := proto.Marshal(&pb.SerializableMeta{UserDefined: userMeta})\n+\tif err != nil {\n+\t\treturn meta, err\n+\t}\n+\n+\tstreamInfo, err := proto.Marshal(&pb.StreamInfo{\n+\t\tNumberOfSegments: 1,\n+\t\tSegmentsSize:     0,\n+\t\tLastSegmentSize:  0,\n+\t\tMetadata:         metadata,\n+\t})\n+\tif err != nil {\n+\t\treturn meta, err\n+\t}\n+\n+\tstreamMeta, err := proto.Marshal(&pb.StreamMeta{\n+\t\tEncryptedStreamInfo: streamInfo,\n+\t\tEncryptionType:      int32(storj.Unencrypted),\n+\t\tEncryptionBlockSize: 0,\n+\t})\n+\n+\tvar exp timestamp.Timestamp\n+\tpointer := &pb.Pointer{\n+\t\tType:           pb.Pointer_INLINE,\n+\t\tInlineSegment:  nil,\n+\t\tSegmentSize:    0,\n+\t\tExpirationDate: &exp,\n+\t\tMetadata:       streamMeta,\n+\t}","path":"pkg/storage/buckets/store.go","position":172,"original_position":172,"commit_id":"b85ae4e92bf813f2cd02c2c9df9dddddf3e3941e","original_commit_id":"b85ae4e92bf813f2cd02c2c9df9dddddf3e3941e","user":{"login":"jenlij","id":12438950,"node_id":"MDQ6VXNlcjEyNDM4OTUw","avatar_url":"https://avatars0.githubusercontent.com/u/12438950?v=4","gravatar_id":"","url":"https://api.github.com/users/jenlij","html_url":"https://github.com/jenlij","followers_url":"https://api.github.com/users/jenlij/followers","following_url":"https://api.github.com/users/jenlij/following{/other_user}","gists_url":"https://api.github.com/users/jenlij/gists{/gist_id}","starred_url":"https://api.github.com/users/jenlij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenlij/subscriptions","organizations_url":"https://api.github.com/users/jenlij/orgs","repos_url":"https://api.github.com/users/jenlij/repos","events_url":"https://api.github.com/users/jenlij/events{/privacy}","received_events_url":"https://api.github.com/users/jenlij/received_events","type":"User","site_admin":false},"body":"Possibly create a method to fill user meta and subsequent structs?","created_at":"2019-06-04T18:38:11Z","updated_at":"2019-06-04T18:38:12Z","html_url":"https://github.com/storj/storj/pull/1854#discussion_r290438616","pull_request_url":"https://api.github.com/repos/storj/storj/pulls/1854","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/storj/storj/pulls/comments/290438616"},"html":{"href":"https://github.com/storj/storj/pull/1854#discussion_r290438616"},"pull_request":{"href":"https://api.github.com/repos/storj/storj/pulls/1854"}}},"pull_request":{"url":"https://api.github.com/repos/storj/storj/pulls/1854","id":274036474,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc0MDM2NDc0","html_url":"https://github.com/storj/storj/pull/1854","diff_url":"https://github.com/storj/storj/pull/1854.diff","patch_url":"https://github.com/storj/storj/pull/1854.patch","issue_url":"https://api.github.com/repos/storj/storj/issues/1854","number":1854,"state":"open","locked":false,"title":"don't encrypt bucket info","user":{"login":"jtolds","id":109603,"node_id":"MDQ6VXNlcjEwOTYwMw==","avatar_url":"https://avatars0.githubusercontent.com/u/109603?v=4","gravatar_id":"","url":"https://api.github.com/users/jtolds","html_url":"https://github.com/jtolds","followers_url":"https://api.github.com/users/jtolds/followers","following_url":"https://api.github.com/users/jtolds/following{/other_user}","gists_url":"https://api.github.com/users/jtolds/gists{/gist_id}","starred_url":"https://api.github.com/users/jtolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtolds/subscriptions","organizations_url":"https://api.github.com/users/jtolds/orgs","repos_url":"https://api.github.com/users/jtolds/repos","events_url":"https://api.github.com/users/jtolds/events{/privacy}","received_events_url":"https://api.github.com/users/jtolds/received_events","type":"User","site_admin":false},"body":"Background: see https://github.com/storj/storj/pull/1761\r\n\r\nSummary: we should not require an encryption key to manage buckets (though we require an encryption key to manage objects within a bucket), so that bucket management can be done in the web interface. This means the encryption key used when opening a project is going away.\r\n\r\nWe have a network wipe planned for next release, so for that wipe let's make sure data and buckets uploaded after that wipe do not require an encryption key.\r\n\r\n## Code Review Checklist (to be filled out by reviewer)\r\n - [ ] Does the PR describe what changes are being made?\r\n - [ ] Does the PR describe why the changes are being made?\r\n - [ ] Does the code follow [our style guide](https://github.com/storj/docs/blob/master/code/Style.md)?\r\n - [ ] Does the code follow [our testing guide](https://github.com/storj/docs/blob/master/code/Testing.md)?\r\n - [ ] Could the PR be broken into smaller PRs?\r\n - [ ] Does the new code have enough tests? (*every* PR should have tests or justification otherwise. Bug-fix PRs especially)\r\n - [ ] Does the new code have enough documentation that answers \"how do I use it?\" and \"what does it do?\"? (both source documentation and [higher level](https://github.com/storj/docs), diagrams?)\r\n - [ ] Does any documentation need updating?\r\n","created_at":"2019-04-26T21:06:46Z","updated_at":"2019-06-04T18:38:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1de8a8898cb740754fc5aee331491c68fc5d6e47","assignee":null,"assignees":[],"requested_reviewers":[{"login":"thepaul","id":47221,"node_id":"MDQ6VXNlcjQ3MjIx","avatar_url":"https://avatars1.githubusercontent.com/u/47221?v=4","gravatar_id":"","url":"https://api.github.com/users/thepaul","html_url":"https://github.com/thepaul","followers_url":"https://api.github.com/users/thepaul/followers","following_url":"https://api.github.com/users/thepaul/following{/other_user}","gists_url":"https://api.github.com/users/thepaul/gists{/gist_id}","starred_url":"https://api.github.com/users/thepaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thepaul/subscriptions","organizations_url":"https://api.github.com/users/thepaul/orgs","repos_url":"https://api.github.com/users/thepaul/repos","events_url":"https://api.github.com/users/thepaul/events{/privacy}","received_events_url":"https://api.github.com/users/thepaul/received_events","type":"User","site_admin":false},{"login":"kaloyan-raev","id":468091,"node_id":"MDQ6VXNlcjQ2ODA5MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/468091?v=4","gravatar_id":"","url":"https://api.github.com/users/kaloyan-raev","html_url":"https://github.com/kaloyan-raev","followers_url":"https://api.github.com/users/kaloyan-raev/followers","following_url":"https://api.github.com/users/kaloyan-raev/following{/other_user}","gists_url":"https://api.github.com/users/kaloyan-raev/gists{/gist_id}","starred_url":"https://api.github.com/users/kaloyan-raev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaloyan-raev/subscriptions","organizations_url":"https://api.github.com/users/kaloyan-raev/orgs","repos_url":"https://api.github.com/users/kaloyan-raev/repos","events_url":"https://api.github.com/users/kaloyan-raev/events{/privacy}","received_events_url":"https://api.github.com/users/kaloyan-raev/received_events","type":"User","site_admin":false},{"login":"aleitner","id":7276007,"node_id":"MDQ6VXNlcjcyNzYwMDc=","avatar_url":"https://avatars3.githubusercontent.com/u/7276007?v=4","gravatar_id":"","url":"https://api.github.com/users/aleitner","html_url":"https://github.com/aleitner","followers_url":"https://api.github.com/users/aleitner/followers","following_url":"https://api.github.com/users/aleitner/following{/other_user}","gists_url":"https://api.github.com/users/aleitner/gists{/gist_id}","starred_url":"https://api.github.com/users/aleitner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleitner/subscriptions","organizations_url":"https://api.github.com/users/aleitner/orgs","repos_url":"https://api.github.com/users/aleitner/repos","events_url":"https://api.github.com/users/aleitner/events{/privacy}","received_events_url":"https://api.github.com/users/aleitner/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1077048580,"node_id":"MDU6TGFiZWwxMDc3MDQ4NTgw","url":"https://api.github.com/repos/storj/storj/labels/Request%20Code%20Review","name":"Request Code Review","color":"80edbf","default":false},{"id":982933521,"node_id":"MDU6TGFiZWw5ODI5MzM1MjE=","url":"https://api.github.com/repos/storj/storj/labels/cla-signed","name":"cla-signed","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/storj/storj/pulls/1854/commits","review_comments_url":"https://api.github.com/repos/storj/storj/pulls/1854/comments","review_comment_url":"https://api.github.com/repos/storj/storj/pulls/comments{/number}","comments_url":"https://api.github.com/repos/storj/storj/issues/1854/comments","statuses_url":"https://api.github.com/repos/storj/storj/statuses/b85ae4e92bf813f2cd02c2c9df9dddddf3e3941e","head":{"label":"storj:jt/bucket-enc-key","ref":"jt/bucket-enc-key","sha":"b85ae4e92bf813f2cd02c2c9df9dddddf3e3941e","user":{"login":"storj","id":6308081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDgwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/6308081?v=4","gravatar_id":"","url":"https://api.github.com/users/storj","html_url":"https://github.com/storj","followers_url":"https://api.github.com/users/storj/followers","following_url":"https://api.github.com/users/storj/following{/other_user}","gists_url":"https://api.github.com/users/storj/gists{/gist_id}","starred_url":"https://api.github.com/users/storj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storj/subscriptions","organizations_url":"https://api.github.com/users/storj/orgs","repos_url":"https://api.github.com/users/storj/repos","events_url":"https://api.github.com/users/storj/events{/privacy}","received_events_url":"https://api.github.com/users/storj/received_events","type":"Organization","site_admin":false},"repo":{"id":128089774,"node_id":"MDEwOlJlcG9zaXRvcnkxMjgwODk3NzQ=","name":"storj","full_name":"storj/storj","private":false,"owner":{"login":"storj","id":6308081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDgwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/6308081?v=4","gravatar_id":"","url":"https://api.github.com/users/storj","html_url":"https://github.com/storj","followers_url":"https://api.github.com/users/storj/followers","following_url":"https://api.github.com/users/storj/following{/other_user}","gists_url":"https://api.github.com/users/storj/gists{/gist_id}","starred_url":"https://api.github.com/users/storj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storj/subscriptions","organizations_url":"https://api.github.com/users/storj/orgs","repos_url":"https://api.github.com/users/storj/repos","events_url":"https://api.github.com/users/storj/events{/privacy}","received_events_url":"https://api.github.com/users/storj/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/storj/storj","description":"Ongoing Storj v3 development. Decentralized cloud object storage that is affordable, easy to use, private, and secure.","fork":false,"url":"https://api.github.com/repos/storj/storj","forks_url":"https://api.github.com/repos/storj/storj/forks","keys_url":"https://api.github.com/repos/storj/storj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/storj/storj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/storj/storj/teams","hooks_url":"https://api.github.com/repos/storj/storj/hooks","issue_events_url":"https://api.github.com/repos/storj/storj/issues/events{/number}","events_url":"https://api.github.com/repos/storj/storj/events","assignees_url":"https://api.github.com/repos/storj/storj/assignees{/user}","branches_url":"https://api.github.com/repos/storj/storj/branches{/branch}","tags_url":"https://api.github.com/repos/storj/storj/tags","blobs_url":"https://api.github.com/repos/storj/storj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/storj/storj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/storj/storj/git/refs{/sha}","trees_url":"https://api.github.com/repos/storj/storj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/storj/storj/statuses/{sha}","languages_url":"https://api.github.com/repos/storj/storj/languages","stargazers_url":"https://api.github.com/repos/storj/storj/stargazers","contributors_url":"https://api.github.com/repos/storj/storj/contributors","subscribers_url":"https://api.github.com/repos/storj/storj/subscribers","subscription_url":"https://api.github.com/repos/storj/storj/subscription","commits_url":"https://api.github.com/repos/storj/storj/commits{/sha}","git_commits_url":"https://api.github.com/repos/storj/storj/git/commits{/sha}","comments_url":"https://api.github.com/repos/storj/storj/comments{/number}","issue_comment_url":"https://api.github.com/repos/storj/storj/issues/comments{/number}","contents_url":"https://api.github.com/repos/storj/storj/contents/{+path}","compare_url":"https://api.github.com/repos/storj/storj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/storj/storj/merges","archive_url":"https://api.github.com/repos/storj/storj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/storj/storj/downloads","issues_url":"https://api.github.com/repos/storj/storj/issues{/number}","pulls_url":"https://api.github.com/repos/storj/storj/pulls{/number}","milestones_url":"https://api.github.com/repos/storj/storj/milestones{/number}","notifications_url":"https://api.github.com/repos/storj/storj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/storj/storj/labels{/name}","releases_url":"https://api.github.com/repos/storj/storj/releases{/id}","deployments_url":"https://api.github.com/repos/storj/storj/deployments","created_at":"2018-04-04T16:27:18Z","updated_at":"2019-06-04T17:12:38Z","pushed_at":"2019-06-04T18:37:35Z","git_url":"git://github.com/storj/storj.git","ssh_url":"git@github.com:storj/storj.git","clone_url":"https://github.com/storj/storj.git","svn_url":"https://github.com/storj/storj","homepage":"https://storj.io","size":82292,"stargazers_count":656,"watchers_count":656,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":153,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":80,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":153,"open_issues":80,"watchers":656,"default_branch":"master"}},"base":{"label":"storj:master","ref":"master","sha":"bc3463b9d3c496989a069ef556866562ca12daa8","user":{"login":"storj","id":6308081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDgwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/6308081?v=4","gravatar_id":"","url":"https://api.github.com/users/storj","html_url":"https://github.com/storj","followers_url":"https://api.github.com/users/storj/followers","following_url":"https://api.github.com/users/storj/following{/other_user}","gists_url":"https://api.github.com/users/storj/gists{/gist_id}","starred_url":"https://api.github.com/users/storj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storj/subscriptions","organizations_url":"https://api.github.com/users/storj/orgs","repos_url":"https://api.github.com/users/storj/repos","events_url":"https://api.github.com/users/storj/events{/privacy}","received_events_url":"https://api.github.com/users/storj/received_events","type":"Organization","site_admin":false},"repo":{"id":128089774,"node_id":"MDEwOlJlcG9zaXRvcnkxMjgwODk3NzQ=","name":"storj","full_name":"storj/storj","private":false,"owner":{"login":"storj","id":6308081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDgwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/6308081?v=4","gravatar_id":"","url":"https://api.github.com/users/storj","html_url":"https://github.com/storj","followers_url":"https://api.github.com/users/storj/followers","following_url":"https://api.github.com/users/storj/following{/other_user}","gists_url":"https://api.github.com/users/storj/gists{/gist_id}","starred_url":"https://api.github.com/users/storj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storj/subscriptions","organizations_url":"https://api.github.com/users/storj/orgs","repos_url":"https://api.github.com/users/storj/repos","events_url":"https://api.github.com/users/storj/events{/privacy}","received_events_url":"https://api.github.com/users/storj/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/storj/storj","description":"Ongoing Storj v3 development. Decentralized cloud object storage that is affordable, easy to use, private, and secure.","fork":false,"url":"https://api.github.com/repos/storj/storj","forks_url":"https://api.github.com/repos/storj/storj/forks","keys_url":"https://api.github.com/repos/storj/storj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/storj/storj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/storj/storj/teams","hooks_url":"https://api.github.com/repos/storj/storj/hooks","issue_events_url":"https://api.github.com/repos/storj/storj/issues/events{/number}","events_url":"https://api.github.com/repos/storj/storj/events","assignees_url":"https://api.github.com/repos/storj/storj/assignees{/user}","branches_url":"https://api.github.com/repos/storj/storj/branches{/branch}","tags_url":"https://api.github.com/repos/storj/storj/tags","blobs_url":"https://api.github.com/repos/storj/storj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/storj/storj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/storj/storj/git/refs{/sha}","trees_url":"https://api.github.com/repos/storj/storj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/storj/storj/statuses/{sha}","languages_url":"https://api.github.com/repos/storj/storj/languages","stargazers_url":"https://api.github.com/repos/storj/storj/stargazers","contributors_url":"https://api.github.com/repos/storj/storj/contributors","subscribers_url":"https://api.github.com/repos/storj/storj/subscribers","subscription_url":"https://api.github.com/repos/storj/storj/subscription","commits_url":"https://api.github.com/repos/storj/storj/commits{/sha}","git_commits_url":"https://api.github.com/repos/storj/storj/git/commits{/sha}","comments_url":"https://api.github.com/repos/storj/storj/comments{/number}","issue_comment_url":"https://api.github.com/repos/storj/storj/issues/comments{/number}","contents_url":"https://api.github.com/repos/storj/storj/contents/{+path}","compare_url":"https://api.github.com/repos/storj/storj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/storj/storj/merges","archive_url":"https://api.github.com/repos/storj/storj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/storj/storj/downloads","issues_url":"https://api.github.com/repos/storj/storj/issues{/number}","pulls_url":"https://api.github.com/repos/storj/storj/pulls{/number}","milestones_url":"https://api.github.com/repos/storj/storj/milestones{/number}","notifications_url":"https://api.github.com/repos/storj/storj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/storj/storj/labels{/name}","releases_url":"https://api.github.com/repos/storj/storj/releases{/id}","deployments_url":"https://api.github.com/repos/storj/storj/deployments","created_at":"2018-04-04T16:27:18Z","updated_at":"2019-06-04T17:12:38Z","pushed_at":"2019-06-04T18:37:35Z","git_url":"git://github.com/storj/storj.git","ssh_url":"git@github.com:storj/storj.git","clone_url":"https://github.com/storj/storj.git","svn_url":"https://github.com/storj/storj","homepage":"https://storj.io","size":82292,"stargazers_count":656,"watchers_count":656,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":153,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":80,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":153,"open_issues":80,"watchers":656,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/storj/storj/pulls/1854"},"html":{"href":"https://github.com/storj/storj/pull/1854"},"issue":{"href":"https://api.github.com/repos/storj/storj/issues/1854"},"comments":{"href":"https://api.github.com/repos/storj/storj/issues/1854/comments"},"review_comments":{"href":"https://api.github.com/repos/storj/storj/pulls/1854/comments"},"review_comment":{"href":"https://api.github.com/repos/storj/storj/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/storj/storj/pulls/1854/commits"},"statuses":{"href":"https://api.github.com/repos/storj/storj/statuses/b85ae4e92bf813f2cd02c2c9df9dddddf3e3941e"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"jenlij"}}