<html><body>
<p><font size="2" color="#222222" face="sans-serif"><i>>>Is this the correct general format?</i></font><br>
<font size="2" color="#222222" face="sans-serif"><i>>>user_username_grpname = password</i></font><br>
<font size="3" face="sans-serif">The tempauth format is </font><font size="3" face="sans-serif"><i>user_<accountname>_<username> = <password></i></font><br>
<br>
<font size="3" face="sans-serif"><i>>>Is there any way where i can list the containers in a account?</i></font><br>
<font size="3" face="sans-serif">I don't see the possibility of doing this without code change. </font><br>
<br>
<font size="2" color="#222222" face="sans-serif"><i>>>Does .rlistings do the same job as staticweb?</i></font><br>
<font size="2" face="sans-serif">IMO, .rlistings directive is implemented as ACL. Staticweb middleware are using customerized metadata "web-listings: true" to enable listing objects in static web page. But you can get listings in staticweb without setting directive inside of the ACL. If you want to support API level of public listing container, you should use .rlisting directive.</font><br>
<font size="2" face="sans-serif"><br>
</font><font size="1" face="serif"><b>Best Regards, </b></font><font size="1" face="serif"><br>
<br>
</font><hr width="100%" size="2" align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="298" valign="middle">
<ul style="padding-left: 0pt"><font size="1" face="serif"><b>Edward Zhang(张华)</b></font><font size="1" face="serif"><br>
</font></ul>
</td><td width="298" valign="middle"><img width="1" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""></td></tr>
<tr valign="top"><td width="298" valign="middle"><img width="1" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""></td><td width="298" valign="middle"><img width="1" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""></td></tr>
<tr valign="top"><td width="298" valign="middle">
<ul style="padding-left: 0pt"><font size="1" face="serif"><br>
</font></ul>
</td><td width="298" valign="middle"><img width="1" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""></td></tr>
</table>
<br>
<img width="16" height="16" src="cid:2__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt="Inactive hide details for Sujay M ---2012-11-19 15:32:36--->>if you are using keystone as Swift authentication, you can create "><font size="2" color="#424282" face="sans-serif">Sujay M ---2012-11-19 15:32:36--->>if you are using keystone as Swift authentication, you can create user in an account(project) through horizion or using comma</font><br>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td style="background-image:url(cid:3__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com); background-repeat: no-repeat; " width="40%">
<ul style="padding-left: 72pt"><font size="1" face="sans-serif"><b>Sujay M <sujay.m17@gmail.com></b></font><font size="1" face="sans-serif"> </font>
<p><font size="1" face="sans-serif">2012-11-19 15:32</font></ul>
</td><td width="60%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<div align="right"><font size="1" face="sans-serif">To</font></div></td><td width="100%"><img width="1" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<ul style="padding-left: 7pt"><font size="1" face="sans-serif">Hua ZZ Zhang/China/IBM@IBMCN</font></ul>
</td></tr>
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<div align="right"><font size="1" face="sans-serif">cc</font></div></td><td width="100%"><img width="1" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<ul style="padding-left: 7pt"><font size="1" face="sans-serif">"openstack@lists.launchpad.net" <openstack@lists.launchpad.net>, openstack-bounces+zhuadl=cn.ibm.com@lists.launchpad.net, openstack-dev@lists.openstack.org, openstack-operators@lists.openstack.org</font></ul>
</td></tr>
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<div align="right"><font size="1" face="sans-serif">Subject</font></div></td><td width="100%"><img width="1" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""><br>
<ul style="padding-left: 7pt"><font size="1" face="sans-serif">Re: [Openstack] [Swift] Public Container's file listing</font></ul>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="58"><img width="1" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""></td><td width="336"><img width="1" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""></td></tr>
</table>
</td></tr>
</table>
<br>
<font size="2" color="#222222" face="sans-serif"><i>>>if you are using keystone as Swift authentication, you can create user in an account(project) through horizion or using command <br>
keystone user-create ...</i></font><br>
<br>
<font size="2" color="#222222" face="sans-serif"><i>I am using tempauth where i'm specifying all the account details as below</i></font><br>
<br>
<font size="2" color="#222222" face="sans-serif"><i>[filter:tempauth]</i></font><br>
<font size="2" color="#222222" face="sans-serif"><i>use = egg:swift#tempauth</i></font><br>
<font size="2" color="#222222" face="sans-serif"><i>user_admin_admin = admin .admin .reseller_admin</i></font><br>
<font size="2" color="#222222" face="sans-serif"><i>user_test_tester = testing .admin</i></font><br>
<font size="2" color="#222222" face="sans-serif"><i>user_test2_tester2 = testing2 .admin</i></font><br>
<font size="2" color="#222222" face="sans-serif"><i>user_test_tester3 = testing3</i></font><br>
<br>
<font size="2" color="#222222" face="sans-serif"><i>Is this the correct general format?</i></font><br>
<font size="2" color="#222222" face="sans-serif"><i>user_username_grpname = password</i></font><br>
<br>
<font size="2" color="#222222" face="sans-serif"><br>
>>For object public write, it seems that the referer is not allowed in ACL: </font><font size="2" color="#222222" face="sans-serif"><i><br>
swift post -w '.r:*' publicContainer</i></font><br>
<font size="2" color="#222222" face="sans-serif">Don't forget to add directive .rlistings to allow listing the whole public container:</font><font size="2" color="#222222" face="sans-serif"><i><br>
swift post -r '.r:*,.rlistings' publicContainer</i></font><br>
<br>
<font size="2" color="#222222" face="sans-serif"><i>thanks. (Does .rlistings do the same job as staticweb?)</i></font><br>
<font size="3" face="sans-serif"><br>
</font><br>
<font size="3" face="sans-serif">On 19 November 2012 11:59, Hua ZZ Zhang <</font><a href="mailto:zhuadl@cn.ibm.com" target="_blank"><font size="3" color="#0000FF" face="sans-serif"><u>zhuadl@cn.ibm.com</u></font></a><font size="3" face="sans-serif">> wrote:</font>
<ul style="padding-left: 9pt"><font size="3" face="sans-serif">if you are using keystone as Swift authentication, you can create user in an account(project) through horizion or using command </font><font size="3" face="sans-serif"><i><br>
keystone user-create ...</i></font><font size="3" face="sans-serif"><br>
For object public write, it seems that the referer is not allowed in ACL: </font><font size="3" face="sans-serif"><i><br>
swift post -w '.r:*' publicContainer</i></font><font size="3" face="sans-serif"><br>
</font><font size="1" face="serif"><b><br>
Best Regards, </b></font><font size="1" face="serif"><br>
</font><br>
<hr width="100%" size="2" align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="298" valign="middle">
<ul style="padding-left: 36pt"><font size="1" face="serif"><b>Edward Zhang(张华)</b></font><font size="1" face="serif"><br>
Advisory Software Engineer<br>
Software Standards & Open Source Software<br>
Emerging Technology Institute(ETI)<br>
IBM China Software Development Lab<br>
e-mail: </font><a href="mailto:zhuadl@cn.ibm.com" target="_blank"><font size="1" color="#0000FF" face="serif"><u>zhuadl@cn.ibm.com</u></font></a><font size="1" face="serif"><br>
Notes ID: Hua ZZ Zhang/China/IBM<br>
Tel: 86-10-82450483</font></ul>
</td><td width="298" valign="middle">
<ul style="padding-left: 36pt"><font size="1" face="serif">地址:北京市海淀区东北旺西路8号 中关村软件园28号楼 环宇大厦3层 邮编:100193<br>
Address: 3F Ring, Building 28 Zhongguancun Software Park, 8 Dongbeiwang West Road, Haidian District, Beijing, P.R.C.100193</font></ul>
</td></tr>
<tr valign="top"><td width="298" valign="middle">
<ul style="padding-left: 36pt"><img src="cid:4__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="100" height="100"></ul>
</td><td width="298" valign="middle"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1"></td></tr>
<tr valign="top"><td width="298" valign="middle"><img width="1" height="1" src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" border="0" alt=""></td><td width="298" valign="middle"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1"></td></tr>
</table>
<font size="3" face="sans-serif"><br>
</font><img src="cid:2__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="16" height="16" alt="Inactive hide details for Sujay M ---2012-11-19 13:43:53---Thanks Edward Zhang,"><font size="3" color="#424282" face="sans-serif">Sujay M ---2012-11-19 13:43:53---Thanks Edward Zhang,</font><font size="3" face="sans-serif"><br>
</font>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="19%">
<ul style="padding-left: 36pt"><font size="1" face="sans-serif"><b>Sujay M <</b></font><a href="mailto:sujay.m17@gmail.com" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><b><u>sujay.m17@gmail.com</u></b></font></a><font size="1" face="sans-serif"><b>></b></font><font size="1" face="sans-serif"> </font><font size="3" face="sans-serif"> </font>
<p><font size="1" face="sans-serif">2012-11-19 13:43</font></ul>
</td><td width="81%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="4%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="58" height="1"><div align="right"><font size="1" face="sans-serif">To</font></div></td><td width="96%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1">
<ul style="padding-left: 36pt"><font size="1" face="sans-serif">Hua ZZ Zhang/China/IBM@IBMCN</font></ul>
</td></tr>
<tr valign="top"><td width="4%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="58" height="1"><div align="right"><font size="1" face="sans-serif">cc</font></div></td><td width="96%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1">
<ul style="padding-left: 36pt"><a href="mailto:openstack@lists.launchpad.net" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>openstack@lists.launchpad.net</u></font></a><font size="1" face="sans-serif">, openstack-bounces+zhuadl=</font><a href="mailto:cn.ibm.com@lists.launchpad.net" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>cn.ibm.com@lists.launchpad.net</u></font></a><font size="1" face="sans-serif">, </font><a href="mailto:openstack-dev@lists.openstack.org" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>openstack-dev@lists.openstack.org</u></font></a><font size="1" face="sans-serif">, </font><a href="mailto:openstack-operators@lists.openstack.org" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>openstack-operators@lists.openstack.org</u></font></a></ul>
</td></tr>
<tr valign="top"><td width="4%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="58" height="1"><div align="right"><font size="1" face="sans-serif">Subject</font></div></td><td width="96%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1">
<ul style="padding-left: 36pt"><font size="1" face="sans-serif">Re: [Openstack] [Swift] Public Container's file listing</font></ul>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="58"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1"></td><td width="336"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1"></td></tr>
</table>
</td></tr>
</table>
<br>
<font size="3" face="serif">Thanks Edward Zhang,<br>
</font><font size="3" face="sans-serif"><br>
<br>
>>"</font><font size="3" face="serif">You can implement access control for objects either for users or accounts using XContainer-<br>
Read: accountname and X-Container-Write: accountname:username, which<br>
allows any user from the accountname account to read but only allows the username<br>
user from the accountname account to write."<br>
<br>
How do i create users in a account? Currently i have only admin:admin account with password admin.(one user per account)<br>
<br>
<br>
<br>
>>"You can also grant public access to objects stored in OpenStack Object Storage but also limit <br>
public access using the Referer header to prevent site-based content theft such as hot-linking <br>
(for example, linking to an image filefrom off-site and therefore using other's bandwidth). <br>
The public container settings are used as the default authorization over access control lists. <br>
For example, using X-Container-Read:referer:any allows anyone to read from the container regardless<br>
of other authorization settings.<br>
<br>
Can i give public access that allows anyone to store/write the objects into a container. I have used referer for making container as public '.r:*'. Is there anything like this for write?<br>
</font><font size="3" face="sans-serif"><br>
</font><font size="3" face="serif"><br>
On 19 November 2012 10:36, Hua ZZ Zhang <</font><a href="mailto:zhuadl@cn.ibm.com" target="_blank"><font size="3" color="#0000FF" face="serif"><u>zhuadl@cn.ibm.com</u></font></a><font size="3" face="serif">> wrote:</font><font size="3" face="sans-serif"> </font>
<ul style="padding-left: 36pt"><font size="3" face="sans-serif">"</font><font size="3" face="serif">You can implement access control for objects either for users or accounts using XContainer-<br>
Read: accountname and X-Container-Write: accountname:username, which<br>
allows any user from the accountname account to read but only allows the username<br>
user from the accountname account to write."<br>
<br>
"You can also grant public access to objects stored in OpenStack Object Storage but also limit <br>
public access using the Referer header to prevent site-based content theft such as hot-linking <br>
(for example, linking to an image filefrom off-site and therefore using other's bandwidth). <br>
The public container settings are used as the default authorization over access control lists. <br>
For example, using X-Container-Read:referer:any allows anyone to read from the container regardless<br>
of other authorization settings.</font><font size="3" face="sans-serif">"</font><font size="1" face="serif"><b><br>
<br>
Best Regards, </b></font><font size="3" face="sans-serif"><br>
<br>
</font><hr width="100%" size="2" align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="298" valign="middle">
<ul style="padding-left: 36pt"><font size="1" face="serif"><b>Edward Zhang(张华)</b></font></ul>
</td><td width="298" valign="middle"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1"></td></tr>
<tr valign="top"><td width="298" valign="middle">
<ul style="padding-left: 36pt"><img src="cid:4__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="100" height="100"></ul>
</td><td width="298" valign="middle"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1"></td></tr>
<tr valign="top"><td width="298" valign="middle"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1"></td><td width="298" valign="middle"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1"></td></tr>
</table>
<font size="3" face="sans-serif"><br>
</font><img src="cid:2__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="16" height="16" alt="Inactive hide details for Sujay M ---2012-11-19 11:59:55---Hi all,"><font size="3" color="#424282" face="sans-serif">Sujay M ---2012-11-19 11:59:55---Hi all,</font>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="38%">
<ul style="padding-left: 36pt"><font size="1" face="sans-serif"><b>Sujay M <</b></font><a href="mailto:sujay.m17@gmail.com" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><b><u>sujay.m17@gmail.com</u></b></font></a><font size="1" face="sans-serif"><b>></b></font><font size="1" face="sans-serif"> <br>
Sent by: openstack-bounces+zhuadl=</font><a href="mailto:cn.ibm.com@lists.launchpad.net" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>cn.ibm.com@lists.launchpad.net</u></font></a><font size="3" face="serif"> </font><font size="3" face="sans-serif"> </font>
<p><font size="1" face="sans-serif">2012-11-19 11:59</font></ul>
</td><td width="62%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="6%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="58" height="1"><div align="right"><font size="1" face="sans-serif">To</font></div></td><td width="94%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1">
<ul style="padding-left: 36pt"><a href="mailto:openstack-operators@lists.openstack.org" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>openstack-operators@lists.openstack.org</u></font></a><font size="1" face="sans-serif">, </font><a href="mailto:openstack@lists.launchpad.net" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>openstack@lists.launchpad.net</u></font></a><font size="1" face="sans-serif">, </font><a href="mailto:openstack-dev@lists.openstack.org" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>openstack-dev@lists.openstack.org</u></font></a></ul>
</td></tr>
<tr valign="top"><td width="6%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="58" height="1"><div align="right"><font size="1" face="sans-serif">cc</font></div></td><td width="94%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1"></td></tr>
<tr valign="top"><td width="6%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="58" height="1"><div align="right"><font size="1" face="sans-serif">Subject</font></div></td><td width="94%"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1">
<ul style="padding-left: 36pt"><font size="1" face="sans-serif">[Openstack] [Swift] Public Container's file listing</font></ul>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="58"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1"></td><td width="336"><img src="cid:1__=C7BBF028DFA237C08f9e8a93df938@cn.ibm.com" width="1" height="1"></td></tr>
</table>
</td></tr>
</table>
<font size="3" face="serif"><br>
Hi all,</font><font size="3" face="sans-serif"> </font>
<p><font size="3" face="serif">Currently it is showing Unauthorized if i give only public container name for listing of files in the public Container </font>
<p><a href="http://192.168.56.20:8080/v1/AUTH_test/publicContainer/" target="_blank"><font size="3" color="#0000FF" face="serif"><u>192.168.56.20:8080/v1/AUTH_test/publicContainer/</u></font></a><font size="3" face="serif"> </font><font size="3" face="sans-serif"> </font>
<p><a href="http://192.168.56.20:8080/v1/AUTH_test/publicContainer" target="_blank"><font size="3" color="#0000FF" face="serif"><u>192.168.56.20:8080/v1/AUTH_test/publicContainer</u></font></a><font size="3" face="serif"> </font><font size="3" face="sans-serif"> </font>
<p><font size="3" face="serif">Unauthorized </font>
<p><font size="3" face="serif">Is there any way i can list the files publicly? Thanks in advance </font>
<p><font size="3" face="serif"><br>
<br>
-- <br>
Best Regards,<br>
<br>
Sujay M<br>
Final year B.Tech<br>
Computer Engineering<br>
NITK Surathkal<br>
<br>
contact: +918971897571</font><tt><font size="3"><br>
_______________________________________________<br>
Mailing list: </font></tt><a href="https://launchpad.net/~openstack" target="_blank"><tt><font size="3" color="#0000FF"><u>https://launchpad.net/~openstack</u></font></tt></a><tt><font size="3"><br>
Post to : </font></tt><a href="mailto:openstack@lists.launchpad.net" target="_blank"><tt><font size="3" color="#0000FF"><u>openstack@lists.launchpad.net</u></font></tt></a><tt><font size="3"><br>
Unsubscribe : </font></tt><a href="https://launchpad.net/~openstack" target="_blank"><tt><font size="3" color="#0000FF"><u>https://launchpad.net/~openstack</u></font></tt></a><tt><font size="3"><br>
More help : </font></tt><a href="https://help.launchpad.net/ListHelp" target="_blank"><tt><font size="3" color="#0000FF"><u>https://help.launchpad.net/ListHelp</u></font></tt></a></ul>
<br>
<font size="3" face="serif"><br>
<br>
<br>
<br>
-- <br>
Best Regards,<br>
<br>
Sujay M<br>
Final year B.Tech<br>
Computer Engineering<br>
NITK Surathkal<br>
<br>
contact: +918971897571</font><br>
<font size="3" face="sans-serif"><i>(See attached file: pic23265.gif)</i></font><font size="3" face="sans-serif"> </font></ul>
<br>
<font size="3" face="sans-serif"><br>
<br>
<br>
-- <br>
Best Regards,<br>
<br>
Sujay M<br>
Final year B.Tech<br>
Computer Engineering<br>
NITK Surathkal<br>
<br>
contact: +918971897571<br>
[附件 "pic15750.gif" 被 Hua ZZ Zhang/China/IBM 删除]</font>
<p></body></html>