{"action":"opened","number":5694,"pull_request":{"url":"https://api.github.com/repos/ceph/ceph/pulls/5694","id":43587706,"html_url":"https://github.com/ceph/ceph/pull/5694","diff_url":"https://github.com/ceph/ceph/pull/5694.diff","patch_url":"https://github.com/ceph/ceph/pull/5694.patch","issue_url":"https://api.github.com/repos/ceph/ceph/issues/5694","number":5694,"state":"open","locked":false,"title":"rgw: improve convenience for key operate.","user":{"login":"guce","id":13231908,"avatar_url":"https://avatars.githubusercontent.com/u/13231908?v=3","gravatar_id":"","url":"https://api.github.com/users/guce","html_url":"https://github.com/guce","followers_url":"https://api.github.com/users/guce/followers","following_url":"https://api.github.com/users/guce/following{/other_user}","gists_url":"https://api.github.com/users/guce/gists{/gist_id}","starred_url":"https://api.github.com/users/guce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guce/subscriptions","organizations_url":"https://api.github.com/users/guce/orgs","repos_url":"https://api.github.com/users/guce/repos","events_url":"https://api.github.com/users/guce/events{/privacy}","received_events_url":"https://api.github.com/users/guce/received_events","type":"User","site_admin":false},"body":"1.key-type assignments based on context\r\nIn user    operate context, key-type assignment to KEY_TYPE_S3\r\nIn subuser operate context, key-type assignment to KEY_TYPE_SWIFT\r\nIn key     operate context, if key-type wasn't specified by previous process, key-type assignments based on user type.\r\n\r\n2.fix RGWSubUserPool::add()\r\nWhen create subuser generate secret by default\r\n\r\n3.fix RGWAccessKeyPool::generate_key()\r\nAvoid empty secret when use --access-key para\r\nAvoid wrong key's username when create user and subuser at the same time\r\n\r\nSigned-off-by: Ce Gu <guce@h3c.com>","created_at":"2015-08-28T02:25:53Z","updated_at":"2015-08-28T02:25:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ceph/ceph/pulls/5694/commits","review_comments_url":"https://api.github.com/repos/ceph/ceph/pulls/5694/comments","review_comment_url":"https://api.github.com/repos/ceph/ceph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ceph/ceph/issues/5694/comments","statuses_url":"https://api.github.com/repos/ceph/ceph/statuses/fed328d6c40f24a656afa301b043352f6b23a1c6","head":{"label":"guce:rgw_improve_key_operate","ref":"rgw_improve_key_operate","sha":"fed328d6c40f24a656afa301b043352f6b23a1c6","user":{"login":"guce","id":13231908,"avatar_url":"https://avatars.githubusercontent.com/u/13231908?v=3","gravatar_id":"","url":"https://api.github.com/users/guce","html_url":"https://github.com/guce","followers_url":"https://api.github.com/users/guce/followers","following_url":"https://api.github.com/users/guce/following{/other_user}","gists_url":"https://api.github.com/users/guce/gists{/gist_id}","starred_url":"https://api.github.com/users/guce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guce/subscriptions","organizations_url":"https://api.github.com/users/guce/orgs","repos_url":"https://api.github.com/users/guce/repos","events_url":"https://api.github.com/users/guce/events{/privacy}","received_events_url":"https://api.github.com/users/guce/received_events","type":"User","site_admin":false},"repo":{"id":38736127,"name":"ceph","full_name":"guce/ceph","owner":{"login":"guce","id":13231908,"avatar_url":"https://avatars.githubusercontent.com/u/13231908?v=3","gravatar_id":"","url":"https://api.github.com/users/guce","html_url":"https://github.com/guce","followers_url":"https://api.github.com/users/guce/followers","following_url":"https://api.github.com/users/guce/following{/other_user}","gists_url":"https://api.github.com/users/guce/gists{/gist_id}","starred_url":"https://api.github.com/users/guce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guce/subscriptions","organizations_url":"https://api.github.com/users/guce/orgs","repos_url":"https://api.github.com/users/guce/repos","events_url":"https://api.github.com/users/guce/events{/privacy}","received_events_url":"https://api.github.com/users/guce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guce/ceph","description":"Ceph is a distributed object, block, and file storage platform ","fork":true,"url":"https://api.github.com/repos/guce/ceph","forks_url":"https://api.github.com/repos/guce/ceph/forks","keys_url":"https://api.github.com/repos/guce/ceph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guce/ceph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guce/ceph/teams","hooks_url":"https://api.github.com/repos/guce/ceph/hooks","issue_events_url":"https://api.github.com/repos/guce/ceph/issues/events{/number}","events_url":"https://api.github.com/repos/guce/ceph/events","assignees_url":"https://api.github.com/repos/guce/ceph/assignees{/user}","branches_url":"https://api.github.com/repos/guce/ceph/branches{/branch}","tags_url":"https://api.github.com/repos/guce/ceph/tags","blobs_url":"https://api.github.com/repos/guce/ceph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guce/ceph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guce/ceph/git/refs{/sha}","trees_url":"https://api.github.com/repos/guce/ceph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guce/ceph/statuses/{sha}","languages_url":"https://api.github.com/repos/guce/ceph/languages","stargazers_url":"https://api.github.com/repos/guce/ceph/stargazers","contributors_url":"https://api.github.com/repos/guce/ceph/contributors","subscribers_url":"https://api.github.com/repos/guce/ceph/subscribers","subscription_url":"https://api.github.com/repos/guce/ceph/subscription","commits_url":"https://api.github.com/repos/guce/ceph/commits{/sha}","git_commits_url":"https://api.github.com/repos/guce/ceph/git/commits{/sha}","comments_url":"https://api.github.com/repos/guce/ceph/comments{/number}","issue_comment_url":"https://api.github.com/repos/guce/ceph/issues/comments{/number}","contents_url":"https://api.github.com/repos/guce/ceph/contents/{+path}","compare_url":"https://api.github.com/repos/guce/ceph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guce/ceph/merges","archive_url":"https://api.github.com/repos/guce/ceph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guce/ceph/downloads","issues_url":"https://api.github.com/repos/guce/ceph/issues{/number}","pulls_url":"https://api.github.com/repos/guce/ceph/pulls{/number}","milestones_url":"https://api.github.com/repos/guce/ceph/milestones{/number}","notifications_url":"https://api.github.com/repos/guce/ceph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guce/ceph/labels{/name}","releases_url":"https://api.github.com/repos/guce/ceph/releases{/id}","created_at":"2015-07-08T06:24:17Z","updated_at":"2015-07-08T06:24:32Z","pushed_at":"2015-08-28T02:24:18Z","git_url":"git://github.com/guce/ceph.git","ssh_url":"git@github.com:guce/ceph.git","clone_url":"https://github.com/guce/ceph.git","svn_url":"https://github.com/guce/ceph","homepage":"http://ceph.com","size":134102,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ceph:master","ref":"master","sha":"52bc4886b7e0416cb82d65c09e7b572c5d2cf657","user":{"login":"ceph","id":1015767,"avatar_url":"https://avatars.githubusercontent.com/u/1015767?v=3","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"repo":{"id":2310495,"name":"ceph","full_name":"ceph/ceph","owner":{"login":"ceph","id":1015767,"avatar_url":"https://avatars.githubusercontent.com/u/1015767?v=3","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ceph/ceph","description":"Ceph is a distributed object, block, and file storage platform ","fork":false,"url":"https://api.github.com/repos/ceph/ceph","forks_url":"https://api.github.com/repos/ceph/ceph/forks","keys_url":"https://api.github.com/repos/ceph/ceph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ceph/ceph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ceph/ceph/teams","hooks_url":"https://api.github.com/repos/ceph/ceph/hooks","issue_events_url":"https://api.github.com/repos/ceph/ceph/issues/events{/number}","events_url":"https://api.github.com/repos/ceph/ceph/events","assignees_url":"https://api.github.com/repos/ceph/ceph/assignees{/user}","branches_url":"https://api.github.com/repos/ceph/ceph/branches{/branch}","tags_url":"https://api.github.com/repos/ceph/ceph/tags","blobs_url":"https://api.github.com/repos/ceph/ceph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ceph/ceph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ceph/ceph/git/refs{/sha}","trees_url":"https://api.github.com/repos/ceph/ceph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ceph/ceph/statuses/{sha}","languages_url":"https://api.github.com/repos/ceph/ceph/languages","stargazers_url":"https://api.github.com/repos/ceph/ceph/stargazers","contributors_url":"https://api.github.com/repos/ceph/ceph/contributors","subscribers_url":"https://api.github.com/repos/ceph/ceph/subscribers","subscription_url":"https://api.github.com/repos/ceph/ceph/subscription","commits_url":"https://api.github.com/repos/ceph/ceph/commits{/sha}","git_commits_url":"https://api.github.com/repos/ceph/ceph/git/commits{/sha}","comments_url":"https://api.github.com/repos/ceph/ceph/comments{/number}","issue_comment_url":"https://api.github.com/repos/ceph/ceph/issues/comments{/number}","contents_url":"https://api.github.com/repos/ceph/ceph/contents/{+path}","compare_url":"https://api.github.com/repos/ceph/ceph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ceph/ceph/merges","archive_url":"https://api.github.com/repos/ceph/ceph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ceph/ceph/downloads","issues_url":"https://api.github.com/repos/ceph/ceph/issues{/number}","pulls_url":"https://api.github.com/repos/ceph/ceph/pulls{/number}","milestones_url":"https://api.github.com/repos/ceph/ceph/milestones{/number}","notifications_url":"https://api.github.com/repos/ceph/ceph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ceph/ceph/labels{/name}","releases_url":"https://api.github.com/repos/ceph/ceph/releases{/id}","created_at":"2011-09-01T21:41:26Z","updated_at":"2015-08-27T11:19:16Z","pushed_at":"2015-08-28T02:25:53Z","git_url":"git://github.com/ceph/ceph.git","ssh_url":"git@github.com:ceph/ceph.git","clone_url":"https://github.com/ceph/ceph.git","svn_url":"https://github.com/ceph/ceph","homepage":"http://ceph.com","size":491926,"stargazers_count":1501,"watchers_count":1501,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":872,"mirror_url":null,"open_issues_count":248,"forks":872,"open_issues":248,"watchers":1501,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ceph/ceph/pulls/5694"},"html":{"href":"https://github.com/ceph/ceph/pull/5694"},"issue":{"href":"https://api.github.com/repos/ceph/ceph/issues/5694"},"comments":{"href":"https://api.github.com/repos/ceph/ceph/issues/5694/comments"},"review_comments":{"href":"https://api.github.com/repos/ceph/ceph/pulls/5694/comments"},"review_comment":{"href":"https://api.github.com/repos/ceph/ceph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ceph/ceph/pulls/5694/commits"},"statuses":{"href":"https://api.github.com/repos/ceph/ceph/statuses/fed328d6c40f24a656afa301b043352f6b23a1c6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":8,"changed_files":1}}