Add utility command to spawn shell/REPL #44
Labels
No Label
art
big
blocked
bug
crash report
disputed
documentation
duplicate
feature request
good first issue
packaging
question
security
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Projects/mysqladm-rs#44
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
People should probably learn how to spawn mysql shells themselves, but considering that the config contains all of the configuration required (host, port, etc.) it might be a nice utility command. It should allow you to specify a user and a database. If the tool does not exist in path, just report an error.
Ensure we drop suid/guid privileges first to avoid any funny business?
This is hard if we keep only using the hashed-password-stored-in-mysql type auth plugins, but it's seemingly possible to activate more than one plugin? Ref https://mariadb.com/kb/en/create-user/#identified-viawith-authentication_plugin
Could we somehow use our privileged mysql user to access the database, drop privileges, and then forward the connection to the user? Or maybe temporarily activate another authentication plugin, send a token to the client, have it log in using that token, report back, and disable the plugin again?