[Openstack] [Swift] Use tempurl and control the input file

Shrinand Javadekar shrinand at maginatics.com
Wed Nov 20 19:05:13 UTC 2013


TempURLs are generate for a specific object (file). So if you're
filename is "foo", generate the tempurl as:

$ swift-temp-url PUT 300 /v1/AUTH_blah/container/foo <account-tempurl-key>

With the genearated url, only file "foo" will be allowed to be PUT.

-Shri

On Wed, Nov 20, 2013 at 1:31 AM, Jonathan Lu <jojokururu at gmail.com> wrote:
> Hi, all stackers,
>
>     It is said that using TempURL can control the access to Object Storage,
> and it does work by following the instruction:
>
> http://docs.openstack.org/folsom/openstack-object-storage/admin/content/swift-tempurl.html
>
>     My question is, when a PUT request is tempurled, can I limit which file
> to be put? For example if the md5 of the object is
> 787C3DF307835B40E7D23EBECDDA78CA, then all the other objects whose md5 is
> not this will be denied.
>
> Thanks.
>
> Jonathan Lu
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>




More information about the Openstack mailing list