[MDEV-24362] Privilege aliases are missing from SHOW PRIVILEGES Created: 2020-12-07 Updated: 2023-12-04 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.5.8 |
| Fix Version/s: | 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
MariaDB Server currently supports several privilege aliases:
However, these privilege aliases do not seem to be present in SHOW PRIVILEGES:
|
| Comments |
| Comment by Daniel Black [ 2021-02-08 ] |
|
Also missing as an alias is the obvious old time one of "ALL PRIVILEGES". Attempting to use the output of SHOW PRIVILEGES programmatically like https://github.com/MariaDB/server/commit/86a7fab1755238710ed301578554d2c7d2d10d13 to ensure that a mariadb-dump --system=users contains a portable set of grants currently requires a special case for "ALL PRIVILEGES". The other missing aliases would be problematic if using a 10.5 mariadb-dump --system=users with the above commit against an older MariaDB version. In this case the missing grants would be marked as MySQL-8.0+ grants and be ignored on import rather than letting the compatibility later take care of the translation. As such, I'd like to include these aliases too. ralf.gebhardt@mariadb.com, serg is that ok with you? |
| Comment by Sergei Golubchik [ 2021-02-08 ] |
|
No, I'd rather not include aliases, but only the default name. READ_ONLY ADMIN is the correct name, The spelling without underscore is a user-friendly alias to account for typical typos. SLAVE/REPLICA — we should, again, show only one spelling, the default one. The default is supposed to become configurable or change to REPLICATE eventually. And, again, BINLOG MONITOR is the privilege name and REPLICATION CLIENT is the compatibility alias, that we support, but don't recommend to use. |