Swift Public Container and X-CDN tags

Asked by Daniel Marzini on 2011-02-18

Hi all,
first of all, Thank you for your wonderful work.

I've Played a lot with swift and I read that the public container was not supported in austin release.
After the Bexar release, in the documentation (link: http://docs.openstack.org/openstack-object-storage/developer/content/ch02s01.html) inside the authentication section, something new appears:

Example 2.2. Authentication Response

  HTTP/1.1 204 No Content
  Date: Mon, 12 Nov 2010 15:32:21 GMT
  Server: Apache
  X-Storage-Url: https://storage.swiftdrive.com/v1/CF_xer7_34
  X-CDN-Management-Url: https://cdn.swiftdrive.com/v1/CF_xer7_34
  X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb
  Content-Length: 0
  Content-Type: text/plain; charset=UTF-8

I'm not able to reproduce the same response. My Swift SAIO does not reply with the X-CDN-Management-Url.

Is there an error in the documentation o I have to troubleshoot, once again, my swift installation?

Thanking you,
Regards,
Daniel

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
Colin Nicholson
Solved:
2011-02-18
Last query:
2011-02-18
Last reply:
2011-02-18

Hi Daniel,

I think that this is an error in the documentation, perhaps being copied and pasted from the Rackspace Cloud Files docs - swift does not support CDN. It does, however, support public containers.

You can make a container public with this command:

st -A https://swift.auth.url/auth/v1.0 -U <account:user> -K <key> post -r .r:* <container>

You'll then be able to access all files in this container using its usual url, but without having to authenticate.

Regards,
Colin

Thank You Very Much Colin!

Stephen A. Broeker (sbroeker) said : #3

If I am not using CDN, but setting the X-Container-Read header for a container,
what is the URL that I can use to directly access the container?

sujay (sujay-m17) said : #4

Hi,

Can i make a public container such that i need not authenticate if i want to upload files into it? How to do it?