Skip to content

s3curl - radosgw access denied #14

@husseinharake

Description

@husseinharake

Dear Sirs,

I am trying to use s3curl to access openstack using radosgw:
I can list the buckets and their contents without any problem, I have a problem when I try to put a file or create a bucket, I get access denied.

We are convinced that its not related to radosgw permissions, since we can put file using cyberduck or s3cmd using the same credential.

listing files is fine:

user@server:~/s3curl-master# ./s3curl.pl --id=prod -- http://server:9090/swift/v1/Test1
Cyberduck-6.0.0.24625.zip
e1000e-3.3.5.3.tar.gz

putting or creating file or bucket I get this error:

./s3curl.pl --id=prod1 --createBucket -- http://server:9090/swift/v1/ONE
AccessDenied

with debug enabled:

./s3curl.pl --debug --id=prod1 --createBucket -- http://server:9090/swift/v1/ONE
s3curl: Found the url: host=server; port=9090; uri=/swift/v1/ONE; query=;
s3curl: cname endpoint signing case
s3curl: StringToSign='PUT\n\n\nWed, 17 May 2017 14:52:54 +0000\n/server/swift/v1/ONE'
s3curl: exec curl -v -H 'Date: Wed, 17 May 2017 14:52:54 +0000' -H 'Authorization: AWS fred:swift:KEY=' -L -H 'content-type: ' --data-binary -X PUT http://server:9090/swift/v1/ONE

  • Trying IP...
  • Connected to server (IP) port 9090 (#0)

PUT /swift/v1/ONE HTTP/1.1
Host: server:9090
User-Agent: curl/7.47.0
Accept: /
Date: Wed, 17 May 2017 14:52:54 +0000
Authorization: AWS fred:swift:KEY=
Content-Length: 0

< HTTP/1.1 401 Unauthorized
< X-Trans-Id: tx000000000000000000025-00591c63c6-62dcde-default
< Content-Length: 12
< Accept-Ranges: bytes
< Content-Type: text/plain; charset=utf-8
< Date: Wed, 17 May 2017 14:52:54 GMT

  • HTTP error before end of send, stop sending
    <
  • Excess found in a non pipelined read: excess = 1, size = 12, maxdownload = 12, bytecount = 0
  • Closing connection 0

Thanks
Hussein

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions