Reputation: 1002
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
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