<br><br><div class="gmail_quote">On Tue, Jun 10, 2008 at 10:06 AM, Roger Ineichen &lt;dev@projekt01.ch&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br>
<br>
&gt; Betreff: Re: [Zope-dev] permission inheritance from conflicting groups<br>
<div><div></div><div class="Wj3C7c">&gt;<br>
&gt; On Jun 9, 2008, at 9:38 PM, Daniel Blackburn wrote:<br>
&gt;<br>
&gt; &gt; It seems that there either may be an issue with Zope<br>
&gt; security or I do<br>
&gt; &gt; not understand it properly. Please let me know what you guys think.<br>
&gt;<br>
&gt; It seems you misunderstood it.<br>
&gt;<br>
&gt; &gt; Lets say we have a principal with no direct permissions or roles<br>
&gt; &gt; assigned to see a view index.html. The principal has two groups,<br>
&gt; &gt; group1 and group2. group1 allows the principal to see index.html and<br>
&gt; &gt; group2 denys access to index.html. It seems to me that in this<br>
&gt; &gt; situation of conflicting permissions a deny permission<br>
&gt; should result<br>
&gt; &gt; for the principal to the index view. However it does not, the<br>
&gt; &gt; permission will be digested into allowing the principal to<br>
&gt; have access<br>
&gt; &gt; to the view. Is this the desired behavior, or just simply<br>
&gt; overlooked.<br>
&gt; &gt; I looked in the doctests and did not see anything like this. Any<br>
&gt; &gt; feedback would be appreciated.<br>
&gt;<br>
&gt; Here&#39;s a scenario from the real world.<br>
&gt;<br>
&gt; You start working in a company. &nbsp;The security team puts you<br>
&gt; in a group of regular employees so that when you swipe you<br>
&gt; card at the card readers in front of each door you are<br>
&gt; allowed to rooms A, B, and C, but explicitly denied access to<br>
&gt; rooms D, E, and F.<br>
&gt;<br>
&gt; After a while you are promoted to a special team. &nbsp;The<br>
&gt; security team adds you to that group. &nbsp;Now when you swipe<br>
&gt; your card at the door D, the computer checks the following.<br>
&gt;<br>
&gt; - Read your employee ID from the card.<br>
&gt; - Get the groups that employee ID belongs to.<br>
&gt; &nbsp; &nbsp; &nbsp; - Regular employee group<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - Cannot access door D<br>
&gt; &nbsp; &nbsp; &nbsp; - Special team group<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - Can access door D<br>
&gt; - Employee ID belongs to at least one group that can access this door.<br>
&gt; - Open the door.<br>
&gt;<br>
&gt; The door F will be open only to a member of the security team (group).<br>
&gt;<br>
&gt; This is equivalent to the old times when they give you a key<br>
&gt; when you start working. &nbsp;That key does not let you in all rooms.<br>
&gt; After a while, you are promoted, which really means that you<br>
&gt; are in a special group. &nbsp;They give you another key. &nbsp;That one<br>
&gt; lets you in one more room.<br>
&gt;<br>
&gt; Can you access that room?<br>
&gt; Not with the first key.<br>
&gt; How about the second?<br>
<br>
</div></div>I think this way too and can agree and yes, the zope<br>
securitpolicy acts this way by default.<br>
<br>
but...<br>
You can implement a custom securitypolicy which takes more<br>
care on deny settings. I think it&#39;s also valid for high secure<br>
systems that a deny is allways a deny. This means if you will get<br>
any deny from somewhere you will not be allowd to access it.<br>
<br>
The default policy makes it real hard to find out if some bad settings<br>
give access to the wrong users. But since we have the great security<br>
tool from Daniel it&#39;s no problem anymore to find out what&#39;s configured.<br>
<br>
Regards<br>
<font color="#888888">Roger Ineichen</font></blockquote><div><br><br>&nbsp;&nbsp;&nbsp;&nbsp; Thanks guys,<br>&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; I just wanted some clarification for the security tool as I was running<br>&nbsp;&nbsp;&nbsp;&nbsp; through these edge cases with the demo. I am more of a default deny <br>
&nbsp;&nbsp;&nbsp;&nbsp; person myself as well. Thanks for the compliment Roger it nice to see <br>&nbsp;&nbsp;&nbsp;&nbsp; someone using it. I have been procrastinating the Beta release but I think<br>&nbsp;&nbsp;&nbsp;&nbsp; I will bite the bullet this week.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
</font><div><div></div><div class="Wj3C7c">&nbsp;_______________________________________________<br>
&gt; Zope-Dev maillist &nbsp;- &nbsp;<a href="mailto:Zope-Dev@zope.org">Zope-Dev@zope.org</a><br>
&gt; <a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a><br>
&gt; ** &nbsp;No cross posts or HTML encoding! &nbsp;** (Related lists -<br>
&gt; <a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
&gt; &nbsp;<a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a> )<br>
&gt;<br>
<br>
_______________________________________________<br>
Zope-Dev maillist &nbsp;- &nbsp;<a href="mailto:Zope-Dev@zope.org">Zope-Dev@zope.org</a><br>
<a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a><br>
** &nbsp;No cross posts or HTML encoding! &nbsp;**<br>
(Related lists -<br>
&nbsp;<a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
&nbsp;<a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a> )<br>
</div></div></blockquote></div><br>