[Grok-dev] Let's make security proxies an option
gary.poster at gmail.com
Fri Mar 6 14:36:33 EST 2009
On Mar 6, 2009, at 2:18 PM, Shane Hathaway wrote:
> Hi Grokkers,
> I'm working on an application with sensitive security requirements. I
> really need to deny everything by default, otherwise it's impossible
> enumerate the risks. Still, I'd like to use Grok's features to get
> application working quickly.
> Martijn talked about security in Grok here:
> As Martijn explained, Grok currently disables most of Zope 3's model
> security because it is somewhat cumbersome. However, one of the
> things that keep me coming back to Zope is the model security. I need
> that safety net.
> For my current project, without model security, Grok is a no-go for
> However, I decided to see if I could re-enable model security by
> commenting out the publication factories in grok/configure.zcml. It
> worked, except that then my app was inaccessible. I added class
> declarations in my own configure.zcml, and everything worked fine
> Based on this experience, I think Grok should have documented ways to
> enable model security and set method and attribute permissions using
> Grok functions rather than ZCML. I don't know whether model security
> should be enabled by default; that's a much bigger discussion.
For what it is worth, I think the fact that repoze uses model
security, and the fact that other big projects like Launchpad and ZC
projects use model security, and want it, might further indicate that
it is a valuable option.
More information about the Grok-dev