3.7 KiB
3.7 KiB
Changelog
v1.0.0 - Initial Release
This is the initial release of muscl.
Features ported from mysql-admutils
- All commands
- Support for starting internal server with SUID/SGID
- Best-effort CLI interface backwards compatibility (see deviation notes for details)
- Best-effort stdout/stderr output backwards compatibility (see line above)
- Privilege editor
New features and changes from mysql-admutils
- Changed programming language from
CtoRust, for better or for worse - Combined the functionality of both
mysql-dbadmandmysql-useradminto a single executable. - Switched to a server+client architecture. With this change comes:
- Added security against SUID/SGID-related vulnerabilities.
- Logging and debug information for system administrators.
- A limitation on the maximum number of connections to the database.
- A lot of sandboxing and hardening for the server-side, limiting the amount of damage that can be done if compromised, and further increasing security.
- Added
--jsonflag for several commands - Added
check-authcommand, for testing whether you are allowed to manage certain databases or users - Added
lock-user/unlock-userwhich let's you temporarily disable a database user. - Added dynamic shell completions, aware of which databases and users exist.
- Changed the name length limit from
32characters to64characters. - Added
-p/--privsflag for editing privileges using only commandline flags. The flag acts similarly tochmodwith+and-variants for adding and removing privileges. Seemuscl edit-privs --helpfor more information. - Changed handling of database user passwords:
- Prompting for passwords will now hide what you write
- Allow providing passwords through files and stdin
- Respect
$VISUALin addition to$EDITORwhen launching the privilege editor. - Use a commented example line in the template for the privilege editor on first use.
- Display the diff before committing privilege changes.
- Generally more detailed error reporting:
- On entering database or user names you do not own, suggest valid names
- Instead of silently trimming database/user names when too long, report as error
- When there are other name validation errors, report exactly what went wrong instead of a generic message
- Add new errors related to failures inbetween the client and the server
- Package and distribute software:
- Provide
.debpackages - Provide systemd units
- Provide nix-flake with packages, overlays and NixOS modules.
- Provide
Known deviations from mysql-admutils' behaviour
--helpoutput is formatted by clap in a different style.mysql-dbadm edit-permuses the new privilege editor implementation. The formatting that was used inmysql-admutilsis no longer present. However, since the editor is purely an interactive tool, there shouldn't have been any scripts relying on the old formatting.- The configuration file is shared for all variants of the program, and
musclwill use its new logic to look for and parse this file. See the example config and [installation instructions][installation-instructions] for more information about how to configure the software. - The order in which input is validated might be differ from the original (e.g. database ownership checks, invalid character checks, existence checks, ...). This means that running the exact same command might lead to different error messages.
- Command-line arguments are de-duplicated. For example, if the user runs
mysql-dbadm create user_db1 user_db2 user_db1, the program will only try to create theuser_db1once. The old program would have attempted to create it twice, failing the second attempt.