Is there a way to configure unauthenticated object access?

asked 2013-08-21 23:23:40 -0600

neilc gravatar image

I have a use case where I want to allow access to a particular object in Swift without enforcing authentication, but I don't want the Content-Disposition header being set. In fact, I require it not be set, so using tempurl is not going to work. Is there a way to configure this, or will I have to modify the code?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-08-22 10:56:55 -0600

neilc gravatar image

OK, reading through the docs some more I found:

http://docs.openstack.org/api/openstack-object-storage/1.0/content/special-metadata-acls.html

which has the answer to the question. The short answer is to set X-Container-Read to ".r:*" on the container, which allows everyone read access to the objects in it.

edit flag offensive delete link more

Comments

Please accept the answer, if it has worked for you.

Jobin gravatar imageJobin ( 2013-08-22 14:19:01 -0600 )edit

I don't have enough points to accept my own answer, sadly.

neilc gravatar imageneilc ( 2013-08-22 14:49:28 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-08-21 23:23:40 -0600

Seen: 100 times

Last updated: Aug 22 '13