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.
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
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}the use info is
curl -XPUT http://kp/mybucket -H'x-amz-acl:public-read-write' -H'Authorization: AWS {access-key}:{hash-of-header-and-secret}'
{ "user_id": "johndoe", "rados_uid": 0, "display_name": "John Doe", "email": "john@xxxxxxxxxxx", "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@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com