[openstack-dev] [Climate] How we agree to determine that an user has admin rights ?

Sylvain Bauza sylvain.bauza at bull.net
Wed Nov 20 10:06:07 UTC 2013


Hi,

When reviewing https://review.openstack.org/#/c/54539/, it appeared to 
me that we need to make consensus on the way to know that a request is 
having admin creds.
Currently, for implementing policies check in Climate, I'm looking at 
context.roles dict, which contains the unicode string 'admin' if so. I 
don't need to have an extra param. That said, having a method 
check_is_admin on the context module would be great, and I fully reckon 
it would be helpful.

What do you think all folks ?

-Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131120/ff5645b1/attachment.html>


More information about the OpenStack-dev mailing list