Hi! Running the command swift capabilities I obtain version version:
2.5.1.dev134. From the information in this link
<https://github.com/openstack/swift/blob/master/CHANGELOG> It seems that
Liberty release included swift 2.5.0, so my version should support temp url
feature.
I am using Swift SAIO version, installed according to documentation in this
link <http://docs.openstack.org/developer/swift/development_saio.html>. The
proxy server pipeline is the following:
pipeline = catch_errors gatekeeper healthcheck proxy-logging cache bulk
tempurl ratelimit crossdomain container_sync tempauth staticweb
container-quotas account-quotas slo dlo versioned_writes proxy-logging
proxy-server
I am not using keystone, I am using tempauth, I do not know if that is ok
or not.
The sequence of requests I make are:
curl -v -H 'X-Auth-User:ubiprint3d:admin' -H 'X-Auth-Key:changeme'
http://localhost:8080/auth/v1.0/ --> I obtain X-Auth-Token:
AUTH_tke7ad8b3cbc184d8b9bccd34a5202f933
curl -v -H 'X-Auth-Token: AUTH_tke7ad8b3cbc184d8b9bccd34a5202f933'
http://localhost:8080/v1/AUTH_ubiprint3d --> I obtain (as expected)
X-Account-Meta-Temp-Url-Key: cafebabe
curl -H 'X-Auth-Token: AUTH_tke7ad8b3cbc184d8b9bccd34a5202f933'
http://localhost:8080/v1/AUTH_ubiprint3d/ubiprint3d --> returns one line:
image.jpg (the only one object in container)
swift-temp-url GET 86400 /v1/AUTH_ubiprint3d/ubiprint3d/image.jpg
b3968d0207b54ece87cccc06515a89d4 --> returns temp url
/v1/AUTH_ubiprint3d/ubiprint3d/image.jpg?temp_url_sig=2b66fc0c43f7155f8fb9d0eda28ac0d7e7679f78&temp_url_expires=1448082214
curl -X GET -v
http://localhost:8080/v1/AUTH_ubiprint3d/ubiprint3d/image.jpg?temp_url_sig=2b66fc0c43f7155f8fb9d0eda28ac0d7e7679f78&temp_url_expires=1448082214
--> returns 401 Unauthorized: Temp URL invalid
What am I doing wrong?
–
-------------------------------------------------
José Antonio Lorenzo Fernández
email: joanlofe@gmail.com
-------------------------------------------------
According to the documentation on http://docs.openstack.org/kilo/config-reference/content/object-storage-tempurl.html it seems that this feature was introduced in the Kilo release.
Are you sure that your Swift installation is running Kilo? In the Fiware labs, they are currently running Juno release. An update to Kilo release is planned for the near future for some of the regions.