<HTML>
<HEAD>
<TITLE>Re: [Openstack] 'admin' role hard-coded in keystone and nova, and policy.json</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Cool, I’m glad that is the ultimate goal.<BR>
<BR>
It seems like nova should be asking keystone for an initial policy template of some kind, which nova then fills in its “specifics” with or policies can be fully defined in keystone, either or.<BR>
<BR>
Just people should be aware that making custom roles might not mean much if policy.json files are not also updated.<BR>
<BR>
On 5/11/12 10:51 AM, "Vishvananda Ishaya" <<a href="vishvananda@gmail.com">vishvananda@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Most of nova is configurable via policy.json, but there is the issue with context.is_admin checks that still exist in a few places. We definitely need to modify that.<BR>
<BR>
Joshua, the idea is that policy.json will ultimately be managed in keystone as well. Currently the policy.json is checked for modifications, so it would be possible to throw it on shared storage and modify it for every node at once without having to restart the nodes.  This is an interim solution until we allow for creating and retrieving policies inside of keystone. <BR>
<BR>
Vish<BR>
<BR>
On Thu, May 10, 2012 at 7:13 PM, Joshua Harlow <<a href="harlowja@yahoo-inc.com">harlowja@yahoo-inc.com</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I was also wondering about this, it seems there are lots of policy.json files with hard coded roles in them, which is weird since keystone supports the creation of roles and such, but if u create a role which isn’t in a policy.json then u have just caused yourself a problem, which isn’t very apparent...<BR>
<BR>
<BR>
On 5/10/12 2:32 PM, "Salman A Baset" <<a href="sabaset@us.ibm.com">sabaset@us.ibm.com</a> <<a href="http://sabaset@us.ibm.com">http://sabaset@us.ibm.com</a>> > wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>It seems that 'admin' role is hard-coded cross nova and horizon. As a result if I want to define 'myadmin' role, and grant it all the admin privileges, it does not seem possible. Is this a recognized limitation? <BR>
<BR>
Further, is there some good documentation on policy.json for nova, keystone, and glance?<BR>
<BR>
Thanks.<BR>
<BR>
Best Regards,<BR>
<BR>
Salman A. Baset<BR>
Research Staff Member, IBM T. J. Watson Research Center<BR>
Tel: +1-914-784-6248 <tel:%2B1-914-784-6248> <BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
_______________________________________________<BR>
Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>