<html><head></head><body bgcolor="#FFFFFF"><div>Role *names* are a human-interface element (arbitrarily defined by users for organizational purposes) and humans would intuitively compare them with case insensitivity (they're comparing organizational meaning, not strings)... if we're going to bother comparing them in code, I'd prefer it to be done with case-insensitivity to avoid confusion.</div><div><br></div><div>However, the machine-readable identifier is really intended to be the Role ID (UUID, etc) from keystone.<br><br>-Dolph Mathews</div><div><br>On Jun 8, 2012, at 6:35 PM, Christopher B Ferris <<a href="mailto:chrisfer@us.ibm.com">chrisfer@us.ibm.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>case-insensitive - why would 'Admin' and 'admin' be different? Sure, a role is represented by a string, but why does that string need to be case sensitive?</div><div>I'd think that if you had distinct roles attributed to 'Admin' and 'admin' that that would lead to confusion.<br><br>Cheers,<br><br>Christopher Ferris<br>IBM Distinguished Engineer, CTO Industry and Cloud Standards<br>Member, IBM Academy of Technology<br>IBM Software Group, Standards Strategy<br>email: <a href="mailto:chrisfer@us.ibm.com">chrisfer@us.ibm.com</a><br>Twitter: christo4ferris<br>phone: +1 508 234 2986</div><br><br><font color="#990099">-----openstack-bounces+chrisfer=<a href="mailto:us.ibm.com@lists.launchpad.net">us.ibm.com@lists.launchpad.net</a> wrote: -----</font><div style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: Kiall Mac Innes <<a href="mailto:kiall@managedit.ie">kiall@managedit.ie</a>><br>From: Brian Waldon <brian.waldon@rackspace.com><br>Sent by: <a href="mailto:openstack-bounces+chrisfer=us.ibm.com@lists.launchpad.net">openstack-bounces+chrisfer=us.ibm.com@lists.launchpad.net</a><br>Date: 06/08/2012 07:21PM<br>Cc: "<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a> \(<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>\)" <<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>><br>Subject: Re: [Openstack] Comparing roles - case (in)sensitivity<br><br><div>I guess I'm looking at this from more of a purist development point of view: 'Admin' and 'admin' just can't be equal. If I think of this as comparing roles, where a role is an abstract concept, case-insensitivity makes more sense. A string is simply being used to represent the role, where the intent of the role is what really needs to be compared.</div><div><br></div><div>My goal here is to get everybody on board with a single approach and apply it across all projects. I don't *really* care too much which approach we take.</div><div><br></div><div>Waldon</div><br><div><div>On Jun 8, 2012, at 3:27 PM, Kiall Mac Innes wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p>Sure - The most obvious reason is human error leading to a security hole. E.g. Accidently assigning a user "Admin" when you really meant to assign "admin".</p><p>Treating roles as case insensitive helps prevent this kind of human error.</p><p>What advantages does allowing distinct "Admin" and "admin" roles provide?</p><p>Thanks,<br>
Kiall</p><p>Sent from my phone.</p>
<div class="gmail_quote">On Jun 8, 2012 11:20 p.m., "Brian Waldon" <<a href="mailto:brian.waldon@rackspace.com">brian.waldon@rackspace.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Can you explain why?<div><br><div><div>On Jun 8, 2012, at 3:18 PM, Kiall Mac Innes wrote:</div><br><blockquote type="cite"><p>No, I'm suggesting they should all be treated as a single role. I.e. roles should be case insensitive.<br>
</p><p>Thanks,<br>
Kiall</p><p>Sent from my phone.</p>
<div class="gmail_quote">On Jun 8, 2012 11:16 p.m., "Brian Waldon" <<a href="mailto:brian.waldon@rackspace.com" target="_blank">brian.waldon@rackspace.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">I'm suggesting we support only a single representation of a role across all projects: 'admin', 'Admin', and 'admIn' would be three separate roles.<div><br></div>

<div>Are you suggesting otherwise?</div><div><br></div><div><div><div>On Jun 8, 2012, at 3:14 PM, Kiall Mac Innes wrote:</div><br><blockquote type="cite"><p>What's the argument for allowing both, for example, "admin", "Admin" and "admIn" roles?</p><p>This seems like one place where case insensitive makes the most sense.</p><p>Thanks,<br>
Kiall</p><p>Sent from my phone.</p>
<div class="gmail_quote">On Jun 8, 2012 11:01 p.m., "Joseph Suh" <<a href="mailto:jsuh@isi.edu" target="_blank">jsuh@isi.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I'd vote case-sensitive.<br>
<br>
Joseph<br>
<br>
----<br>
(w) <a href="tel:703-248-6160" value="+17032486160" target="_blank">703-248-6160</a><br>
(c) <a href="tel:571-340-2434" value="+15713402434" target="_blank">571-340-2434</a><br>
(f) <a href="tel:703-812-3712" value="+17038123712" target="_blank">703-812-3712</a><br>
3811 N. Fairfax Drive Suite 200<br>
Arlington, VA, 22203, USA<br>
<a href="http://www.east.isi.edu/~jsuh" target="_blank">http://www.east.isi.edu/~jsuh</a><br>
<br>
----- Original Message -----<br>
From: "Brian Waldon" <<a href="mailto:brian.waldon@rackspace.com" target="_blank">brian.waldon@rackspace.com</a>><br>
To: "<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a> (<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>)" <<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>><br>



Sent: Friday, June 8, 2012 5:50:45 PM<br>
Subject: [Openstack] Comparing roles - case (in)sensitivity<br>
<br>
<br>
<br>
tl;dr - Should we compare roles as case-sensitive or case-insensitive? I vote case-sensitive.<br>
<br>
This bug was recently filed in Glance: <a href="https://bugs.launchpad.net/glance/+bug/1010519" target="_blank">https://bugs.launchpad.net/glance/+bug/1010519</a> . It points out that Nova and Keystone are both case-insensitive when it comes to role comparison, yet Glance *is* case sensitive. I'm in favor of moving other projects to a case-sensitive approach for two main reasons:<br>



<br>
<br>
1) If a role is a string, and comparing strings is inherently case-sensitive, then role comparison would logically be case-sensitive<br>
2) I get to do less work<br>
<br>
<br>
<br>
Thoughts?<br>
<br>
<br>
Brian Waldon<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div>
</blockquote></div><br></div></div></blockquote></div>
</blockquote></div><br></div></div></blockquote></div>
</blockquote></div><br>
<div><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto: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></font></div></brian.waldon@rackspace.com></div></div><div></div></font>

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a></span><br><span>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a></span><br><span>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a></span><br><span>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a></span><br></div></blockquote></body></html>