<div dir="ltr">Thanks for the reply John.<div><br></div><div style>We have seen a few customers struggle when setting up tempurl. Its easy to make them edit the proxy-server.conf file. But explaining the second step is a bit tedious and error-prone. I've been thinking of having a python script that does this. But something official would be better.</div>
<div style><br></div><div>Would it be a good idea to add capability to the swift command line utility to configure tempurl?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 29, 2013 at 8:48 PM, John Dickinson <span dir="ltr"><<a href="mailto:me@not.mn" target="_blank">me@not.mn</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There are no plans to change the current implementation of tempurl.<br>
<br>
In order to generate a tempurl that can be validated without relying on a network call to a centralized authority service, the owner and the service must have a shared secret. In the tempurl feature, this shared secret is set as a metadata key on the account. This allows the content owner to generate as many keys as necessary (without having to call an external service) and allows Swift to validate each one (without calling an external service).<br>

<br>
Note that an auth token is only needed in order to save the shared secret in the account metadata. Once the shared secret is set, neither the owner of the content nor the user of the tempurl (ie someone otherwise without access to the swift cluster) need a valid auth token to generate or use a tempurl.<br>

<br>
The only official docs for tempurl are at <a href="http://docs.openstack.org/developer/swift/misc.html#module-swift.common.middleware.tempurl" target="_blank">http://docs.openstack.org/developer/swift/misc.html#module-swift.common.middleware.tempurl</a> (We should probably have some docs written for <a href="http://docs.openstack.org/api/openstack-object-storage/1.0/content/" target="_blank">http://docs.openstack.org/api/openstack-object-storage/1.0/content/</a> on this feature.)<br>

<br>
--John<br>
<div><div class="h5"><br>
<br>
<br>
On Apr 29, 2013, at 5:26 PM, Shrinand Javadekar <<a href="mailto:shrinand@maginatics.com">shrinand@maginatics.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> Configuring tempurl in openstack Swift requires two steps:<br>
><br>
> 1) Adding tempurl to the pipeline in proxy-server.conf<br>
> 2) Setting the tempurl key on the account.<br>
><br>
> Step #1 above is fairly straight forward. However, step #2 is slightly complicated; at least as per [1]. It requires first authenticating the user and getting an auth token. Then make an http request with the X-Meta-Tempurl-key header to set the tempurl key.<br>

><br>
> Are there easier ways to do this? If not, is it on the roadmap to do this easily?<br>
><br>
> Thanks in advance.<br>
> -Shri<br>
><br>
> [1] <a href="http://failverse.com/using-temporary-urls-on-rackspace-cloud-files/" target="_blank">http://failverse.com/using-temporary-urls-on-rackspace-cloud-files/</a><br>
><br>
</div></div>> _______________________________________________<br>
> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br>
</blockquote></div><br></div>