ybert
ybert

Reputation: 1002

Disable ability to list objects in OVH OpenStack Object Storage

I created an OVH Public Cloud Object Storage Public Container and I can't disable the ability for everyone to list objects in this container. OVH uses OpenStack Object Storage.

It is really annoying, because I want to expose publicly each object stored in this container by my website, but I don't want that everyone can access the full list of objects stored in my container. Do you have any idea on how to solve this? I can't find this in OVH or OpenStack documentation.

Thanks in advance.

Upvotes: 1

Views: 961

Answers (2)

Piotr Kubala
Piotr Kubala

Reputation: 21

OVH documentation:

By configuring a container in static mode, OVHcloud's Object Storage will act as a standard web server by first serving "index.html", or presenting an HTML index of the objects' URLs if no "index.html" objects exist by default.

Insert an empty index.html file into each folder in a container to disable file listings.

Alternatively you can edit metadata information in your container. Either set X-Container-Meta-Web-Listings to false, or change X-Container-Read from ".r:*,.rlistings" to ".r:*". Use openstack client, e.q. Cyberduck.

Additional information: Create static website, Container ACLs

Upvotes: 2

David
David

Reputation: 266

Did you tried to set ACL meta data in the container ? container-acls

Upvotes: 0

Related Questions