Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7979

file_key_management plugin is not installable at runtime

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a Bug
    • Affects Version/s: 10.1.4
    • Fix Version/s: N/A
    • Component/s: Encryption, Plugins
    • Labels:
      None

      Description

      I don't see how to install file_key_management plugin at runtime.
      The plugin init requires file_key_management_filename variable to be set, and to set the variable one needs the plugin.
      The part about file_key_management_filename being mandatory is documented, so I assume the whole thing is intentional. However, it would be nice to produce a better error message. Now it looks like this:

      MariaDB [test]> install soname 'file_key_management';
      ERROR 29 (HY000): File '' not found (Errcode: 2 "No such file or directory")
      

      and the error log says

      150411 19:28:06 [ERROR] Plugin 'file_key_management' init function returned error.
      150411 19:28:06 [ERROR] Plugin 'file_key_management' registration as a ENCRYPTION failed.
      

      Both are not very helpful.
      Probably the best would be to say that the plugin cannot be installed at runtime, but I don't know if it's possible.
      Also, if it's not installable at runtime, it should be documented.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              serg Sergei Golubchik added a comment - - edited

              A plugin can perfectly well be installed at run-time. You either add --loose-file-key-management-filename to my.cnf before you started the server (note the loose- prefix). Or you add --file-key-management-filename to my.cnf after the server is started. Then you can install the plugin just fine.

              Show
              serg Sergei Golubchik added a comment - - edited A plugin can perfectly well be installed at run-time. You either add --loose-file-key-management-filename to my.cnf before you started the server (note the loose- prefix). Or you add --file-key-management-filename to my.cnf after the server is started. Then you can install the plugin just fine.
              Hide
              elenst Elena Stepanova added a comment -

              Okay, thanks.
              The error code and message is still pretty useless, though.

              Show
              elenst Elena Stepanova added a comment - Okay, thanks. The error code and message is still pretty useless, though.

                People

                • Assignee:
                  serg Sergei Golubchik
                  Reporter:
                  elenst Elena Stepanova
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: