[Openstack] Swift tempurl

Morten Møller Riis mmr at gigahost.dk
Wed Jul 10 08:24:34 UTC 2013

I'm having trouble getting tempurl to work.

I set the "X-Account-Meta-Temp-Url-Key" metadata on the account. And a GET request shows it's set correctly.

I've enabled it on the proxy server in /etc/swift/proxy-server.conf:

bind_port = 8080
workers = 8
user = swift

pipeline = healthcheck cache tempurl swauth proxy-server

use = egg:swift#proxy
allow_account_management = true
account_autocreate = true

use = egg:swift#tempurl

use = egg:swauth#swauth
set log_name = swauth
super_admin_key = <removed>
default_swift_cluster = gigahost#https://<url>/v1#http://localhost:8080/v1

use = egg:swift#healthcheck

use = egg:swift#memcache
memcache_servers =

When creating the tempurl's, even using the swift-temp-url program I get:

~ $ curl -i "https://<url>/v1/AUTH_224b1001-2c75-444c-aaef-30af13b9154c/000/206.pdf?temp_url_sig=387d79120a591e1cf6f4d4356f5c0a96fb49d202&temp_url_expires=1373438360"
HTTP/1.1 401 Unauthorized
Server: nginx
Date: Wed, 10 Jul 2013 08:21:32 GMT
Content-Type: text/plain
Content-Length: 35
Connection: keep-alive

401 Unauthorized: Temp URL invalid

I've even tried running it locally on the proxy-server to localhost:8080, so I'm sure it's not nginx doing any funny stuff.

Does anybody have any suggestions? I'm pretty lost :(

Mvh / Best regards
Morten Møller Riis
Gigahost ApS
mmr at gigahost.dk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130710/43867670/attachment.html>

More information about the Openstack mailing list