Container ACLs

As we saw in the previous sections, in order to access containers and objects, a valid auth token has to be sent in the X-Auth-Token header with each request. Otherwise, an authorization failure code will be returned. In certain cases, access needs to be provided to other clients and applications for certain containers. Access can be provided by setting a metadata element for the container, called X-Container-Read. The following paragraphs cover the setting of this Access Control List (ACL) for the cities container.

First, let's list the container status that shows the lack of ACL. Run the following command with admin privileges (the admin user will have the permissions to run this command):

swift stat cities

The values of Read ACL ...

Get OpenStack Object Storage (Swift) Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.