From 01bc9778bb597e52ceeddf0eace4ae32c52c5c13 Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Thu, 24 Apr 2025 16:06:19 +0200 Subject: [PATCH] Add changelog fragment --- changelogs/fragments/grant_to_public.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelogs/fragments/grant_to_public.yml diff --git a/changelogs/fragments/grant_to_public.yml b/changelogs/fragments/grant_to_public.yml new file mode 100644 index 0000000..ea24da0 --- /dev/null +++ b/changelogs/fragments/grant_to_public.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - mysql_info - fix a crash (ERROR 1141, There is no such grant defined for user 'PUBLIC' on host '%') when using the ``users_info`` filter with a PUBLIC role present in MariaDB 10.11+. Do note that the fix doesn't change the fact that the module won't return the privileges from the PUBLIC role in the users privileges list. It can't do that because you have to login as the particular user and use `SHOW GRANTS FOR CURRENT_USER`. We considered using an aggregation with the `SHOW GRANTS FOR PUBLIC` command. However, this approach would make copying users from one server to another transform the privileges inherited from the role as if they were direct privileges on the user.