swift3 and tempauth 403 error

Asked by David Johannsson

Hi I'm trying to use swift3 with tempauth but I always end up with 403 error when trying to create a bucket

I'm trying to use the default test user for authentication but it results in the following error

s3curl --id credentials --createBucket --debug -- http://localhost:8080/bucket

s3curl: Found the url: host=localhost; port=8080; uri=/bucket1; query=;
s3curl: cname endpoint signing case
s3curl: StringToSign='PUT\n\n\nThu, 24 Nov 2016 16:39:46 +0000\n/localhost/bucket1'
s3curl: exec curl -H Date: Thu, 24 Nov 2016 16:39:46 +0000 -H Authorization: AWS test:tester:g83iyHy0AaGc1M/N7bbEWKAGpKo= -L -H content-type: --data-binary -X PUT http://localhost:8080/bucket1
<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>AccessDenied</Code>
  <Message>Access denied</Message>
</Error>

s3curl --id credentials --createBucket --debug -- http://localhost:8080/AUTH_test/bucket1

s3curl: Found the url: host=localhost; port=8080; uri=/AUTH_test/bucket1; query=;
s3curl: cname endpoint signing case
s3curl: StringToSign='PUT\n\n\nThu, 24 Nov 2016 16:42:01 +0000\n/localhost/AUTH_test/bucket1'
s3curl: exec curl -H Date: Thu, 24 Nov 2016 16:42:01 +0000 -H Authorization: AWS test:tester:zuJ+GgRlJNfCommM3+BCVM0fiG0= -L -H content-type: --data-binary -X PUT http://localhost:8080/AUTH_test/bucket1
<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>AccessDenied</Code>
  <Message>Access denied</Message>
</Error>

proxy-server.conf http://paste.openstack.org/show/590316/
.s3curl http://paste.openstack.org/show/590317/

Any help on what might be wrong would be much appreciated

Question information

Language:
English Edit question
Status:
Solved
For:
Swift3 Edit question
Assignee:
No assignee Edit question
Solved by:
David Johannsson
Solved:
Last query:
Last reply:
Revision history for this message
David Johannsson (davideaglephotos) said :
#1

Turns out that the config was right but I failed to change set "my @endpoints = ( 'localhost');" in s3curl.pl