31 messages in com.mysql.lists.internalsRe: [Report 2] RBAC system - starting...
FromSent OnAttachments
Sergey Kudriavtsev19 May 2008 23:32 
Sergei Golubchik20 May 2008 02:18 
Mark Callaghan20 May 2008 08:30 
Karen Abgarian20 May 2008 09:23 
Sergey Kudriavtsev20 May 2008 11:51 
Sergey Kudriavtsev20 May 2008 11:59 
Sergei Golubchik20 May 2008 12:08 
Sergey Kudriavtsev20 May 2008 12:09 
Sergey Kudriavtsev20 May 2008 12:21 
Jeremy Cole20 May 2008 12:27 
Sergei Golubchik20 May 2008 13:16 
Vladimir Shebordaev20 May 2008 14:03 
Jeremy Cole20 May 2008 14:06 
Roy Lyseng20 May 2008 14:09 
Vladimir Shebordaev20 May 2008 14:17 
Roy Lyseng20 May 2008 14:19 
Roy Lyseng20 May 2008 14:20 
Jeremy Cole20 May 2008 14:32 
Jeremy Cole20 May 2008 14:40 
Jeremy Cole20 May 2008 14:44 
Jeremy Cole20 May 2008 14:48 
Jeremy Cole20 May 2008 15:00 
Vladimir Shebordaev20 May 2008 15:01 
Sergei Golubchik20 May 2008 15:06 
Jeremy Cole21 May 2008 00:29 
Jeremy Cole21 May 2008 00:55 
Vladimir Shebordaev21 May 2008 02:00 
Jeremy Cole21 May 2008 13:52 
Vladimir Shebordaev21 May 2008 15:09 
Eric Bergen21 May 2008 16:28 
Vladimir Shebordaev22 May 2008 04:37 
Subject:Re: [Report 2] RBAC system - starting point
From:Sergey Kudriavtsev (serg@gmail.com)
Date:05/20/2008 12:21:55 PM
List:com.mysql.lists.internals

Hello, Sergei!

2008/5/20 Sergei Golubchik <se@mysql.com>:

Hi!

On May 20, Sergey Kudriavtsev wrote:

2008/5/20 Sergei Golubchik <se@mysql.com>:

On May 20, Sergey Kudriavtsev wrote:

To distinguish roles from users I propose to use "Host" field of mysql.user table - If this field is empty then we should consider the specified record to be a role. Now empty field is equivalent to '%'. I will change the behaviour of parser to always fail host identity check when the checked field has empty value. I will also change mysql_fix_privilege_tables script to replace all existing empty "Host" field values with '%'.

This is fine, but what are you going to do with mysql.host table ? In there empty host is not equivalent to '%' :(

I'm not sure whether I have to do something with mysql.host table at all. Anyway, I'm going to store roles in mysql.user/mysql.xxx_priv only and I don't see how mysql.host table will interfere with roles' privileges. Please, explain this issue in more detailed way.

Sorry, it was a typo. I meant mysql.db table. In mysql.db table blank host is not the same as '%' host.

And again I don't see the interference :(. I've carefully studied the corresponding manual page (Access Control, Stage 2: Request Verification), but I didn't found any possible errors in this scheme.

Anyway, as community considers isRole ENUM('N','Y') column to be better then I consider I shall implement it in that way.

Regards / Mit vielen Grüssen, Sergei