better mSQL log messages for query commands
Posted: Mon Aug 10, 2020 9:07 am
Hello,
I want to create some feedbacks for the log messages for the access control checks before processing queries.
In the current design, for the SELECT command, mSQL will check whether the client has the READ_ACCESS permission bit. For all the other operations (CREATE_TABLE, CREATE_INDEX, etc), mSQL will check for the WRITE_ACCESS permission bit and whether the server is read-only.
However, the messages for the two kinds are all the same, which is simply "Access Denied". I am wondering if we can create better log messages so the sysadmins can spend less time debugging the errors. (e.g. in the log message, tell the users what operation is denied, because lack of read/write access, or the server is read-only)
I can also file for patches if that helps. Any feedback is appreciated!
(Not sure if this is a proper place for the discussions. If there is a dev mailing list, please let me know. Thank you!)
Kind regards,
Bingyu
I want to create some feedbacks for the log messages for the access control checks before processing queries.
In the current design, for the SELECT command, mSQL will check whether the client has the READ_ACCESS permission bit. For all the other operations (CREATE_TABLE, CREATE_INDEX, etc), mSQL will check for the WRITE_ACCESS permission bit and whether the server is read-only.
However, the messages for the two kinds are all the same, which is simply "Access Denied". I am wondering if we can create better log messages so the sysadmins can spend less time debugging the errors. (e.g. in the log message, tell the users what operation is denied, because lack of read/write access, or the server is read-only)
I can also file for patches if that helps. Any feedback is appreciated!
(Not sure if this is a proper place for the discussions. If there is a dev mailing list, please let me know. Thank you!)
Kind regards,
Bingyu