Bug #48948 | URGENT RFE: default-sql-security | ||
---|---|---|---|
Submitted: | 20 Nov 2009 17:26 | Modified: | 23 Sep 2010 14:13 |
Reporter: | Kevin Benton | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S2 (Serious) |
Version: | All | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | privileges, routines, stored procedures |
[20 Nov 2009 17:26]
Kevin Benton
[20 Nov 2009 17:35]
Valeriy Kravchuk
Thank you for the feature request.
[24 Nov 2009 9:28]
Konstantin Osipov
Valeriy, I think it's just not right to publicly suggest to manipulate with mysql.proc table, especially when it's possible to do ALTER PROCEDURE ... SQL SECURITY.
[24 Nov 2009 9:30]
Konstantin Osipov
Veleriy, please provide a test case. It's unclear how, after dropping root user, the definer of the stored procedure became set to "@" (as the reporter says in a private comment). The definer of a created object does not change when this user is dropped.
[6 Aug 2010 18:44]
Peter Gulutzan
Related to Bug#20241 Access to procedures/functions is lost if the definer is dropped
[23 Sep 2010 14:13]
Konstantin Osipov
Thank you for your interest in MySQL, but we made a decision to not implement this feature request. Although technically it's possible to do, maintaining the functionality can be an additional hurdle. Besides, there is a partial workaround (always specify SQL SECURITY clause when creating objects), and it's unclear how a new set of options, that are off by default, can help avoid the situation when wrong objects are created by omission. Long term we plan to introduce roles, and SQL PATH functionality, which should address some of the worries raised in this report.