{"push_id":1208936915,"size":1,"distinct_size":1,"ref":"refs/heads/rgw-support-s3subuser","head":"6535f6ad2137ee55bf5531e865c05aa10bd39bd0","before":"61298d2877e69bb5df191ce29eda3e65eee841df","commits":[{"sha":"6535f6ad2137ee55bf5531e865c05aa10bd39bd0","author":{"name":"snakeAngel2015","email":"673e91174409226aad7f47dd16ccdebb43ee0a2c@h3c.com"},"message":"rgw: add suport for creating S3 type subuser of admin rest api\n\nFixes: http://tracker.ceph.com/issues/16682\n\nThe original code cannot support create s3 type subuser of admin rest api as when i execute the following command:\n\n  ./s3curl.pl --id=personal --put -- http://radosgw.h3c.com:8000/admin/user?subuser\\&uid=yrf2\\&subuser=yrf2:yrf1\\&key-type=s3 -v\n\nit would return msg as follows :\n\n\t < HTTP/1.1 403 Forbidden\n\t< Date: Thu, 14 Jul 2016 07:04:40 GMT\n\t* Server Apache/2.4.7 (Ubuntu) is not blacklisted\n\t< Server: Apache/2.4.7 (Ubuntu)\n\t< x-amz-request-id: tx00000000000000006608f-0057873988-8551-slave\n\t< Accept-Ranges: bytes\n\t< Content-Length: 114\n\t< Content-Type: application/json\n\t<\n\t* Connection #0 to host slave.com left intact\n\t{\"Code\":\"InvalidAccessKeyId\",\"RequestId\":\"tx00000000000000006608f-0057873988-8551-slave\",\"HostId\":\"8551-slave-us\"}\n\n But i have modified the codes for support it ,and it will return actual msg as follows :\n\n  \"subusers\": [\n        {\n            \"id\": \"yrf2:yrf1\",\n            \"permissions\": \"<none>\"\n        }\n    ],\n    \"keys\": [\n        {\n            \"user\": \"yrf2\",\n            \"access_key\": \"B46PXYFEWUX0IMHGKP8C\",\n            \"secret_key\": \"2JYxywXizqwiiMd74UXrJdSJMPNlBtYwF5z8rNvh\"\n        },\n        {\n            \"user\": \"yrf2:yrf1\",\n            \"access_key\": \"INO55WXJ7JQ1ZZGSAB6B\",\n            \"secret_key\": \"GgCKEfF9hArV2hglunbO7KtvKZnbhmsDpqjSj5DL\"\n        }\n    ],\n\nPlease check it ,thanks .\n\nSigned-off-by: snakeAngel2015 <li.jieA@h3c.com>","distinct":true,"url":"https://api.github.com/repos/snakeAngel2015/ceph/commits/6535f6ad2137ee55bf5531e865c05aa10bd39bd0"}]}
{"actor":{"display_login":"snakeAngel2015"}}