Use GRANT and REVOKE statements for privilege editing #76

Open
opened 2024-08-19 16:59:05 +02:00 by oysteikt · 2 comments
Owner

The current implementation modifies mysql.db directly with INSERT, UPDATE and DELETE statements. It would be much less error prone to use GRANT and REVOKE statements, as well as requiring less privileges for the admin database user used to perform privileged actions.

The current implementation modifies `mysql.db` directly with `INSERT`, `UPDATE` and `DELETE` statements. It would be much less error prone to use `GRANT` and `REVOKE` statements, as well as requiring less privileges for the admin database user used to perform privileged actions.
oysteikt added the security label 2024-08-19 16:59:05 +02:00
Author
Owner

There is also SHOW GRANTS

Note that this might be a bit more complicated than I initially considered, because I don't think we can run REGEXP on the SCHEMA_NAME anymore?

There is also `SHOW GRANTS` Note that this might be a bit more complicated than I initially considered, because I don't think we can run `REGEXP` on the `SCHEMA_NAME` anymore?
Author
Owner

Maybe split it up into two separate database calls, one for querying the user's databases and one for showing grants? it's a bit of unnecessary data shuffling, but maybe the tradeoff is worth it

Maybe split it up into two separate database calls, one for querying the user's databases and one for showing grants? it's a bit of unnecessary data shuffling, but maybe the tradeoff is worth it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Projects/muscl#76