Hello Guys: I am working with ceph nowadys and i want to use the ceph object gateway. So, i tried to use s3 API to fulfill my needs. I use the api for create a baucet.
PUT /{bucket} HTTP/1.1 Host: kp x-amz-acl: public-read-write Authorization: AWS {access-key}:{hash-of-header-and-secret} curl -XPUT http://kp/mybucket -H'x-amz-acl:public-read-write' -H'Authorization: AWS {access-key}:{hash-of-header-and-secret}' the use info is {"user_id":"johndoe","rados_uid":0,"display_name":"John Doe","email":"j...@example.com","suspended":0,"subusers":[],"keys":[{"user":"johndoe","access_key":"QFAMEDSJP5DEKJO0DDXY","secret_key":"iaSFLDVvDdQt6lkNzHyW4fPLZugBAI1g17LO0+87"}],"swift_keys":[]} the {access-key} is QFAMEDSJP5DEKJO0DDXY and the {hash-of-header-and-secret} is the result of echo base64_encode(hash_hmac('sha1', 'x-amz-acl:public-read-write', "iaSFLDVvDdQt6lkNzHyW4fPLZugBAI1g17LO0+87")) and I get the return 403 Can anyone explain the method to deal with s3 API, thanks!
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com